Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video embedded in a <video> HTML tag for customizing video player of the astronomy video of the day #69

Open
ghost opened this issue May 4, 2021 · 3 comments
Labels

Comments

@ghost
Copy link

ghost commented May 4, 2021

Since the video URL is a YouTube video i've to embed It using iframe.
Is possibile to use <video> so can customize my video player?

Providers

  • YouTube
  • Vimeo

APIs

See also

@ghost ghost changed the title Video embedded in a video HTML tag Video embedded in a <video> HTML tag May 4, 2021
@oliveratgithub
Copy link

Since the video URL is a YouTube video i've to embed It using iframe.

here‘s what I do (PHP) to either embed YT or Vimeo players for media_type=video correctly; might be helpful to you: https://github.com/zorgch/zorg-code/blob/b4772a0611de37608927f77507c47259e06a28f3/www/includes/apod.inc.php#L172

@ghost
Copy link
Author

ghost commented Aug 16, 2021

Good morning, I don't understand what the code does, could it link to a visitable version? In essence, does it recover the content of the iframe? Being my goal to style the player I could try to simply enrich YouTube URLs with these APIs. https://developers.google.com/youtube/player_parameters This is for YouTube. I do not exclude proposing an extension of these APIs to obtain enriched URLs. Alternatively, you could retrieve the HTML of the iframe, modify it and add it to the document via JavaScript if necessary. Thanks for the contribution.

@ghost ghost changed the title Video embedded in a <video> HTML tag Video embedded in a <video> HTML tag for customizing video player of the astronomy video of the day Aug 16, 2021
@oliveratgithub
Copy link

here‘s what I do (PHP) to either embed YT or Vimeo players for media_type=video correctly

Good morning, I don't understand what the code does, could it link to a visitable version? In essence, does it recover the content of the iframe?

@ghost Sure, here you go:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants