Web Hosting Forum | Lunarpages
News: July 14, 2008 - New Contest! - Submit Your WordPress Theme Designs, Win BIG!
June 30, 2008 - Submit Your Site for the July 08 Site of the Month Award!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 25, 2008, 11:22:08 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: java flash player help  (Read 1140 times)
doh!
Intergalactic Superstar
*****
Offline Offline

Posts: 138


« on: September 24, 2007, 10:23:19 AM »

I found a java/flash mp3 player here
http://jssoundkit.sourceforge.net/
but I don't know how to change it to play my own files.

the example given on the website to play files is:
var mysound = new Sound();
mysound.loadSound("http://www.archive.org/download/Behind/SyncFilmicoBehind.mp3", true);
mysound.setVolume(30);

so I change the mysound.loadSound("http://www.archive.org/download/Behind/SyncFilmicoBehind.mp3", true);
to mysound.loadSound("http://localhost/mp3s/test.mp3", true);
and when I go to the player page http://localhost/player.html
then nothing plays.


but if I leave the downloaded example files as is:

<script type="text/javascript" src="http://cchits.ning.com/recent/?fmt=json&var=cchitsPlaylist"></script>
  // <![CDATA[

var player = new Player();


player.loadPlaylist(cchitsPlaylist.playlist.trackList);


  // ]]>

then the playlist from cchits.ning.com will play correctly.

how can i change this to play my files? and my playlist? it seems that it doesn't work with the asx playlists on localhost...
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM