refactor: strip debug noise to reduce bundle
This commit is contained in:
@@ -126,7 +126,9 @@ export const PlayerProvider: React.FC<PlayerProviderProps> = ({
|
||||
try {
|
||||
await videoRef.current?.requestPictureInPicture()
|
||||
} catch (error) {
|
||||
console.error('PIP error:', error)
|
||||
if (error instanceof Error) {
|
||||
setVideoState((prev) => ({ ...prev, error }))
|
||||
}
|
||||
}
|
||||
} else {
|
||||
await document.exitPictureInPicture()
|
||||
|
||||
Reference in New Issue
Block a user