Problem:
I am trying to make the embedded media field to autoplay. However it won't let me.
<?php $renderfieldmedia = types_render_field('film', array('raw'=>'true'))?> <?php if(!empty($renderfieldmedia)){?> <div id="videoholder"> <dd><?php echo(types_render_field('film', array("output" => "html", "autoplay" => "on"))); ?></dd> </div>
Solution:
you are using a custom embedded media field, I tested with a custom video field, sorry for the misunderstand.
According to our document:
https://toolset.com/documentation/customizing-sites-using-php/functions/#embedded-media
There isn't "autoplay" option in custom embedded media field, and it is wordpress do not support "autoplay" for embed media.
I search in google, and find this thread:
http://wordpress.stackexchange.com/questions/5362/wp-oembed-not-passing-through-the-autoplay-1-variable
Relevant Documentation:
Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | - |
- | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - |
Supporter timezone: Asia/Hong_Kong (GMT+08:00)
This topic contains 6 replies, has 2 voices.
Last updated by Ole Andreas Vekve 7 years, 11 months ago.
Assisted by: Luo Yang.
The forum ‘Types Community Support’ is closed to new topics and replies.