Skip to content
This repository has been archived by the owner on May 4, 2021. It is now read-only.

Commit

Permalink
only report loadedmetadata once after manifest load
Browse files Browse the repository at this point in the history
related to videojs#85
  • Loading branch information
mangui committed Mar 19, 2014
1 parent c44be47 commit 5849789
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Binary file modified dist/video-js.swf
Binary file not shown.
3 changes: 1 addition & 2 deletions src/com/videojs/providers/HLSProvider.as
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ package com.videojs.providers{
_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);
};

private function _mediaTimeHandler(event:HLSEvent):void {
Expand Down Expand Up @@ -132,8 +133,6 @@ package com.videojs.providers{
_model.broadcastEventExternally(ExternalEventName.ON_BUFFER_FULL);
_model.broadcastEventExternally(ExternalEventName.ON_CAN_PLAY);
_model.broadcastEvent(new VideoPlaybackEvent(VideoPlaybackEvent.ON_STREAM_START, {info:{}}));
_model.broadcastEventExternally(ExternalEventName.ON_METADATA, _metadata);
_model.broadcastEvent(new VideoPlaybackEvent(VideoPlaybackEvent.ON_META_DATA, {metadata:_metadata}));
break;
case HLSStates.PAUSED:
_isPaused = true;
Expand Down

0 comments on commit 5849789

Please # to comment.