S
S
Svirepyy_Barsik2018-03-02 10:06:40
YouTube
Svirepyy_Barsik, 2018-03-02 10:06:40

How to create custom Youtube video player controls?

Help create custom Youtube video player controls like on this page (first big video) www.nurturedigital.com/work/puma-all-star-group
Know just done with IFrame Player API But how to make it look Exactly like on that page, I don't know. Who has already dealt with the IFrame Player API or just understands better than me how to implement it, write. And if possible, please post the code. I would be very grateful.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
frees2, 2018-03-02
@frees2

This is on top of the original player, not comfy, but of course beautiful. But it doesn't work in chrome (at least for me) It's
better to change styles in the player itself, like ( theme: "light", the example is working. With a white strip instead of red) Clicking without overloading
------

var player;  function onYouTubeIframeAPIReady() 
{ player = new YT.Player('player',{ videoId:'<?php echo''.$fulluri2.'' ; ?>',
playerVars: { autoplay: 1, html5: 1, theme: "light", modesbranding: 0,
color: "white", iv_load_policy: 3, showinfo: 0, controls: 2, 'wmode':'opaque',<?php  echo ''.$list.''; ?>}, }); }  
var tag = document.createElement('script');tag.src = "https://www.youtube.com/player_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);

S
Svirepyy_Barsik, 2018-03-03
@Svirepyy_Barsik

I can't fucking do it exactly like on that page...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question