May-03-2018, 06:42 PM
(May-03-2018, 06:36 PM)ThiefOfTime Wrote: Ok I see what you mean. You are currently using recursion but if your videos can't play you keep on trying and will not find an end. When you know that you after you check the last url you will not find a video, I would suggest a loop. is there a way for you to check if a link is down, besides trying to play it? maybe search for the file, url or anything?
if you can check this on the forehand, try iterating until your self.count reaches the maximum, until you find a working url. if you find an url start playing the video.
Mainly I would not use the recursion
I am glad you get what I mean. Yes I am currently using recursion. I am trying to find the link that are alive so I can start play the video.
I can change my code to use a loop instead. Can you please post an example how I can use the loop instead of recursion?