Skip to content

Commit

Permalink
Proceed "onMetaData" if there are resolution modifications for proper…
Browse files Browse the repository at this point in the history
… aspects even if _onmetadataFired == true.
  • Loading branch information
Shintaro Tanaka committed Jun 22, 2015
1 parent 681c389 commit 9cfb4fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Binary file modified dist/video-js.swf
Binary file not shown.
6 changes: 5 additions & 1 deletion src/com/videojs/providers/HTTPVideoProvider.as
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,11 @@ package com.videojs.providers{
}

public function onMetaData(pMetaData:Object):void{
if (_onmetadadataFired) {
if (_onmetadadataFired &&
(pMetaData.width == undefined ||
_metadata.width == pMetaData.width) &&
(pMetaData.height == undefined ||
_metadata.height == pMetaData.height)) {
return;
}

Expand Down

0 comments on commit 9cfb4fe

Please sign in to comment.