Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
DS Flash Players:
Working jeroen player code
cafenubi



Joined: 17 Jan 2008
Posts: 400

Posted: 06/25/08 13:04 

ittsmee2:
Can there be 2 jeroen players on the same page without conflict? I know it can be done, but it doesn't seem to work with the jr_flash_player code


I was able to get the video and audio player to play on the same page with the codes given.

On my site i have three columns and i had them in the center column,took them off though,im making a page for them specifically because i think they helped add to my page loading slow.

But they both showed ok for me.

Back to top
ittsmee2



Joined: 11 Oct 2006
Posts: 88

Posted: 06/25/08 13:56 
I had them working as far playing but the first player (which was a radio player) was the only one that displayed the flashvars correctly. The second (which was a channel player) kept picking up the flashvars for the first player.

Back to top
smith.kyle
CodeSmith


Joined: 27 Apr 2006
Posts: 22009
Location: Southern California

Posted: 06/25/08 14:45 
What does your code for the first and second flash players look like?


_________________
kyle[at]jamroom.net

Yes...that's a soda machine...

I get bored when no one's posting...
Back to top
ittsmee2



Joined: 11 Oct 2006
Posts: 88

Posted: 06/25/08 15:56 
first player:


Code

{jr_array name="vars" key="backcolor" value="0xeeeeee"}
{jr_array name="vars" key="frontcolor" value="0x006666"}
{jr_array name="vars" key="lightcolor" value="0x666666"}
{jr_array name="vars" key="screencolor" value="0xeeeeee"}
{jr_array name="vars" key="displayheight" value="65"}
{jr_array name="vars" key="displaywidth" value="65"}
{jr_array name="vars" key="searchbar" value="false"}
{jr_array name="vars" key="repeat" value="true"}
{jr_array name="vars" key="shuffle" value="true"}
{jr_flash_player player_type="jeroen" radio_id=4 width="220" height="85" player_playlist_title="GMZ TV" params=$vars}


2nd player:

Code

{jr_array name="vars" key="backcolor" value="0xeeeeee"}
{jr_array name="vars" key="frontcolor" value="0x006666"}
{jr_array name="vars" key="lightcolor" value="0x666666"}
{jr_array name="vars" key="screencolor" value="0xeeeeee"}
{jr_array name="vars" key="displayheight" value="180"}
{jr_array name="vars" key="displaywidth" value="220"}
{jr_array name="vars" key="searchbar" value="false"}
{jr_array name="vars" key="repeat" value="true"}
{jr_array name="vars" key="shuffle" value="true"}
{jr_flash_player player_type="jeroen" channel_id=4 width="220" height="280" player_playlist_title="GMZ TV" params=$vars}


when running this both players display the top code only

Back to top
smith.kyle
CodeSmith


Joined: 27 Apr 2006
Posts: 22009
Location: Southern California

Posted: 06/25/08 16:52 
If those are being referenced on the same page (not just template) it won't work, because you are referring to the same array ($vars) in both flash players.

Try this for your second one:


Code
{jr_array name="vars2" key="backcolor" value="0xeeeeee"}
{jr_array name="vars2" key="frontcolor" value="0x006666"}
{jr_array name="vars2" key="lightcolor" value="0x666666"}
{jr_array name="vars2" key="screencolor" value="0xeeeeee"}
{jr_array name="vars2" key="displayheight" value="180"}
{jr_array name="vars2" key="displaywidth" value="220"}
{jr_array name="vars2" key="searchbar" value="false"}
{jr_array name="vars2" key="repeat" value="true"}
{jr_array name="vars2" key="shuffle" value="true"}
{jr_flash_player player_type="jeroen" channel_id=4 width="220" height="280" player_playlist_title="GMZ TV" params=$vars2}



_________________
kyle[at]jamroom.net

Yes...that's a soda machine...

I get bored when no one's posting...
Back to top
ittsmee2



Joined: 11 Oct 2006
Posts: 88

Posted: 06/25/08 17:29 
Thank you Smile

i knew there must be something I was missing.

Back to top
Douglas
Jamroom Team


Joined: 08 Oct 2004
Posts: 6639
Location: Tornado Alley!

Posted: 06/26/08 06:03 
Nice catch Kyle Wink


_________________
Douglas Hackney
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
cafenubi



Joined: 17 Jan 2008
Posts: 400

Posted: 07/12/08 13:39 

SixString:
Here ya go...


Quote:
{jr_array name="vars" key="backcolor" value="0xFFFFFF"}
{jr_array name="vars" key="frontcolor" value="0x000000"}
{jr_array name="vars" key="lightcolor" value="0xFFFFFF"}
{jr_array name="vars" key="width" value="320"}
{jr_array name="vars" key="height" value="500"}
{jr_array name="vars" key="displayheight" value="320"}
{jr_array name="vars" key="autostart" value="false"}
{jr_array name="vars" key="volume" value="50"}
{jr_flash_player player_type="jeroen" width="320" height="500" channel_id="2" params=$vars}


You can change the channel_id="2" part to radio_id="2" to play a jamroom station, but you may want to modify the width, height, and displayheight or displaywidth parameters.

You can also use song_id="2" and video_id="2" to play single audio and video files.

Hope this helps Smile


Can i have tis radio play only a specific genre
Ive tried but i dont know how to write it Confused

{jr_flash_player player_type="jeroen" width="320" height="500" genre=documentary params=$vars}

How would i write the genre in?

Back to top
smith.kyle
CodeSmith


Joined: 27 Apr 2006
Posts: 22009
Location: Southern California

Posted: 07/12/08 14:12 
You would need to pass a play.php url as the playlist_url parameter to the jr_flash_player function.


_________________
kyle[at]jamroom.net

Yes...that's a soda machine...

I get bored when no one's posting...
Back to top
cafenubi



Joined: 17 Jan 2008
Posts: 400

Posted: 07/14/08 06:13 

smith.kyle:
You would need to pass a play.php url as the playlist_url parameter to the jr_flash_player function.


Thanks Again! Wink

Back to top
cafenubi



Joined: 17 Jan 2008
Posts: 400

Posted: 08/09/08 07:51 
Im trying to figure out this var thing ,i learn by experimentation but this var {jr_array name="vars" key="controlbar" value="none"}


im placing isnt working ,is it allowable?

Also is their documentation on jamroom.net that shows which vars are allowable?

I dont know if i worded this right............

Back to top
daddysylem
DS Flash Players


Joined: 30 Mar 2005
Posts: 4086
Location: Southern California

Posted: 08/10/08 08:37 

cafenubi:
Im trying to figure out this var thing ,i learn by experimentation but this var {jr_array name="vars" key="controlbar" value="none"}


im placing isnt working ,is it allowable?

Also is their documentation on jamroom.net that shows which vars are allowable?

I dont know if i worded this right............



Sorry but I'm not real good with the Jeroen Player myself yet.......
But this should be a list of the flash variables it uses
http://code.jeroenwijering.com/trac/wiki/FlashVars

And this post has alot more links and info in it too...
http://www.jamroom.net/phpBB2/viewtopic.php?t=22649

Thanks....


_________________
I have no idea why I do this..................
Email: daddysylem[at]dsplayerskins.com
DSPlayerSkins.com
GCFireSprinkler.com
Back to top
cafenubi



Joined: 17 Jan 2008
Posts: 400

Posted: 08/11/08 03:45 

daddysylem:

cafenubi:
Im trying to figure out this var thing ,i learn by experimentation but this var {jr_array name="vars" key="controlbar" value="none"}


im placing isnt working ,is it allowable?

Also is their documentation on jamroom.net that shows which vars are allowable?

I dont know if i worded this right............



Sorry but I'm not real good with the Jeroen Player myself yet.......
But this should be a list of the flash variables it uses
http://code.jeroenwijering.com/trac/wiki/FlashVars

And this post has alot more links and info in it too...
http://www.jamroom.net/phpBB2/viewtopic.php?t=22649

Thanks....


Thanks alot! Will do....

Back to top
Brodephat



Joined: 02 Feb 2007
Posts: 173
Location: Carolinas

Posted: 09/07/08 11:28 

Quote:
SixString:
OK, this should do it.


Quote:
{jr_array name="vars" key="backcolor" value="0xFFFFFF"}
{jr_array name="vars" key="frontcolor" value="0x000000"}
{jr_array name="vars" key="lightcolor" value="0xFFFFFF"}
{jr_array name="vars" key="width" value="500"}
{jr_array name="vars" key="height" value="320"}
{jr_array name="vars" key="displaywidth" value="320"}
{jr_array name="vars" key="autostart" value="false"}
{jr_array name="vars" key="volume" value="50"}
{jr_flash_player player_type="jeroen" width="500" height="320" channel_id="2" params=$vars}


Smile


SixString i really appreciate the code and the time you put into providing it,but if i may ask,if you can at you own leisure of course,provide the code with the scolling video selector on the bottom instead of the right,i love it the way it is but the words or titles of the videos are limited with it on the right side.If its on the bottom it might show the whole video title.

Thanks

(Also if i wanted to do the same with mp3s what would i call the player instead of jr_flash_player player_type="jeroen")







add the following line to your embed code to show the playlist using the Jeroen Player:


{jr_array name="vars" key="playlist" value="over"}

where value can be none, over, bottom or right


_________________
Back to top
pitrager



Joined: 10 Jan 2008
Posts: 265
Location: Phoenix, AZ

Posted: 09/19/12 14:32 
I'm trying to get plugins to work. I found a free one that shows a graph spectrum when music plays. I tried using it as Jamroom code and it's not showing up.

{jr_array name="vars" key="plugins" value="spectrumvisualizer-1"}

Do I need to alter the xspf.default.tpl file also?


_________________
Labels are obsolete as we know them...

Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
DS Flash Players

< Previous1234Next >
 
Solutions
• Social Media Platform
• Social Networking Software
• Musician Website Manager
• Community Builder
Products
• Jamroom Core
• Jamroom Addons
• Jamroom Modules
• Jamroom Marketplace
Support
• Support Forum
• Documentation
• Support Center
• Contact Support
Community
• Community Forum
• Member Sites
• Developers
Company
• About Us
• Contact Us
• Privacy Policy
©2003 - 2010 Talldude Networks, LLC.