Web Development Thread, Embed a looping playlist of local media in Coding and Web Development; Hi All,
Does anyone have an example of code that I could insert into a HTML document which would allow ...
13th October 2009, 09:38 AM #1
Embed a looping playlist of local media
Does anyone have an example of code that I could insert into a HTML document which would allow me to embed a playlist / selection of LOCAL media that would then loop the playlist when it reaches the end?
I managed to get this kind of thing working with a YouTube playlist using the following code, but unfortunately our Internet connection makes it impossible to progress with as the playlist videos are continually buffering or crashing out:
<div id="Layer1" style="position:absolute; margin: 0px; left:24px; top:57px; width:626px; height:456px; z-index:1">
<object width="623" height="451">
<param name="movie" value="http://uk.youtube.com/p/*MYPLAYLISTKEY*&autoplay=1&loop=1"/><param name="autoplay" value="true" /><param name="loop" value="true" /><embed src="http://uk.youtube.com/p/*MYPLAYLISTKEY*&&autoplay=1&loop=1" type="application/x-shockwave-flash" autoplay="true" loop="true" width="623" height="451"></embed></object>
If anyone is able to help turn the above in to something which replaces the YouTube playlist with local media on a continual loop I'll be very grateful!
IDG Tech News
13th October 2009, 05:55 PM #2
A shameless bump, in the hope someone can solve my headache!
(If it helps, I can create a playlist that autoloads by using Microsoft Expression Encoder - this would be perfect if I could get it to loop, but can't see where/how to do it either in the program itself, or the HTML / PHP that it outputs?!)
13th October 2009, 07:08 PM #3
Would this not work? or will an embedded windows media player not play playlists?
<object width="300" height="42">
<param name="src" value="localpath to playlist">
<param name="autoplay" value="true">
<param name="controller" value="true">
<param name="bgcolor" value="#FF9900">
<embed src="localpath to playlist" autostart="true" loop="true" width="300" height="42" controller="true" bgcolor="#FF9900"></embed>
i know it's possible as i did it on my first year at uni... but the laptop that holds that program is now defunkt... even went as far as having clickable album covers, which then turned into clickable song pictures from that album. and depending on what you clicked it would change what was playing.
Last edited by mossj; 13th October 2009 at 07:12 PM.
Thanks to mossj from:
mb2k01 (14th October 2009)
14th October 2009, 09:58 AM #4
Your code pretty much got me there - massive thanks!
The code I eventually used was only tweaked slightly:
This code has enabled me to move forward with a web-based digital signage solution for the school which can be completely local.
<object id="media1" style="width: 621px; height: 452px" type="video/x-ms-wmv">
<param name="filename" value="test1.wpl">
<param name="windowlessVideo" value="0">
<param name="enabled" value="0">
<param name="loop" value="true">
Thanks to mb2k01 from:
mossj (14th October 2009)
14th October 2009, 06:30 PM #5
Just so you know the code you removed (embed tag) was actually to ensure cross-browser campatibility so it doesn't really matter, if you know what system/browser will be using it.
Originally Posted by mb2k01
Last Post: 31st August 2010, 09:00 PM
By DirtySnipe in forum EduGeek Joomla 1.5 Package
Last Post: 25th June 2008, 08:36 PM
By googlemad in forum Windows
Last Post: 4th June 2008, 01:43 PM
By reggiep in forum EduGeek Joomla 1.0 Package
Last Post: 20th May 2008, 03:46 PM
By dan6540 in forum How do you do....it?
Last Post: 20th November 2007, 03:11 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)