jbrave
15 years agoChannel Surfer
dealing with large numbers of videos
In a grid screen, I'm retriving like 20 rows of 80-90 videos each. The parse time is about 1 second per row, but the http time is about 5 seconds per row. I thought about dynamically loading when the user moves close to the end of a row, or loading the next row when the user moves down (this would be pretty annoying to interrupt the user each time). I also wonder if I use asyncgettostring in a wait loop with say 100ms wait time, I could set up the data transfer and do a fake multitasking, where the user could do their thing and the data could continue loading. Assuming that even works however, how would one handle it if the user selects and plays a video - you wouldn't want to force them to reload all 2000 videos again - currently, I load the videos when the screen loads and store them into an array which I reload after the video finishes playing, this is very fast. I'm not sure how to keep track of what has been loaded and what has not, so the process can continue.
Probably I'll just put the data transfer up front when the channel loads, but if anyone has any suggestions, it would be very helpful.
- Joel
Probably I'll just put the data transfer up front when the channel loads, but if anyone has any suggestions, it would be very helpful.
- Joel