Monday 22 February 2016

Moodle's embedded Youtube Videos: Customize Player Parameters


When working with Moodle (or with your website) it's great to take advance of the videos in Youtube as to be able to customize the players in the embedded videos so they show the controls that you want...
  1. The basic steps here. Youtube give you an interface to configure some options
  2. For more advanced requirements, you will learn how to customize a lot of parameters looking at the website here
  3. If you still can not get what you want you can find answers or ask questions in the 'YouTube Help' forum. I found some answer for the right 'related videos' code in this specific question of that forum.
As an example, there are a lot of people who do not like the idea of having their Moodle students going to Youtube when clicking in the link in the top of an embedded video.

Example: <iframe width="560" height="315" src="https://www.youtube.com/embed/iOyLq0B-rz0?'start=136&end=178"rel=0&;autoplay=0&;showinfo=0&;modestbranding=1" frameborder="0"></iframe>


Where...
start begin playing the video at the given number of seconds
end measured in seconds from the start of the video, when the player should stop playing the video
rel=0 whether the player should show related videos when playback of the initial video ends.
controls=0 whether the video player controls are displayed
showinfo=0 Setting the parameter's value to 0 causes the player to not display information like the video title and uploader before the video starts playing
modestbranding=1 to have a player that does not show a YouTube logo
#t=”   add “#t=” to a video’s embed code, followed by the time at which you’d like the video to begin playing.
Orther interesting options...
&autoplay=1 Make an embedded video play automatically
Add “#t=” to a video’s embed code, followed by the time at which you’d like the video to begin playing to start an embedded video at a certain time (you can now configure the same from youtube interface when clicking in embed)

If you have problems with your code, there are some interesting answers here

See the video embedded below (the start and end time code has been removed here)...



Please write your comments below...

No comments:

Post a Comment