Skip to content

Commit

Permalink
Player, playerlayer isHidden is true when observer state is unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
piemonte committed Oct 10, 2018
1 parent d5364f1 commit 042f01f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/Player.swift
Original file line number Diff line number Diff line change
Expand Up @@ -727,11 +727,13 @@ extension Player {
}

switch object.status {
case .unknown:
fallthrough
case .readyToPlay:
self?._playerView.player = self?._avplayer
break
case .failed:
self?.playbackState = PlaybackState.failed
default:
break
}
})
Expand Down

0 comments on commit 042f01f

Please sign in to comment.