Ticket #959 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

Investigate bitrate switching w/ FCSubscribe

Reported by: pablo Owned by: jeroen
Priority: Milestone: Flash 5.3
Component: Keywords:
Cc: pablo Forum thread:

Description

From Nate:

private var _subscribeInterval2:Number;
/** Subscription Count for subscription pings. **/
private var subscribeCount:Number = 0;

...
// onClientData:

} else if (dat.code == "NetStream.Play.Start") {
    if (subscribeCount == item.levels.length) {
        clearInterval(_subscribeInterval2);
        if (item.levels.length > 0) {
            if (_dynamic || _bandwidthChecked) {
                setStream();
            } else {
                _bandwidthChecked = true;
                _bandwidthSwitch = true;
                _connection.call('checkBandwidth', null);
            }
        } else {
            setStream();
        }
    } else {
        clearInterval(_subscribeInterval2);
            _subscribeInterval2 = setInterval(doSubscribe, 1000, getID(item.levels[subscribeCount].file));
        subscribeCount++;
    }
    clearInterval(_subscribeInterval);
}

See email from Nate for test stream. We should also follow up with Limelight, since they seem to be among the only ones using FCSubscribe.

Change History

comment:1 Changed 3 years ago by jeroen

  • Owner changed from pablo to jeroen

comment:2 Changed 3 years ago by jeroen

  • Milestone changed from Flash 5.3 to Flash 5.4

Pushing this one off a release. In the next update, we'll investigate this for both fcsubscribe, dvrsubscribe and http.dvr.

comment:3 Changed 3 years ago by jeroen

  • Cc pablo added
  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone changed from Flash 5.4 to Flash 5.3

Actually, it just works with just this change. Fixed.

At a certain point we should deprecate bitrate switching without dynamic streaming ... there's a lot of if }{ else stuff in the RTMP provider because of that and I wonder if it's still used?

Note: See TracTickets for help on using tickets.