Launching video in custom player in from uiwebview [closed] - iphone

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I want to launch video in custom video player when user click on clink in uiwebview in iphone.
Currently video is played in the default as player as soon as link in clicked.
Thanks in advance

See the UIWebViewDelegate documentation and in particular the webView:shouldStartLoadWithRequest:navigationType: method.
You can use that to intercept the click on the link. You will then need to determine if the request is for video or not. If it is for video, return NO from the method to prevent the UIWebview standard behaviour and instead, launch your own custom player.

Related

How to add disappearing and reappearing text on swift [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I'm currently trying to create a clicker game which shows how much money you receive when clicking. I'm new to Xcode and swift, but this seems like it should be pretty easy. I would like the score to show how much you earn each time you click it. These labels would appear then disappear quickly. Here is what it would look like:
Any and all help in furthering the clicker game (tips, etc.) would be greatly appreciated :)
you can add a tap gesture to your view controller and in that UITapGestureRecognizer selector you can do your code to increment count.

How and where can I can iphone style system button picture? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I would like to make some iPhone system style button, like camera, flash, deveice button in uiimagepickercontroller, where can I can those button picture?
Thank!
Export images from UIKit : https://github.com/0xced/UIKit-Artwork-Extractor
Probably you will find necessary icons/images.
If u looking for icons means check this website
http://speckyboy.com/2008/07/18/35-free-icon-sets-for-your-iphone-pimp-it-up/
I'd recommend checking out the popular glyphish set.

Change Camera.app Settings manually with iFile? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I repaired my phone and the connector to the front camera broked. So I tried to open the Camera.app and detected that I can't switch back to the Rear Camera, because the Camera.app freezes because of the broken Front Camera.
When I open my own Application, which makes the Photos with the Front Camera it works.
I've my phone jailbreaked and iFile installed. Is there a way to change these settings manually on the file system? Where can I change that?
PS: I don't want to make a Settings Reset, because then I've all Data cleared, and the camera works so long as I switch the camera again to the front camer, then the app freezes.
I fixed it:
In the Plist /System/Library/CoreServices/SpringBoard.app/N90AP.plist
I set the Value
front-facing-camera to false
and after reboot it worked.

eBay App-like Loading Animation [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I'm making an iPhone app that primarily focuses on loading webpages in UIWebviews. To show the user that the web page is currently loading, I'd like the screen to display a loading animation while the page loads, similar to the eBay app:
How can I do this? Or, at least, what UIWebView methods could I use to tell me if the page is loading and that there is internet connection (so it's not blindly trying to load forever).
You can use MBProgressHUD, a open source component which will do a lot of the work for you.
You'll need to create a delegate of the UIWebView and respond to the didStartLoading and didFinishLoading messages (that's when you'll show an hide the progress view).
A simple way is just having it there until you need it and setting the alpha from 0 to 1.
You would just need a gray thing (or whatever that thing is) and a activity indicator.
You could also dig into the alerts section in apple but I think the above is easier.

How to add subtitles to video [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I want to add subtitles inside a video programmatically. Can we dynamically add subtitles to video. Any help will be appreciated.
Hmm... I had a similar problem when i wanted to display metadata information.
I ended up creating a view overlay and putting the metadata there.
I dont think i encountered any other way in the documentation.
You are going to have a lot more trouble though. If you have a video file, you are going to have to check if a particular point in the video had been reached, and then update the string being shown on the overlay.... Might be a little messy.
Stand by for the smarter ones to come up with a better answer. :)
The best thing you can do here is add an overlay view and you will be done, i don't think that the movie player class must be having any property or method to add subtitles so adding an overlay view is the best option.
You can try embedding subtitle directly to the video and play it.