Autoplay with new module multimedia

powerful_superman

Joined: 2010-02-10
Posts: 13
Posted: Fri, 2013-03-08 18:32

After I updated flash module to the new multimedia module, I've found that the video will auto play once the page is opened. Is there a way to disable autoplay?
Thanks.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2013-03-08 23:25

gallery2/modules/multimedia/classes/MultimediaRenderer.class line 148

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
powerful_superman

Joined: 2010-02-10
Posts: 13
Posted: Sat, 2013-03-09 08:09

Thanks for the quick reply. That solved my issue.

 
UsedJeans

Joined: 2007-04-12
Posts: 10
Posted: Tue, 2014-01-07 11:10

Hi suprsidr,

I changed that line to false and the videos still autoplayed. I ended up changing every "autoplay" entry to false and that still didn't keep my videos from automatically playing. Am I missing some step here? FYI, I've tried loading the videos on Firefox, Chrome, and Safari on Windows 8.1 (to ensure it's not a cached page issue).

Thanks,
UsedJeans

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2014-01-07 13:39

url to offending site?

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2014-01-07 19:34

Ok, your using x-flv media. We fallback to flowplayer for this mime-type.

MultimediaRenderer.class line ~180:

                            clip: {
                                url: '%s',
                                autoPlay: false,
                                scaling: 'fit'
                            }

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
UsedJeans

Joined: 2007-04-12
Posts: 10
Posted: Tue, 2014-01-07 21:17

Yes, the "autoPlay: false," line was missing. Did I grab the wrong version when I downloaded it?

Also, now that it doesn't autoplay... The player does not show a frame from the video, just a gray background with the play button. Is there a way to display a frame, either the one chosen as the thumbnail for the video or the first frame?

Finally, will there ever be support (also for mobile devices) to play Flash Video files without having flash installed? (HTML5 video tag that supports Flash Video?) I'm just worried that in the future, when Adobe stops supporting their flash player, all of my online videos will no longer be playable. One of my galleries has hundreds, maybe even thousands, of videos and I don't have the time to hunt down the originals and convert them to some other video format.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2014-01-07 21:51
Quote:
Yes, the "autoPlay: false," line was missing. Did I grab the wrong version when I downloaded it?

no

Quote:
Also, now that it doesn't autoplay... The player does not show a frame from the video, just a gray background with the play button. Is there a way to display a frame, either the one chosen as the thumbnail for the video or the first frame?

http://flash.flowplayer.org/demos/installation/splash-image.html

I did not do any of this for the flowplayer fallback which is primarily for IE<9 only. This module was meant for moving forward. Flash is dead, Apple made sure if that. FLV will not play on mobile devices.

MP4 and Webm are the best formats. Mp4 can play in the fallback flashplayer for IE8

http://testr.suprsidr.com/v/video/

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
UsedJeans

Joined: 2007-04-12
Posts: 10
Posted: Wed, 2014-01-08 11:59

Ah, I also found an easier way that uses the first frame, but not without possible performance issues. I added the following to the section you mentioned above:

autoBuffering: true,

which shows the first frame of the video, but will pre-buffer the video in the background. I will also look into implementing the splash image you mentioned above. However, that method does not allow pre-buffering.

Thanks again for your help suprsidr. I have downloaded Handbrake and am looking into converting my future videos to MP4.

-UsedJeans