Closed Anonymous26 closed 5 years ago
@Anonymous26 @poush Just did some investigating and it won't allow embedding if the embedded player is trying to play a video that has "Music in video"
I tried embedding it in CodePen and it shows up fine: https://codepen.io/anon/pen/WayvvO
So if embedded on a web server, it'll allow streaming but not on an electron app. Tried using a chrome user agent with no avail. Will take a look later and see if there is a workaround or if they've disabled this feature as they're trying to push Youtube Music and a lot of spotify clones rely on embedding youtube music videos hidden which goes against YouTube's terms but people still do it. (We might need to skim through the terms for youtube).
If we can identify that these videos can't be played through embed, I think we can directly open the youtube page and automate the click on the full-screen button and possibly hide the button after that.
Few youtube videos aren't available in H2 right now due to some license reason. We need to find a way for enabling all the videos in H2 if possible. This issue is for discussion purposes, feel free to suggest idea to achieve the goal.