FMS NetStreamPlayTransitions.SWITCH problem in playlist
So recently I have found issues with switching when playing playlists in a player we are developing. So to trouble shoot I built a simple application with buttons to manually switch. The first video in the stream switches just fine. When the player gets to to the second video in the the stream, switch does does not work either with or with out oldStreamName defined in the NetStreamPlayOptions. What happens is the the stream ends prematurely, a few seconds to a few minutes after the the button to switch is clicked. If I just let it play with out switching it plays out the whole stream as intended. I can't find any reason for this not to work, so I am wondering if there is an issue with the server.
All the alt bitrate version video files are there on the server and I know its looking for the right file names, they're being traced on the stage for me to read. I can even rearrange the playlist. I know video1 works so I make it video2 and now as video2 it doesn't work, but what was video2 is now video1 and it works.
The thing is I developed a very complex player months ago and it worked just fine. I came back to it to add more features and I noticed it was effing up. And after many hours of debugging I realized something was up with the SWITCH. So I made this very simple app to check. I can't see anything wrong with code. It works fine with 1 video why not 2? So thats why I put the code up here. Thats pretty much the code for the whole app, or at least the meat of it. I can't see anything wrong with it. I need someone to point out whats wrong with the code or tell that it should work fine, meaning there could be a problem with the FMS server. We use Influxis for our FMS. They've move us to a different server and have other done maintainance inbetween last time I worked on this, which leads me to believe to the possiblity of server issues. I've contacted them but no real help so far.
Any idea if this could be a server issue or am I missing something here?
Example is here.
Press button 1 to switch using OldStreamName, button 2 to switch not using OldStreamName, and button 3 to seek to the beggining of the second video in the playlist. There are messages being traced to the the stage so you can see whats happenning.
Well, I was able to confirm this is a BUG in FMS 4. Influxis was kind enough to let me use a FMS 3.5.6 server to test on and switching when playing the second item in playlist worked as intended WITHOUT switching streams. All my old code worked great and our player was working as intended. I needed to know I wasn't crazy because I knew this player worked great at one time, and I couldn't find anything wrong with my code. Unfortunately, Influxis officially does not use 3.5 anymore since 3.5 no longer receives security patches and maintenance from Adobe. So I'm stuck with FMS 4 and will have to use a new stream to work around this bug. What a huge pain! I wonder if 4.5 has addressed this issue?