用于实时视频的 UIWebView 中的 UIActivityIndicator(.mjpg)
我正在使用 UIWebView 流式传输实时视频(.mjpg),如下所示:
[liveVideoPlayer loadRequest:urlRequest];
其中 liveVideoPlayer 是自定义 UIWebView 的实例。我面临的问题是,对于低带宽,视频的帧速率降低了很多,并且视频似乎已暂停。我只想在那时添加一个 UIActivityIndicator 来告诉用户其流媒体时间,直到我们获得下一个框架。
我无法使用委托方法– webViewDidStartLoad: – webViewDidFinishLoad:
因为对于实时视频 webViewDidFinishLoad 从未被调用过。需要帮助解决这个问题,请帮忙...
提前致谢。
I am streaming a live video(.mjpg) using UIWebView like:
[liveVideoPlayer loadRequest:urlRequest];
where liveVideoPlayer is an instance of custom UIWebView. Problem i am facing is that for low bandwidth the frame rate for the video reduced by a good number and seems that the video is paused.I just want to add an UIActivityIndicator at that time to tell user that its streaming time until we get the next frame.
I can't use Delegate methods – webViewDidStartLoad:
because for live video webViewDidFinishLoad never been called.Need help to solve that please help...
– webViewDidFinishLoad:
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
嗯...我现在有一个临时解决方案。我在 UIwebView 后面添加了 UIActivityIndicatorView 并保持其动画。比上一阶段好,不是百分之一,但现在已经足够了。寻找更好的......
Well...here i got a temporary solution for now. I've added UIActivityIndicatorView behind the UIwebView and keep it animating. Better than previous stage, not cent percent but quit enough for now.Looking for the better one...