In screen lock background play music and controls - react-native-video

I am using React native video npm - In screnio In play audio in after screen lock .
Im using this type of code
<Video
source={{
uri: this.props.data.Link,
}}
controls
playInBackground={true}
playWhenInactive={true}
disableFocus={false}
audioOnly={true}
preventsDisplaySleepDuringVideoPlayback={false}
pictureInPicture={true}
ignoreSilentSwitch={'inherit'}
lockControl={true}
allowsExternalPlayback={true}
automaticallyWaitsToMinimizeStalling={false}
/>
Its working in lock screen play audio but controls are disabled please anyone help me
videos are playing at a time in the background without viewing the videos and another problem is all videos controls={true} in lock screen
Any configure in ios upto 14 version Its fine working in ios 12 please any configuration in xcode or swift language to react native code

Related

Replay option not displaying youtube video in UIWebView?

Currently i am trying to play one youtube video in my application UIWebView. On first time playing, the video is playing perfectly and i can able to see and listen both video & audio, but when the video played completely and i select replay option present in video screen,the video is not displaying anything(its just displaying black screen) but i can able to hear audio.
Where i am going wrong, How to fix this problem ?
Tools used : XCode: 4.3.2, iOS :5.1

html5 video wont play on iPad - plays on iPhone

I have a m4v video that is able to play using html5 video tag on the iPhone - but it wont play on the iPad using html5. If i go directly to the video file from the iPad it plays fine- But if I use the html5 video tag to link to it the play button wont show. Im testing using an iPad 1 and iPhone 4 - both running iOS 5. Does anyone have an idea why it wont play on the iPad?
Html5 video page - Video URL
Hey this probably won't help much for your situation but i found that with video streaming through a webview, it won't let you play video's past a certain file size.

Playing video on iPad in native app and webview

I have a native iPad app that plays video. The app also uses a webview for some content and I would like to play a video in the webview as well.
Is it possible to play video natively as well as in a webview at the same time? I've read that only one video can play natively at the same time but does this apply if one video is native and the other is in a webview?
If a video is playing natively and a webview is loaded that includes a video, would initiating playback of the video in the webview automatically stop the native video or does there need to be communication from the webview to the native code to stop the video, and vice versa?
Thanks for your time.
I would say it isn't possible, in my experience when playing video in a webview the video is able to go fullscreen and when this happens it uses the same video player/controls that playing a video natively uses. I can't see how two videos would be able to use this player/controls at the same time.
You will also encounter memory issues, at least on the first iPad.

Only Youtube audio Playing but not Video in Iphone WebView

I am trying to play youtube videos after loading the webview. But Only Audio is being played, not video. Although I get play button in status bar, the Media Player does not become active. The Same piece of code works in iTouch 4.1 and simulator but not on iPhone 4.1/4.0. What am I missing here???
Is the default youtube application playing video? If yes, You might want to try removing the frameworks, add them again and clean build your project.

Can you play a <video> inside the page with Safari iPhone?

I would like to play a video from inside the rendered page with an iPhone/Safari.
When I put a <video>, it's always opened and played in a separate full-screen Quicktime window. Is there a way to play the video directly from the page?
(a similar question Play video not in full screen mode suggests it's not possible)
Yes, it's possible to play video within the browser, but as you said, in the Quicktime fullscreen application, and the HTML5 sound API is not available (in iPhone OS 3.x).
But in the coming iPhone OS 4, it will be possible (used for iAd), so you will have to wait until this summer (or play with the beta SDK now).
No, with the current SDK compatible media will always play in full screen and there is no way to avoid that.