Skip to content

Instantly share code, notes, and snippets.

@JayHoltslander
Last active June 29, 2017 10:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JayHoltslander/2bc9cc65dc21b1085d4b8575fdf316a8 to your computer and use it in GitHub Desktop.
Save JayHoltslander/2bc9cc65dc21b1085d4b8575fdf316a8 to your computer and use it in GitHub Desktop.
Marvel App Optimized YouTube Embed. Use in conjunction with the instructions at https://help.marvelapp.com/hc/en-us/articles/208395615-How-do-I-embed-video-
<!-- "playlist" must be the same individual video id in order for continuous looping to work -->
<iframe src="https://www.youtube.com/embed/Zdjg9yhBqTU?modestbranding=1&playlist=Zdjg9yhBqTU&controls=0&showinfo=0&rel=0&iv_load_policy=3&autoplay=1&loop=1&keyboard=1" allowfullscreen="0" frameborder="0"></iframe>
@JayHoltslander
Copy link
Author

JayHoltslander commented Apr 18, 2017

A YouTube embed for use in Marvel App with all the optimal player parameters predefined. Just change the two video id references.

Features:

  1. No controls
  2. No info
  3. Modest branding
  4. No related videos
  5. Autoplay
  6. Endless loop
  7. Disable keyboard
  8. Disable video annotations

@tansaku
Copy link

tansaku commented Jun 29, 2017

this is great, by the way, is there any way to adjust the video embed size? I notice Marvel seems to strip out the height and width parameters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment