videojs / videojs-youtube

YouTube playback technology for Video.js
1.12k stars 548 forks source link

Redirect links from Youtube #581

Open ArildoNT opened 3 years ago

ArildoNT commented 3 years ago

First of all, sorry for my bad english... i'm a little rusty...

I'm trying to play a youtube video on the videojs player, but i need to remove the links and buttons witch redirect de user to the youtube page or enable him/her to share the video link, or somehow prevent the user to click those links and buttons...

Can someone help me with this issue?

<video id="@ViewBag.videoID"
                       class="video-js vjs-default-skin"
                       controls
                       preload="auto"
                       width="640"
                       height="264"
                       data-setup='{ "techOrder": ["youtube"], "sources": [{ "type": "video/youtube", "src": "@ViewBag.video"}], "youtube": { "ytControls": 2 } }'>
</video>

image

gkatsev commented 3 years ago

Unfortunately, youtube doesn't provide a way to turn those off anymore.