Britt519
03-05-2005, 11:37 PM
Ok so im a newbie at java scripts... well at html all together... But i was lookin to see if any of you have or know of where i could find a good java script for a media player on my page. thanks :)
|
Click to See Complete Forum and Search --> : Media Player Britt519 03-05-2005, 11:37 PM Ok so im a newbie at java scripts... well at html all together... But i was lookin to see if any of you have or know of where i could find a good java script for a media player on my page. thanks :) Rstratton 03-06-2005, 11:19 AM It All depends On What You Want To Play. Britt519 03-06-2005, 12:24 PM It would be nice to play mp3's. Rstratton 03-06-2005, 12:33 PM You Would Use A Plugin: <html> <head> </head> <embed src="FILE.MP3" width="32" height="32"> </embed> </body> </html> Warren86 03-07-2005, 08:55 AM <HTML> <Head> <Script Language=JavaScript> function playAudio(URL){ if (URL != "") { document.Player.filename = URL; document.Player.play(); } } </Script> </Head> <Body> <center> <h4>Audio Jukebox</h4> </center> <Table Width=650 Height=50 Border="0" Align="center" Cellspacing="5" Cellpadding="10"> <TR> <TD align='right'> <Select name='audioList' onchange="playAudio(audioList.value)"> <option selected value="">Or, Choose One</option> <option value="URL/playlist.wax"> Play All </option> <option value="URL/song1.mp3"> First </option> <option value="URL/song2.mp3"> Second </option> <option value="URL/song3.mp3"> Third </option> <option value="URL/song4.mp3"> Fourth </option> <option value="URL/song5.mp3"> Fifth </option> </Select> </TD> <TD> <OBJECT ID="Player" WIDTH=170 HEIGHT=45 CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"> <PARAM NAME="BufferingTime" VALUE="10"> <PARAM NAME="AudioStream" VALUE="-1"> <PARAM NAME="Volume" VALUE="-400"> </OBJECT> </TD> </TR> </Table> </Body> </HTML> Creating the playlist.wax file: <ASX version ="3.0"> <Entry> <Ref href="song1.mp3"/> </Entry> <Entry> <Ref href="song2.mp3"/> </Entry> <Entry> <Ref href="song3.mp3"/> </Entry> <Entry> <Ref href="song4.mp3"/> </Entry> <Entry> <Ref href="song5.mp3"/> </Entry> </ASX> Copy and paste the above code, adjust the number of Entries as necessary, then save the file as PlayList.wax Britt519 03-07-2005, 12:36 PM Thank you so much. i will try this out today. Britt519 03-07-2005, 03:31 PM Ok help. The script worked well... except for the actual playing of the music. lol. um... It says "error on page" when it loads. and the play/stop/mute...ect. buttons dont work. they are "greyed out" the scan bar works. but no sound plays when i select the sound. Warren86 03-07-2005, 03:38 PM Look, did you take just this: <HTML> <Head> <Script Language=JavaScript> function playAudio(URL){ if (URL != "") { document.Player.filename = URL; document.Player.play(); } } </Script> </Head> <Body> <center> <h4>Audio Jukebox</h4> </center> <Table Width=650 Height=50 Border="0" Align="center" Cellspacing="5" Cellpadding="10"> <TR> <TD align='right'> <Select name='audioList' onchange="playAudio(audioList.value)"> <option selected value="">Or, Choose One</option> <option value="URL/playlist.wax"> Play All </option> <option value="URL/song1.mp3"> First </option> <option value="URL/song2.mp3"> Second </option> <option value="URL/song3.mp3"> Third </option> <option value="URL/song4.mp3"> Fourth </option> <option value="URL/song5.mp3"> Fifth </option> </Select> </TD> <TD> <OBJECT ID="Player" WIDTH=170 HEIGHT=45 CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"> <PARAM NAME="BufferingTime" VALUE="10"> <PARAM NAME="AudioStream" VALUE="-1"> <PARAM NAME="Volume" VALUE="-400"> </OBJECT> </TD> </TR> </Table> </Body> </HTML> Copy and paste it into a blank NotePad document, then save it as an HTML file? And then did you take this: <ASX version ="3.0"> <Entry> <Ref href="song1.mp3"/> </Entry> <Entry> <Ref href="song2.mp3"/> </Entry> <Entry> <Ref href="song3.mp3"/> </Entry> <Entry> <Ref href="song4.mp3"/> </Entry> <Entry> <Ref href="song5.mp3"/> </Entry> </ASX> Copy and paste it into a another blank NotePad document, adjust it for the ACTUAL URL's of your songs, and then save it with the file name playlist.wax? And then did you place both of those files in the same folder on your web site? Britt519 03-07-2005, 03:46 PM ooo haha no. lol ok i think i got it workin now... i just gotta change than urls a lol. TY! Britt519 03-07-2005, 03:51 PM ok wait... the urls wont play. im so sorry im such an idiot when it comes to this sometimes. i did what u said. i put both of those scripts in 2 dif. notepad doc. saved them accordingly. and now when i go play the song it shows up that i can play it. but it doesnt play anything. it seems like the link isnt connecting....*confused* Warren86 03-07-2005, 04:00 PM Please post the contents of EACH of the documents I instructed you to create. The contents, not the files. This site won't allow you to post html or wax files. Otherwise, just click on my screen name if you see it anywhere in the main page, and send me an email. Attach those files to the email, and we'll straighten it out. Britt519 03-07-2005, 04:09 PM YAY! ok i got it. lol i hadnt changed the URL links on the first doc. *doiy* lol sory. thank you again! :) *smiles big* Warren86 03-07-2005, 04:13 PM Okay, great. Britt519 03-07-2005, 04:20 PM YAY! ok thank you Britt519 03-07-2005, 11:46 PM Hey thanks for the help. Could i do this with a Audio Stream... say Di.Fm one of their channels? Warren86 03-08-2005, 05:52 AM I believe so, yes. rmizrahi 04-04-2005, 02:24 PM :) hi there :) liked the Title ? i've seen you messages and you've got to help me. i just don't know what to do anymore. you're obviously more smart then me and i really need your help. i have a website and i use it to play WMV/ASF of streaming URLs. everything is kinda nice besides one thing: I DON'T KNOW HOW TO CREATE A PLAY LIST!!! after your messages i know how to created pre-maid playlist but the thing is that i want to know if i have MediaPlayer item that does not play anything and i have 3 urls: <a href="rtsp://1.wmv">1</a> <a href="rtsp://2.wmv">2</a> <a href="rtsp://3.wmv">3</a> if i click on the first URL, the media player starts to play (after a reload of the page but today i've seen how to do it without that :) ) the thing is. i want that if a user will click the second URL after he click the first one, after the first one will ended (or the user will click on nextsong(or whatever function name it is)) it will go the the second URL. PLEASE, i beg you, help me with that issue. i'll post this message in the forum too because i don't know if you read PVT messages. thank you very much, Roei - roei.mizrahi@gmail.com webdeveloper.com
Copyright WebMediaBrands Inc., All Rights Reserved. |