简体   繁体   English

社交媒体视频列表中的视频播放器损坏

[英]Video player corruption in social media video list

I am attempting to create an app that has social media features like Instagram, Twitter, etc where you can post videos and watch them in a list. 我正在尝试创建一个具有社交媒体功能(例如Instagram,Twitter等)的应用,您可以在其中发布视频并在列表中观看。 However, when the list reaches a certain point, all the videos end up loading 'corrupted'. 但是,当列表到达某个点时,所有视频最终都会加载为“损坏”。 (Only shows a play icon with a slash through it) (仅显示带有斜线的播放图标)

The problem only occurs on iOS. 该问题仅在iOS上发生。 I have done a little research and it seems to stem from this issue . 我做了一些研究,这似乎源于这个问题

I think that is the cause of my issue because if I use the solution from that thread and reload the page, the videos load fine once again. 我认为这是造成问题的原因,因为如果我使用该线程中的解决方案并重新加载页面,则视频会再次加载正常。

However, I want this list to be as long as the user keeps scrolling. 但是,我希望此列表只要用户一直滚动即可。 So if iOS has a limit on the number of videos that can be loaded at one time then how is one to accomplish making an infinite scroll? 因此,如果iOS一次可以加载的视频数量受到限制,那么如何实现无限滚动呢?

Thanks, 谢谢,

Troy 特洛伊

Instead of loading videos stream them. 而不是加载视频流他们。 It would save memory. 这样可以节省内存。
When video is out of view, pause the stream to keep bandwidth and save traffic. 当视频不可见时,暂停流以保持带宽并节省流量。

Cheers! 干杯!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM