简体   繁体   中英

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. 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. 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?

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!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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