Skip to main content
Known Participant
September 8, 2011
Question

Big issues with swicthing videos in playlist: oldStreamName problem

  • September 8, 2011
  • 1 reply
  • 682 views

So I've built a player to play playlists and it uses my own DynamicStream class (not the abobe one). I've ran into an issue with playing the same video multiple times. In this app there will be many occassions when a video may be repeated in the playlist up to 3 times. Here's an example of the problem:

Lets say I have 2 videos in a playlist and they are the exact same video. They both are the low birate version. The fist video dynamically swiches to different bitrates seamlesly as planned. If I fast forward the stream to the begining of the second video it starts playing and if my bandwith is ok it wants to switch to a better bitrate. It swiches but instead of being seemless it plays the second video from the begining again. So, I'm thinking this is where oldStreamName comes in. So I add the oldSteamName and make sure its correct, but the problem with that is if the same video is in playlist more than once then the transition never even happens.

Any ideas or suggested work arounds?

Thanks,

Adam

    This topic has been closed for replies.

    1 reply

    calmchessplayer
    Inspiring
    September 8, 2011

    I have a solution for this I will get back to you afterwhile if nobody else answers. unfortuneately I'm busy.

    calmchessplayer
    Inspiring
    September 8, 2011

    anyway to counter this problem when I switch to a diffrent stream. I close the current netstream then  I create a diffrent netstream name with "str"+new Date().time(); or whatever method you use to create a timestamp  This way the stream  will always have a unique name. Keep in mind that in the administration console it will show a bunch of netstreams but at some point in time GC should collect those streams thereby removing them from the admin console. I'm not sure about memory consumption using this method. I've just experimented with it without doing an actual load test. Please post back on your findings. I'd love to know if this is a good solution.

    Known Participant
    September 8, 2011

    Your suggestion about the timestamp was what I was just thinking of moments before I say you post. I'll give it a try.

    Thanks.