Media Player implementation
Design and Skin Customization
Hi Michael,
Im sorry, I made a mistake in my explanation. The two files that I created were videos.tpl and video_row.tpl. However, thanks to your examples I was able to figure it out. I replaced the "$item._item_id" with "item_id=$item_id"
Videos.tpl - {jrCore_media_player module="jrVideo" field="video_file" item_id=$item_id}
video_row.tpl - href="{$jamroom_url}/Videos/item_id={$item._item_id}">{$item.video_title}
Now I can list all videos and play them on the same videos.tpl page.
So my next problem...
Now that the video plays correctly, how do i avoid the page refreshing with every video click?
I tried the following
Videos.tpl - added a div id="vplayer" to the page
video_row.tpl - onclick="jrLoad('#vplayer','{$jamroom_url}/Videos/item_id={$item._item_id}');">{$item.video_title}
My first attempt loaded in the correct area, but displayed the whole page instead of just the player.
I then created video_player.tpl with just a player and changed the video_row.tpl to:
video_row.tpl - onclick="jrLoad('#vplayer','{$jamroom_url}/video_player/item_id={$item._item_id}');">{$item.video_title}
but it does not work. What is wrong with the code in the video_row.tpl "onclick" link?
Please advise
Again, thanks for your earlier response
MAkande
updated by @makande: 01/17/17 10:58:08PM