fix(player): friendly fallback when a video can't be embedded
The in-app IFrame player showed YouTube's bare 'Video unavailable' screen with no way out when a video couldn't be embedded (auto-generated Topic art-tracks disable embedding -> error 101/150; removed/private -> 100). Catch the IFrame onError and overlay a clear message + 'Open on YouTube' button, with a tailored note for embedding-disabled videos.
This commit is contained in:
parent
4ea2043f3d
commit
ef4bdee1f7
4 changed files with 48 additions and 5 deletions
|
|
@ -15,5 +15,9 @@
|
|||
"markWatched": "Mark watched",
|
||||
"watchedUnmark": "Watched — click to unmark",
|
||||
"jumpToTime": "Jump to this time",
|
||||
"playInApp": "Play in the in-app player"
|
||||
"playInApp": "Play in the in-app player",
|
||||
"unavailableTitle": "Can't play this here",
|
||||
"unavailableBody": "This video isn't available — it may be private, removed, or region-restricted.",
|
||||
"embedDisabledBody": "The owner disabled playback on other sites (common for auto-generated “Topic” music tracks). It still plays on YouTube.",
|
||||
"openOnYoutube": "Open on YouTube"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue