Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
User Documentation and How To's:
Howto: insert a video player with the video from chart
Bloodcrave



Joined: 05 Jan 2008
Posts: 748

Posted: 10/28/11 05:32 
Hi,

I'm working on a chart for my home page with the top 5 most viewed videos of the day.
And I'd like to "embed" the no #1 video in the video player.

So I get 2 vertical div boxes.
Div box 1: a video player which contains the number 1 video
Div box 2: the top 5 overview.

Now I have the chart overview working. But I don't get the video player working.


Code

<table width="100%" cellpadding="0" cellspacing="0">
  <tr>
     <div>

  {* figure out our playlist *}
  {if is_numeric($video_id)}
    {assign var="auto_play" value="no"}
    {assign var="play_url" value="`$JAMROOM_URL`/play.php?mode=video&band_id=`$band_id`&video_id=`$video_id`&format=xspf"}
    {jr_array name="fvars" key="repeat" value="list"}
  {/if}

  {* see which player we are doing *}
  {if is_file("`$JAMROOM_DIR`/include/jeroen/player_v4.swf")}
    {assign var="player" value="jeroen4"}
  {elseif is_file("`$JAMROOM_DIR`/themes/Groove/ds_flv_277x260_Sage_buy.swf")}
    {assign var="player" value="`$JAMROOM_URL`/themes/Groove/ds_flv_277x260_Sage_buy.swf"}
  {elseif is_file("`$JAMROOM_DIR`/themes/Groove/ds_flv_277x260_Sage.swf")}
    {assign var="player" value="`$JAMROOM_URL`/themes/Groove/ds_flv_277x260_Sage.swf"}
  {else}
    Unable to find a suitable Flash Player for Video!
  {/if}

  {if strlen($player) > 0}
  {jr_flash_player player_type=$player playlist_url=$play_url width="340" height="200" auto_play=$auto_play params=$fvars}
  {/if}

</div>  </tr>
</table>


This is the code I took from the player_video.tpl.

-Brian

Back to top
Douglas
Jamroom Team


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

Posted: 10/28/11 07:52 
Without seeing the rest of the code, specifically the code for the ranking function, it would be real hard to tell why your not seeing the video player.

Thanks,
Douglas


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



Joined: 05 Jan 2008
Posts: 748

Posted: 10/28/11 08:08 
Hi Doug,

I do see the video player, but it tells me that the playlist is not a valid XML file.
So how can I create a dynamic xml file which put the number 1 video of the day in the video player?


SixString:
Without seeing the rest of the code, specifically the code for the ranking function, it would be real hard to tell why your not seeing the video player.

Thanks,
Douglas


Back to top
Douglas
Jamroom Team


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

Posted: 10/29/11 05:12 
Which players are you using?

If your using the Nova players, try this for your play_url variable...


Code
{assign var="play_url" value="`$JAMROOM_URL`/play.php?mode=video&band_id=`$band_id`&video_id=`$video_id`&format=nv_2&type=xspf"}


If your not using the Nova players, try this...


Code
{assign var="play_url" value="`$JAMROOM_URL`/play.php?mode=video&band_id=`$band_id`&video_id=`$video_id`&type=xspf"}


Hope this helps,
Douglas


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



Joined: 05 Jan 2008
Posts: 748

Posted: 10/29/11 10:37 
Unfortunately that doesn't work.
still showing the same error.

Maybe it's something with the ranking?


Code
{jr_chart type="video" chart_days="1" header_template="" row_template="chart_video_player.tpl" show="1" footer_template=""}


Back to top
Douglas
Jamroom Team


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

Posted: 10/30/11 08:55 
Is this your chart_video_player.tpl....


Code
<table width="100%" cellpadding="0" cellspacing="0">
  <tr>
     <div>

  {* figure out our playlist *}
  {if is_numeric($video_id)}
    {assign var="auto_play" value="no"}
    {assign var="play_url" value="`$JAMROOM_URL`/play.php?mode=video&band_id=`$band_id`&video_id=`$video_id`&format=xspf"}
    {jr_array name="fvars" key="repeat" value="list"}
  {/if}

  {* see which player we are doing *}
  {if is_file("`$JAMROOM_DIR`/include/jeroen/player_v4.swf")}
    {assign var="player" value="jeroen4"}
  {elseif is_file("`$JAMROOM_DIR`/themes/Groove/ds_flv_277x260_Sage_buy.swf")}
    {assign var="player" value="`$JAMROOM_URL`/themes/Groove/ds_flv_277x260_Sage_buy.swf"}
  {elseif is_file("`$JAMROOM_DIR`/themes/Groove/ds_flv_277x260_Sage.swf")}
    {assign var="player" value="`$JAMROOM_URL`/themes/Groove/ds_flv_277x260_Sage.swf"}
  {else}
    Unable to find a suitable Flash Player for Video!
  {/if}

  {if strlen($player) > 0}
  {jr_flash_player player_type=$player playlist_url=$play_url width="340" height="200" auto_play=$auto_play params=$fvars}
  {/if}

</div>  </tr>
</table>


if so, try this for the play_url...


Code
{assign var="play_url" value="`$JAMROOM_URL`/play.php?mode=video&band_id=`$BAND_ID`&video_id=`$VIDEO_ID`&format=nv_2&type=xspf"}


Hope this helps,
Douglas


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



Joined: 05 Jan 2008
Posts: 748

Posted: 10/30/11 12:32 
I don't get it work

This is the code I have for the player:


Code
<table width="100%" cellpadding="0" cellspacing="0">
  <tr>
     <div>

  {* figure out our playlist *}
  {if is_numeric($video_id)}
    {assign var="auto_play" value="no"}
   {assign var="play_url" value="`$JAMROOM_URL`/play.php?mode=video&band_id=`$BAND_ID`&video_id=`$VIDEO_ID`&format=nv_2&type=xspf"}
    {jr_array name="fvars" key="repeat" value="list"}
  {/if}

  {* see which player we are doing *}
  {if is_file("`$JAMROOM_DIR`/include/jeroen/player_v4.swf")}
    {assign var="player" value="jeroen4"}
  {elseif is_file("`$JAMROOM_DIR`/themes/Groove/ds_flv_277x260_Sage_buy.swf")}
    {assign var="player" value="`$JAMROOM_URL`/themes/Groove/ds_flv_277x260_Sage_buy.swf"}
  {elseif is_file("`$JAMROOM_DIR`/themes/Groove/ds_flv_277x260_Sage.swf")}
    {assign var="player" value="`$JAMROOM_URL`/themes/Groove/ds_flv_277x260_Sage.swf"}
  {else}
    Unable to find a suitable Flash Player for Video!
  {/if}

  {if strlen($player) > 0}
  {jr_flash_player player_type=$player playlist_url=$play_url width="300" height="200" auto_play=$auto_play params=$fvars}
  {/if}
 </div>  </tr>
</table>


This is the code I have to 'call' the #1 video:

Code
{jr_chart type="video" chart_days="1" header_template="" row_template="chart_video_player.tpl" show="1" footer_template=""}


Back to top
Douglas
Jamroom Team


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

Posted: 10/31/11 07:10 
Do you have a link to the player so I can check it out?

Thanks,
Douglas


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


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

Posted: 10/31/11 11:07 
Hi Guys........
I just noticed this thread and I don't mean to butt in........

But if your just trying to embed a Video Player on your page that will play the Top Video of the Day, then I should have some code with instructions someplace that should help.

But Six is right..........
A link to the issue is always good to have.... Wink

Let me know........
Greg -


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



Joined: 05 Jan 2008
Posts: 748

Posted: 10/31/11 18:23 
the website is currently out of maintenance mode: http://alternate-zone.com/index.php
It's a old layout which I'm currently re-designing, but first I need the features getting work properly.

Back to top
Douglas
Jamroom Team


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

Posted: 11/01/11 04:21 
If your referring to the player on the home page, that is not the Nova player, that is the Jeroen player. I'm not sure what needs to be done here, maybe Greg can chime in when he gets a chance.

Hope this helps,
Douglas


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


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

Posted: 11/01/11 10:49 

Bloodcrave:
the website is currently out of maintenance mode: http://alternate-zone.com/index.php
It's a old layout which I'm currently re-designing, but first I need the features getting work properly.


The Jeroen Player is harder to get working and really isn't supported in Jamrom anymore, so I'm not sure I can help you with that. But I think I can come up with some coding that will install the Nova Player in that spot if your interested.

Let me know........
Greg -


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



Joined: 05 Jan 2008
Posts: 748

Posted: 11/01/11 10:54 
I will try to get it work with the nova player. When i need some help i'll catch ya up at this topic.
Thnx!

Back to top
Bloodcrave



Joined: 05 Jan 2008
Posts: 748

Posted: 11/14/11 01:49 
Did you get this working?
if so, which player do you use and do you have a sample code?



marylyndaniels:
great post really help me a lot









Noise induced hearing loss, Industrial deafness claims Industrial accident compensation



EDIT................
Sorry, but the person that replied to your post was just posting Spam on the board.........
So I took the links out of the quote you used from his post,
Then deleted his post and reported it...

Greg -

Back to top
daddysylem
DS Flash Players


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

Posted: 11/14/11 08:37 

Bloodcrave:
Did you get this working?
if so, which player do you use and do you have a sample code?


Are you still needing help with this ?????
If so, I'll dig through my code and see if I can find something that will work for you.

Let me know........
Greg -


_________________
I have no idea why I do this..................
Email: daddysylem[at]dsplayerskins.com
DSPlayerSkins.com
GCFireSprinkler.com
Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
User Documentation and How To's

12Next >
 
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.