Keyword

Disable autoplay on swf files

  • Ewoud Vreugdenhil
  • Ewoud Vreugdenhil's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 8 months ago #56124 by Ewoud Vreugdenhil
Disable autoplay on swf files was created by Ewoud Vreugdenhil
Hi there,

On a website that I am creating for a client I need to add existing swf files which autoplay when you open the page. Because there are 2 swf files on one page I want to disable autoplay. In the file sources.php located in plugins/content/jw_allvideos/jw_allvideos/includes/ on line 204 I found the following code:
"swf" => "
<object type=\"application/x-shockwave-flash\" style=\"width:{WIDTH}px;height:{HEIGHT}px;\" data=\"{SITEURL}/{FOLDER}/{SOURCE}.swf\">
	<param name=\"movie\" value=\"{SITEURL}/{FOLDER}/{SOURCE}.swf\" />
	<param name=\"quality\" value=\"high\" />
	<param name=\"wmode\" value=\"{PLAYER_TRANSPARENCY}\" />
	<param name=\"bgcolor\" value=\"{PLAYER_BACKGROUND}\" />
	<param name=\"autoplay\" value=\"{PLAYER_AUTOPLAY}\" />

But I don't have an idea what I should change or add to disable autoplay. When using Google I find a lot of pages that say the following code disables autoplay but when adding that to the code above, the files still autoplay when loading the page.
<param name="play" value="false">

Any ideas on how to disable autoplay?

Thanks,
Ewoud

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 8 months ago #56126 by Krikor Boghossian
Replied by Krikor Boghossian on topic Disable autoplay on swf files
If you change this then you will disable autoplay for all the files.

You can also use syntax like: {format/provider}filenameORvideoID|width|height|autoplay{/format/provider} to manually disable or enable autplaying of a video.

More info can be found here:
www.joomlaworks.net/support/docs/allvideos

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Ewoud Vreugdenhil
  • Ewoud Vreugdenhil's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 8 months ago #56130 by Ewoud Vreugdenhil
Replied by Ewoud Vreugdenhil on topic Disable autoplay on swf files
Hi Krikor,

Thanks for your reply.

I do not mind to disable autoplay for all files. Therefore can you tell me what I need to change to disable autoplay in general?

I like the fact of working with tags such as {swf}banners/promo{/swf} to add a swf file that is located on the server. A syntax like you mentioned doesn't disable the autoplay. I have used the following syntax:

{swf}path/to/location|600|450|0{/swf}

Maybe I am doing something wrong in the syntax?

Regards,
Ewoud

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 8 months ago #56138 by Krikor Boghossian
Replied by Krikor Boghossian on topic Disable autoplay on swf files
If you are using K2 then you can disable Media autoplay from the category's settings, but by default it is already disabled.

Is the swf a flash animation or is it loading an flv video?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Ewoud Vreugdenhil
  • Ewoud Vreugdenhil's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 8 months ago #56144 by Ewoud Vreugdenhil
Replied by Ewoud Vreugdenhil on topic Disable autoplay on swf files
Hi Krikor,

I am not using K2, just the default Joomla article. I am not an expert on swf files so the page where you can find the swf files is: crm1.graphiqs.nl/historie/fotoboek

Perhaps it is not possible to disable autoplay? Or should I use Adobe Flash to change something in the file?

Regards,
Ewoud

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 8 months ago #56159 by Krikor Boghossian
Replied by Krikor Boghossian on topic Disable autoplay on swf files
I think autoplaying is hardcoded in the swf's timeline.
If you have the .fla files you should stop it from autostarting and re-render it to a new swf file.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Ewoud Vreugdenhil
  • Ewoud Vreugdenhil's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 8 months ago #56161 by Ewoud Vreugdenhil
Replied by Ewoud Vreugdenhil on topic Disable autoplay on swf files
Thanks for letting me know. I need to ask the client if they have the .fla files. Or even better, the original pictures so I can create a normal, non flash, slideshow :).

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 8 months ago #56172 by Krikor Boghossian
Replied by Krikor Boghossian on topic Disable autoplay on swf files
Yes. That would be the best solution.
Flash is outdated and really bad for accessibility.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum