Open codex-corp opened 8 years ago
onAddedToStage StageVideo is avalable. INFO:https://github.com/mangui/flashls/releases/tag/v0.4.1.1 DEBUG:StreamBuffer flushed DEBUG:FPSController:stage defined, listen to throttle event INFO:HLSSettings.capLevelToStage = false DEBUG:HLSProvider.init. DEBUG:HLSSettings.logDebug=true DEBUG:HLSSettings.logDebug2=true DEBUG:HLSSettings.minBufferLength=-1 DEBUG:HLSSettings.lowBufferLength=3 DEBUG:HLSSettings.maxBufferLength=120 DEBUG:HLSSettings.startFromLevel=-1 DEBUG:HLSSettings.seekFromLevel=-1 DEBUG:HLSSettings.flushLiveURLCache=false DEBUG:HLSSettings.seekMode=KEYFRAME DEBUG:HLSSettings.manifestLoadMaxRetry=3 DEBUG:HLSSettings.fragmentLoadMaxRetry=3 DEBUG:HLSSettings.capLevelToStage=false DEBUG:HLSSettings.maxLevelCappingMode=downscale INFO:HLSNetStream:close DEBUG:StreamBuffer flushed DEBUG:cancel any manifest load in progress INFO:HLSNetStream:close DEBUG:StreamBuffer flushed DEBUG:cancel any manifest load in progress DEBUG:adaptive playlist:
chunklist_b921.m3u8
chunklist_b250000.m3u8
DEBUG:switch to level 0 DEBUG:(re)load Playlist INFO:HLSProvider: new level index 0 bitrate=921, width=1080, height=608 DEBUG:autoStartLoad!!!!: DEBUG:switch to level 1 DEBUG:(re)load Playlist INFO:HLSProvider: new level index 1 bitrate=250000, width=300, height=240 DEBUG:level 1 playlist:
media_b250000_0.ts
media_b250000_1.ts
media_b250000_2.ts
media_b250000_3.ts
media_b250000_4.ts
media_b250000_5.ts
media_b250000_6.ts
media_b250000_7.ts
media_b250000_8.ts
media_b250000_9.ts
media_b250000_10.ts
media_b250000_11.ts
media_b250000_12.ts
media_b250000_13.ts
media_b250000_14.ts
media_b250000_15.ts
media_b250000_16.ts
media_b250000_17.ts
media_b250000_18.ts
media_b250000_19.ts
media_b250000_20.ts
media_b250000_21.ts
DEBUG:updateFragments: unknown PTS info for this level DEBUG:Stream type did change to VOD DEBUG:First level filled with necessary amount of fragments, notify event DEBUG:_switchup[0]=270.4440825190011 DEBUG:_switchdown[1]=1.992632 DEBUG:HLSProvider.paused:true DEBUG:HLSProvider.metadata
@codex-corp this should be handled in flashls video js specific wrapper
https://github.com/mangui/video-js-swf/blob/master/src/com/videojs/providers/HLSProvider.as
you should call hls.startLoad() from https://github.com/mangui/video-js-swf/blob/master/src/com/videojs/providers/HLSProvider.as#L89-L104, and surround it by
if (_model.preload == "auto") {
_hls.startLoad();
}
Hi @mangui , should be like this ? i have tried it but not work
private function _manifestHandler(event:HLSEvent):void {
_isManifestLoaded = true;
_networkState = NetworkState.NETWORK_IDLE;
_readyState = ReadyState.HAVE_METADATA;
_duration = event.levels[0].duration;
_metadata.width = event.levels[0].width;
_metadata.height = event.levels[0].height;
if(_isAutoPlay || _looping) {
_looping = false;
play();
}
if (_model.preload == "auto") {
_hls.startLoad();
}
_model.broadcastEventExternally(ExternalEventName.ON_LOAD_START);
_model.broadcastEventExternally(ExternalEventName.ON_DURATION_CHANGE, _duration);
_model.broadcastEvent(new VideoPlaybackEvent(VideoPlaybackEvent.ON_META_DATA, {metadata:_metadata}));
_model.broadcastEventExternally(ExternalEventName.ON_METADATA, _metadata);
};
I would say so ... I guess you are confident with the fact that preload 'auto' is set ?
Hi @mangui ,
VideoJS parsing the first level in playlist then stop when reached to
loadedmetadata
,can you please explain how to auto load the first
segment
in current level withoutautoplay
mode or how to triggerhls.startLoad()
https://github.com/mangui/flashls/blob/133d83ab5e0f012bdd44c2d772e166b29b93ee1f/src/org/mangui/hls/HLS.as#L295