+ Post New Thread
Results 1 to 5 of 5
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 ...
  1. #1
    mb2k01's Avatar
    Join Date
    Jan 2007
    Posts
    1,138
    Thank Post
    189
    Thanked 230 Times in 195 Posts
    Rep Power
    92

    Embed a looping playlist of local media

    Hi All,

    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>
    </div>

    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!

  2. #2
    mb2k01's Avatar
    Join Date
    Jan 2007
    Posts
    1,138
    Thank Post
    189
    Thanked 230 Times in 195 Posts
    Rep Power
    92
    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?!)

  3. #3
    mossj's Avatar
    Join Date
    Dec 2008
    Location
    Leicester
    Posts
    1,466
    Thank Post
    157
    Thanked 189 Times in 174 Posts
    Rep Power
    52
    Code:
    <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>
    </object>
    Would this not work? or will an embedded windows media player not play playlists?

    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.

  4. Thanks to mossj from:

    mb2k01 (14th October 2009)

  5. #4
    mb2k01's Avatar
    Join Date
    Jan 2007
    Posts
    1,138
    Thank Post
    189
    Thanked 230 Times in 195 Posts
    Rep Power
    92
    Hi Mossj,

    Your code pretty much got me there - massive thanks!
    The code I eventually used was only tweaked slightly:
    Code:
    <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">
    	</object>
    This code has enabled me to move forward with a web-based digital signage solution for the school which can be completely local.

    Many thanks

  6. Thanks to mb2k01 from:

    mossj (14th October 2009)

  7. #5
    mossj's Avatar
    Join Date
    Dec 2008
    Location
    Leicester
    Posts
    1,466
    Thank Post
    157
    Thanked 189 Times in 174 Posts
    Rep Power
    52
    Quote Originally Posted by mb2k01 View Post
    Hi Mossj,

    Your code pretty much got me there - massive thanks!
    The code I eventually used was only tweaked slightly:
    Code:
    <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">
    	</object>
    This code has enabled me to move forward with a web-based digital signage solution for the school which can be completely local.

    Many thanks
    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.

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 3
    Last Post: 31st August 2010, 09:00 PM
  2. How to insert / embed movie files
    By DirtySnipe in forum EduGeek Joomla 1.5 Package
    Replies: 5
    Last Post: 25th June 2008, 08:36 PM
  3. Novell looping XP!
    By googlemad in forum Windows
    Replies: 2
    Last Post: 4th June 2008, 01:43 PM
  4. Embed a google map on a static page?
    By reggiep in forum EduGeek Joomla 1.0 Package
    Replies: 7
    Last Post: 20th May 2008, 03:46 PM
  5. Powerpoint Playlist loop
    By dan6540 in forum How do you do....it?
    Replies: 2
    Last Post: 20th November 2007, 03:11 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •