solved Question Concerning autoplay=true

derrickhand300
@derrickhand300
10 years ago
1,353 posts
Trying to get a specific page to autoplay a song when its loaded using
{jrCore_list module="jrAudio" search1="_profile_id != 0" order_by="_created desc" limit="1"  autoplay=true}

I have also tried
{jrCore_list module="jrAudio" search1="_profile_id != 0" order_by="_created desc" limit="1"  autoplay="true"}

Still wont autoplay-can anyone spot where I am going wrong?

The player button shows up and plays when clicked but cant get the autoplay to work
Thanks
updated by @derrickhand300: 12/22/16 11:55:59AM
douglas
@douglas
10 years ago
2,802 posts
I don't believe the button player is setup to auto play and I'm not sure you would want to mainly because usually there are more than one on a page.

Aside from that, I believe the autoplay parameter would need to be in a jrCore_media_player function.

https://www.jamroom.net/the-jamroom-network/documentation/development/788/jrcore-media-player


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos

updated by @douglas: 12/10/15 08:58:57AM
derrickhand300
@derrickhand300
10 years ago
1,353 posts
Thanks-ended up using
<audio autoplay>
  <source src="http://s3-us-west-1.amazonaws.com/sayreeagles/Sayre+Band.mp3" type="audio/mp3">
</audio>

updated by @derrickhand300: 12/10/15 04:50:51PM
michael
@michael
10 years ago
7,791 posts
its ok to put autoplay="true" into your jrCore_list function as a parameter, just be aware about what happens.

By putting it in there:
{jrCore_list module="jrAudio" search1="_profile_id != 0" order_by="_created desc" limit="1"  autoplay=true}

it will be available in the row template as {$autoplay}, or it might be $_params.autoplay, check {debug} to be sure.

So from there, if you want to autoplay the media player that is in the row template you cuan use autoplay=$_params.autoplay.

Tags