
Cannot disable YouTube Related Videos on mobile
My company is using JW Player to embed YouTube videos on our mobile site. I asked our IT team to embed a few new videos and I gave them the instructions to use ?rel=0 so the related videos would be disabled. They say it is not working and here is the response as to why. Is there anyway around this?
Unfortunately, we won’t be able to disable the related videos for youtube links.
Please find the technical explanation below,
We are using JWplayer to load all video content for the mobile site. JWplayer uses one of the two modes to play the video, ‘flash’ or ‘html5’.
For all mobile devices it loads html5 to play the videos, and when played through html5, html5 api loads a youtube iframe and youtube player takes control.
Even after passing the parameters to disable the related videos while loading the frame, Jwplayer truncates the URLs and loads the youtube frame.
As such we cannot disable the related videos when we are using HTML5 option, but HTML5 is the only option that would work across all mobile devices.