Skip to content

Commit

Permalink
fix flutter#7
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterOmbodi committed May 14, 2021
1 parent 8859b00 commit 224e2e8
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -322,15 +322,16 @@ - (void)sendInitialized {
CGFloat height = size.height;

// The player has not yet initialized.
if (height == CGSizeZero.height && width == CGSizeZero.width) {
//return;
if (height == CGSizeZero.height && width == CGSizeZero.width && ![self isDurationIndefinite]) {
return;
}
// The player may be initialized but still needs to determine the duration.
if ([self duration] == 0 && ![self isDurationIndefinite]) {
//return;
return;
}

//_isInitialized = true;
_isInitialized = true;
_isInitialized = true;
_eventSink(@{
@"event" : @"initialized",
@"duration" : @([self duration]),
Expand Down

0 comments on commit 224e2e8

Please sign in to comment.