I have a component that uses React player to show and control a video. On a desktop browser, all controls work as they should, but only the fullscreen function doesn't work on iOS browsers. As I read about this topic, I see that many had the same problem for showing video in fullscreen mode on iOS. Is there any way how could I make the video go to fullscreen without using the native controls?
I am doing a video call on the web, and I am trying to open the user's mobile flash when capture photo, is it anyway I can do this in javascript?
The flash I mentioned is the flashlight on mobile devices.
I had tried the media stream track method, but can only work for some devices only. cannot work on the iPhone.
thanks
Is there any way of preventing a device to "sleep" when on the website?
(Desirable because of playing YouTube videos from a device on a website)
Look at this post
Prevent iOS mobile safari from going idle / auto-locking / sleeping?
It seems like it is currently not possible to implement. Youtube has this feature because they are using quicktime that keeps the device awake.
I'm creating a Phonegap application with embedded video using the HTML5 tag.
The video loads and plays fine. The only problem is that it requires user interaction. The play script runs fine when I trigger it by clicking a link, but will not work when run using setTimeOut. Is there a way to bypass this limitation?
It only needs to work on one device, and the devices is rooted. So hacks are also welcome ;-)
I don't want to play the video fullscreen, so I cannot use the video plugin.
Android 4.2.2, Phonegap 3.2
Can mobile web apps run in the background? I'm mostly interest in iOS & Android.
Thanks!
Since this is a situation that changes almost daily, I'll post an updated answer. This applies to the recent releases of these browsers but may change tomorrow!
My music app is HTML5 and needs to run in the background. The support for that varies depending on mobile browser.
Safari on iOS: will continue to play one or two songs in the background
Native browser on Android: will play one song then stops
Firefox on Android: will stop when screen locks or browser loses focus or song ends
Dolphin on Android: plays in background but eventually stops
Opera on Android: Excellent background support! Javascript continues to run and music continues to play even when screen is off or Opera is sent to the background. Opera even puts a play/pause toggle into the notification page. Yay.
Here is a related SO question.
Nope, they can't. On Android you could conceivably install a different browser, but it's not possible on the stock one. #jgillman points out the exception of audio in iOS but that's the only exception I'm aware of.
iOS allows audio from a web app (Mobile Safari) to be played in the background. I don't know about other events though.
You can't run web app in the background. To enable most of the native features, you should develop native application.
At the time of this answer, Firefox mobile and Opera mobile for Android do allow javascript to run in the background, even with the screen locked.