4

I am using media_youtube module for embedded videos from youtube.

I am looking for a way to autoplay video as soon as it appears. Is it possible with this module?
Also I would like to make some action as soon as video ends. It would probably be going to some other drupal article. Is it possible?

10

The module developers hid these options well!

  1. Click on Configuration (or Structure depending on versions)
  2. Click on File Types
  3. For Video, click on manage file display
  4. For the display you are using (Default, Link, Preview, etc..), click on the YouTube Video tab under Display Settings.
  5. Check the box called "Autoplay video on load"
  • Works like a charm! Thank you very much. What about some action afer video ending? I am pretty sure that one may achieve this with google youtube API (I have seen option to enable this in module's configuration), but I have no idea how to get to this API from drupal's site. – Crazy Yoghurt Aug 22 '13 at 20:53
  • For those who are wondering, the option to "Show related videos when playback ends" is also there. In my case I wanted to remove that ability and uploading the videos with ?rel=0 at the end was not working. Unchecking that option did the trick. – Keven Aug 19 '15 at 19:11
1

just want to add here that if you're using Safari and you have an extension such as ClicktoFlash installed and enabled it might be that your browser will automatically play the video depending on your settings of that extension. So if you have your video still 'autoplays' have a look there as well.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.