Coder Social home page Coder Social logo

Comments (7)

Fleker avatar Fleker commented on June 3, 2024

Music videos in particular end up getting limited a lot when being embedded. As this project uses the same principles as the iframe, I'm unsure why it would be different on a website compared to this.

from youtube-tv-player.

walkerreynolds16 avatar walkerreynolds16 commented on June 3, 2024

I'm not sure why it's different than a website either. I'm still doing some research on what could fix it. I'll try to give an update when I find something.

from youtube-tv-player.

walkerreynolds16 avatar walkerreynolds16 commented on June 3, 2024

OK I have a theory for why it might not be working. When you setup the YouTube URL in loadVideo() of YouTubePlayerView, an origin is not being set in the URL. I'm guessing if no origin is stated, YouTube gets really picky with what videos it shows, mainly videos that are owned by music groups.

This is just a thought, but it could be changed to allow specifying an origin, that may help.
https://developers.google.com/youtube/player_parameters#origin

from youtube-tv-player.

Fleker avatar Fleker commented on June 3, 2024

Is there a domain this works with directly, or should it be a parameter that one can set?

from youtube-tv-player.

walkerreynolds16 avatar walkerreynolds16 commented on June 3, 2024

I saw somewhere online where they just put www.youtube.com and they said that worked, but I feel like this is somehow against one of their policies. I would make it a parameter that can set which defaults to no origin or youtube.com.

from youtube-tv-player.

walkerreynolds16 avatar walkerreynolds16 commented on June 3, 2024

So after more testing and changing around the library code, it seems that setting the origin in the URL does not help my issue. While I think this is still a good thing to have in the project, It will not help me.

Right now, I think the issue is something else in the chain of showing the video. I was able to make a static website hosted here that, I'm guessing approximates how the webview is showing the YouTube player. On the webpage, the video plays without any errors, but when played on my app, it does not.

Does this player use an Iframe for the webview? If it doesn't, it could be the reason why some of the videos aren't loading. If you go the direct link of the embed player, the video will not play.

from youtube-tv-player.

Fleker avatar Fleker commented on June 3, 2024

Yes, this project used the /embed/ version of the YouTube link directly

from youtube-tv-player.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.