• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

BufferTimeMax with Live Streams

Explorer ,
Nov 07, 2012 Nov 07, 2012

Copy link to clipboard

Copied

I have a video-chat program that uses FMS and I'm trying to use the bufferTimeMax property on the subscribing NetStream, but it doesn't seem to work. When I manually throttle my download speed, the live stream from the other client just lags and becomes more and more backed up. When checking the bufferLength and liveDelay at this point, it does show values over 0 but it's not reflecting how backed up it really is, and no matter what I set the bufferTimeMax to, it always traces as being 0.

I'm publishing to Flash v. 10.3 using Flash CS6 pro. Publishing to v. 11.2 doesn't help.

Code sample:

videoNS.bufferTimeMax = 3;

trace(1, videoNS.bufferTimeMax);

videoNS.play(streamName, startParam);

videoNS.bufferTimeMax = 3;

trace(2, videoNS.bufferTimeMax);

This returns:

1 0

2 0

Any ideas?

Views

1.7K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Feb 23, 2013 Feb 23, 2013

Are you setting videoNS.bufferTime = 0 in your code earlier?  If you do that, the bufferTimeMax is ignored.

Votes

Translate

Translate
Guest
Nov 07, 2012 Nov 07, 2012

Copy link to clipboard

Copied

Are you trying to use on AIR 3.0 (and later) for iOS? If yes, then bufferTimeMax property is not supported. You can check following link for more details:

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/NetStream.html

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 08, 2012 Nov 08, 2012

Copy link to clipboard

Copied

No, I'm publishing a regular SWF. I'm working on a Windows machine.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 23, 2013 Feb 23, 2013

Copy link to clipboard

Copied

Are you setting videoNS.bufferTime = 0 in your code earlier?  If you do that, the bufferTimeMax is ignored.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 25, 2013 Feb 25, 2013

Copy link to clipboard

Copied

LATEST

I am. Netstream documentation says to set bufferTime = 0 for live streams. Why is this caveat not in the documentation?

Many thanks for the explanation, twelfth312.

It seems like I should prefer bufferTimeMax to take advantage of the live stream catch-up feature, whereas the bufferTime seems like backed-up data just gets lost. Does that make sense?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines