Trevor Harrison
06-08-2004, 06:07 PM
I'm running into a problem and wanted to see if anyone else knew of this and if my workaround sounds kosher.
I've got a movie that lets 2 users talk to each other, via my FCS. (FYI, I'm running fcs and the 2 copies of my movie all on my local pc, so network bandwidth shouldn't be an issue) I'm not using any code on the server side.
User 1 publishes a stream that is connected to his mic and user 2 plays that stream.
Initially, all is good and the liveDelay as measured from user2 is less than 1 second. However, if user2 stops and restarts playing user 1's stream several times (ie. ns.play(false); to stop, then ns.play(user1streamname); to start again) the liveDelay jumps to 3 seconds. If user2 keeps listening to user1's stream for a long time (several minutes) the liveDelay slowly will creep down to sub 1sec, but as soon as you stop and restart it, it will be back at 3 seconds.
If I change my code to create a new stream each time user2 stops listening and starts listening again, I don't have the delay problem.
Has anyone seen this kind of a problem with NetStream?
Am I going to have any issues with killing and re-creating streams?
-Trevor
I've got a movie that lets 2 users talk to each other, via my FCS. (FYI, I'm running fcs and the 2 copies of my movie all on my local pc, so network bandwidth shouldn't be an issue) I'm not using any code on the server side.
User 1 publishes a stream that is connected to his mic and user 2 plays that stream.
Initially, all is good and the liveDelay as measured from user2 is less than 1 second. However, if user2 stops and restarts playing user 1's stream several times (ie. ns.play(false); to stop, then ns.play(user1streamname); to start again) the liveDelay jumps to 3 seconds. If user2 keeps listening to user1's stream for a long time (several minutes) the liveDelay slowly will creep down to sub 1sec, but as soon as you stop and restart it, it will be back at 3 seconds.
If I change my code to create a new stream each time user2 stops listening and starts listening again, I don't have the delay problem.
Has anyone seen this kind of a problem with NetStream?
Am I going to have any issues with killing and re-creating streams?
-Trevor