开发者

Playing video on iPad in native app and webview

开发者 https://www.devze.com 2023-02-20 14:10 出处:网络
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 开发者_如何学JAVAthe webview as well.

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 开发者_如何学JAVAthe 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消