Hello,
I am building a flash app that will start playing a streaming video (wowza streaming server) x number of seconds in. I have built the player, and I have it reading the file name and start point (in seconds) from an XML file. The problem is, it is ignoring the seek() method. I have traced out the variables, so I know that the value is being passed to the function properly, but it always starts playing at the beginning. Here is the code:
function playVid(fName, startTime) {
netConn = new NetConnection();
netConn.connect("rtmp://*wowzaDomain*/*applicationName*/");
//netConn.connect(null);
netStream = new NetStream(netConn);
StoredActions.Con.myVid.attachVideo(netStream);
netStream.setBufferTime(5);
netStream.seek(startTime);
netStream.play(fName);
//when video is finished//
netStream.onStatus = function(e:Object) {
if (e.code == "NetStream.Play.Stop") {
trace("video stopped, load xml and play next video from current channel");
changeChannel(currentChannel);
}
}
}
Any advice would be greatly appreciated.