Make video autoplay on loading node

2 replies [Last post]
Joined: 11/09/2009
Points: 4

Is there a way I can make it so the video starts play as soon as the full node view loads? I want it so that when you click on the thumbnail, it goes to the node and start playing the video right away so the user doesn't have to click yet again to start play.

Thanks!

Joined: 11/09/2009
Points: 4

Sorry the server gave an error so I posted this twice by accident

Is there a way I can make it so the video starts play as soon as the full node view loads? I want it so that when you click on the thumbnail, it goes to the node and start playing the video right away so the user doesn't have to click yet again to start play.

Thanks!

Joined: 02/22/2009
Points: 97

The correct way to do it will be - overriding the theme function of the entryId field.

you can find the function in file:
plugins/node_kaltura_entry/node_kaltura_entry.module

function theme_node_kaltura_entry_entryId($node, $teaser) {

what you want to do is add the following to the returned tag

 autoplay="true"

so your returned tag will be changed from:

return '[kaltura-widget media_type="'. $media_type .'" entry="'. $node->kaltura_entryId .'" size="large" width="'. $width .'" height="'. $height .'" /]';

to:

return '[kaltura-widget media_type="'. $media_type .'" entry="'. $node->kaltura_entryId .'" size="large" width="'. $width .'" height="'. $height .'" autoplay="true" /]';

how to override drupal theme function:
http://drupal.org/node/55126

hope that helps,
Gonen.