You are viewing a single thread.
View all comments View context
1 point

On the web, it would not be possible.

Why not?

permalink
report
parent
reply
2 points

Because of the CORS settings on Google’s servers would tell your browser to not go forward with the request. There are two ways it could eventually be possible:

  • By opening the video in a new page/tab that only contains the video, with the YouTube player, which defeats the purpose a bit.
  • By installing an addon or an app on your device.
permalink
report
parent
reply
1 point

I haven’t checked the CORS headers for YouTube videos but wouldn’t access have to be fairly open to allow embedded videos to work?

permalink
report
parent
reply
1 point

For that they use iframes, which have a different security system.

permalink
report
parent
reply

Technology

!technology@lemmy.world

Create post

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


Community stats

  • 17K

    Monthly active users

  • 6.1K

    Posts

  • 132K

    Comments