louisstephens

Youtube's "rel=0" no longer works (as expected)

Recommended Posts

So I don't know how many have noticed yet, but Youtube has depreciated "rel=0" at the end of the embedded url in September 2018. For some reason, I just noticed today on a site I was working on. If you do not use the rel, you will get related videos across youtube, but if you use it, you will only get related videos from the same channel. Just wanted to share in case people did not know and they needed to make a change on whatever they were working on.

  • Like 2

Share this post


Link to post
Share on other sites
57 minutes ago, louisstephens said:

So I don't know how many have noticed yet, but Youtube has depreciated "rel=0" at the end of the embedded url in September 2018. For some reason, I just noticed today on a site I was working on. If you do not use the rel, you will get related videos across youtube, but if you use it, you will only get related videos from the same channel. Just wanted to share in case people did not know and they needed to make a change on whatever they were working on.

https://developers.google.com/youtube/player_parameters#release_notes_08_23_2018

  • Like 1

Share this post


Link to post
Share on other sites

Just spend a good amount of time on this and played around. This rel=0 will not work as before as @louisstephens already mentioned.
Neither with customized embeds, nor with (my known) jQuery solutions.
Using rel=0 at least limits videos to those of that channel - which can be good.

What still works, if really needed, downloading the *.mp4 and embedding it as a video.

Irritating that several parts of the YT documentation still show this example, even in snippets.

Share this post


Link to post
Share on other sites

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By celfred
      Hello,
      Another newbie question. My Processwire sites is growing and I'm wondering if my way of doing things sounds goog to you. I tend to avoid what I consider 'heavy and frequent' database requests in my functions. For example :
      // In functions.php myfunction($player) { wire('$pages')->find("myselectors"); // This means about 300 database requests do something... (like $p->newTmpField = 1;) return $player; } // In template.php $allPlayers = $pages->find("template=player"); // About 300 players foreach ($allPlayers as $p) { myfunction($p); } // Now I have access to newTmpField, for example.  I tend to replace with :
      // In function.php myfunction($allPlayers) { foreach($allPlayers as $p) { // do something like set $p->newTmpField = 1 } return $allPlayers; } // In template.php $allPlayers = $pages->find("template=player"); myfunction($allPlayers); // Now $players have been modified. For example, I have $allPlayer->find("newTmpField=1"); So for the moment, I tend to choose the second solution which makes only 1 database request, but what do more experimented developers would recommend ?
      What I find useful with Page objects in functons arguments is that I have the whole 'tree' I can then 'find' in my function. But as you can see, I need to understand things better. I have a feeling my 'practical' explanation is not really convincing 🙂 
      Thanks if someone can take a few minutes to give me advice !
    • By [Code] Specialist
      Hi Folks,
      I am lost and stuck !
       I like to setup several domains with ProcessWire - MultiLanguage. All Pages should have the same basisconfiguration and Fieldsets. Its a messy job to setup each domain manually, so my idea was to develop a module , which setup my basis templates + fields + fieldsettings (visuality / dependencies / fieldsets) automatically.
      But I have no idea how to start and what to start with.
      All modules I looked at, mostly do something for front-end jobs. But this is an install-module.
      How to create a module which:
      create fields and fieldsets and its dependencies (is there a cheatpage for all possibilities ?) create template Pages which implements above fields If someone could give me an easy implementationhint it would be sooooo nice. Maybe there is already something I could look at for learning.
      Thanks a lot
      Michael
      --
      Using PW 3.0.62
    • By hellomoto
      I hid/set aside the old /wire/, index.php, and .htaccess, as well as /site/config.php. Debug=1. $config->urls->admin = /pw/, as it's set as. I'm finding that others are encountering a similar issue but haven't found any solution yet, at least none that works for me. Please help, thanks much
    • By kuba2
      Hi there
      I'm struggling with my embedded youtube videos. They're too big on mobile. I am using the VideoEmbed module from processwire.
      I tried this method:
      http://avexdesigns.com/responsive-youtube-embed/
      It works, but for one single video.
      I have a Textarea with text and multiple embedded youtube-links, and it goes crazy, when I use the above method.
      Website:
      http://olikehrli.ch/videos/
      My code:
                  <div class="row">                 <div class="small-12 large-8 medium-8 medium-push-2 columns" id="bgvideo" >                                           <? echo $page->Videos; ?>                      </div>                                  </div> Do I have to put these videos in seperate textareas?   Thanks for any suggestions   Jakob
    • By ragnarokkr
      Hi all!
      I hope somebody could help me to figure out this weird issue I've found.
      Few days ago I've upgraded my local installation to the latest dev release (2.6.20 -> 2.6.22 rc1) and performed some tests to be sure everything was working as expected. No problem at all.
      After these tests, I decided to do the upgrade to the remote installation, too. Here the problems came.
      The upgrade was done without any issue or error message. Everything was ok, but permissions don't work as expected.
      I've an author role with limited editing permissions (page-add/create for children pages, and page-edit-created) that works as expected on local installation, but doesn't works at all on remote installation. Only page-view permission is still available for some pages. Some pages expected to be editable, now don't have any permission available (neither the page-view permission), even whether I remove any kind of access control, PW still complains that the role hasn't the required permission for adding or editing. 
      Any help is really welcome. Thx!