File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -139,6 +139,7 @@ package {
139139 }
140140
141141 private function onLoaded (event :LoadEvent ):void {
142+ _triggerEvent ("onloaded" )
142143 netStream = netStreamLoadTrait. netStream ;
143144 netStream . addEventListener (NetStatusEvent . NET_STATUS , netStatusHandler);
144145 mediaPlayer. play ();
Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ export default class RTMP extends Flash {
8686 Mediator . on ( this . uniqueId + ':progress' , this . progress , this )
8787 Mediator . on ( this . uniqueId + ':timeupdate' , this . updateTime , this )
8888 Mediator . on ( this . uniqueId + ':statechanged' , this . checkState , this )
89+ Mediator . on ( this . uniqueId + ':onloaded' , this . reporLevels , this )
8990 Mediator . on ( this . uniqueId + ':levelChanging' , this . levelChanging , this )
9091 Mediator . on ( this . uniqueId + ':levelChanged' , this . levelChange , this )
9192 Mediator . on ( this . uniqueId + ':flashready' , this . bootstrap , this )
@@ -168,7 +169,9 @@ export default class RTMP extends Flash {
168169
169170 this . isReady = true
170171 this . trigger ( Events . PLAYBACK_READY , this . name )
172+ }
171173
174+ reporLevels ( ) {
172175 if ( this . isDynamicStream ) {
173176 if ( this . levels ) {
174177 this . trigger ( Events . PLAYBACK_LEVELS_AVAILABLE , this . levels , this . options . rtmpConfig . startLevel )
You can’t perform that action at this time.
0 commit comments