Go Back   CodingForums.com > :: Client side development > Graphics and Multimedia discussions

Before you post, read our: Rules & Posting Guidelines

Closed Thread
 
Thread Tools Rating: Thread Rating: 31 votes, 3.42 average.
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-12-2005, 10:30 PM   PM User | #196
Wolfmans55
New Coder

 
Join Date: Mar 2005
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Wolfmans55 is an unknown quantity at this point
How could I get an embedded windows media player that plays the file when you get to the page with the player. Meaning when I go to the homepage a video is playing well maybe loading but will eventually play. Could I do that? Thanks
Wolfmans55 is offline  
Old 09-12-2005, 11:03 PM   PM User | #197
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
http://cit.ucsf.edu/embedmedia/step1.php
Good Luck.
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline  
Old 09-14-2005, 03:58 PM   PM User | #198
brentk711
New Coder

 
Join Date: Sep 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
brentk711 is an unknown quantity at this point
Was wondering if there's a way to show the picture artwork in a WMA file in an embedded media player? I have the capabilty to add or change the picture. Anyone?

current code:

Code:
<span id="music">
<object id="player" name="player" width="320" height="304" 
      classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" 
      codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
      standby="Loading Microsoft Windows Media player components..." type="application/x-oleobject">
      <param name="url" value="">
      <param name="uiMode" value="full">
      <param name="autoStart" value="true">
      <param name="loop" value="true">
      <embed type="application/x-mplayer2" 
      pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" 
      showcontrols="true" uimode="full" width="320" height="304" 
      src="" autostart="true" loop="true">
</object><br>
</span>
brentk711 is offline  
Old 09-14-2005, 04:59 PM   PM User | #199
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
Okay look you are trying to do wayyyyy too much with WMP. It can only do so much. Flash or some other form of media would be better. What you want can be done but using a select menu it would be a bit hard to do. If you were using links you could do it quite easily.
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline  
Old 09-14-2005, 05:11 PM   PM User | #200
brentk711
New Coder

 
Join Date: Sep 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
brentk711 is an unknown quantity at this point
Thanks. I knew that was a bit too far, but hey doesnt hurt to ask. I have everything working very good so far and just wanted to liven things up when playing an audio file. Actually I am now using an applet menu to select wms & wmv files. It has some more abilities and options as far as actions on links. Now I'm using a script link to :
<!--
function StartMeUpX(){
player.url = "mysong.wma";
}
You had mentioned in a previous post to someone about displaying visualizations by <param name="uiMode" value="full">, but that didnt do anything in mine.
Just curious how would I do the artwork with a link as you mentioned? If it's too much work to answer thats cool.

Thanks for awesome coding!

BT
brentk711 is offline  
Old 09-14-2005, 05:27 PM   PM User | #201
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
The visualization will only work in Internet Explorer, and it will only work if you aren't playing a video and it should work on wmas not sure.
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
body {
text-align:center;
}
</style>
<script type="text/javascript">
<!--
function StartMeUp(){
player.url = "tc4014-v.wmv";
}
function screenfull(){
/* Check to be sure the player is playing. */
if (player.playState == 3) 
	player.fullScreen = 'true';
}
function ShutMeDown(){
player.controls.stop();
}
function PlayIt(what,img){
document.player.url=what;
document.getElementById('pix').innerHTML='<img src="'+img+'" width="100" height="100" alt="">';
}
//-->
</script>
</head>

<body>
<a href="s292.wma" onclick="PlayIt(this.href,'image1.jpg');return false">Jon Courson - Song</a><br>
<a href="somevideo.wmv" onclick="PlayIt(this.href,'image2.jpg');return false">Jon Courson - Video</a><br>
<span id="music">
<object id="player" name="player" width="240" height="320" 
      classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" 
      codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
      standby="Loading Microsoft Windows Media player components..." type="application/x-oleobject">
      <param name="url" value="">
      <param name="uiMode" value="full">
      <param name="autoStart" value="true">
      <param name="loop" value="true">
      <embed type="application/x-mplayer2" 
      pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" 
      showcontrols="true" uimode="full" width="240" height="320" 
      src="" autostart="true" loop="true">
</object><br>
</span>
<span id="pix"></span>
<input type="button" name="BtnPlay" value="PLAY" onclick="StartMeUp()">
<input type="button" name="BtnStop" value="STOP" onclick="ShutMeDown()">
<input type="button" name="Btnfull" value="FULL" onclick="screenfull()">
</body>
</html>
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline  
Old 09-14-2005, 06:26 PM   PM User | #202
brentk711
New Coder

 
Join Date: Sep 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
brentk711 is an unknown quantity at this point
Iteresting. Didnt quite work though. I created 2 test images (image1.jpg & image2.jpg). When you click the link for the wma it displays image1.jpg below the media player just left of bottom buttons (PLAY, STOP, FULL). Same for video file link (displays image2.jpg). and the wma & wmv dont play.
Seems to be trying because the player PLAY button lights up and in the black part of the WMP area it displays "Ready". Clicking the PLAY button on the WMP doesnt do anything at that point either.
brentk711 is offline  
Old 09-15-2005, 03:15 AM   PM User | #203
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
Did you change the href? I didn't use one of your hrefs or your songs. I used a song I had and it works. Make sure the location of your files is correct. Give us a link and we'll look at it. If you say I can't, I haven't bought hosting well then get a free web host temporarily.
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline  
Old 09-15-2005, 05:07 AM   PM User | #204
brentk711
New Coder

 
Join Date: Sep 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
brentk711 is an unknown quantity at this point
This is exactly what I have:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
body {
text-align:center;
}
</style>
<script type="text/javascript">
<!--
function StartMeUp(){
player.url = "tc4014-v.wmv";
}
function screenfull(){
/* Check to be sure the player is playing. */
if (player.playState == 3) 
	player.fullScreen = 'true';
}
function ShutMeDown(){
player.controls.stop();
}
function PlayIt(what,img){
document.player.url=what;
document.getElementById('pix').innerHTML='<img src="'+img+'" width="100" height="100" alt="">';
}
//-->
</script>
</head>

<body>
<a href="s292.wma" onclick="PlayIt(this.href,'image1.jpg');return false">Jon Courson - Song</a><br>
<a href="tc4014-v.wmv" onclick="PlayIt(this.href,'image2.jpg');return false">Jon Courson - Video</a><br>
<span id="music">
<object id="player" name="player" width="240" height="320" 
      classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" 
      codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
      standby="Loading Microsoft Windows Media player components..." type="application/x-oleobject">
      <param name="url" value="">
      <param name="uiMode" value="full">
      <param name="autoStart" value="true">
      <param name="loop" value="true">
      <embed type="application/x-mplayer2" 
      pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" 
      showcontrols="true" uimode="full" width="240" height="320" 
      src="" autostart="true" loop="true">
</object><br>
</span>
<span id="pix"></span>
<input type="button" name="BtnPlay" value="PLAY" onclick="StartMeUp()">
<input type="button" name="BtnStop" value="STOP" onclick="ShutMeDown()">
<input type="button" name="Btnfull" value="FULL" onclick="screenfull()">
</body>
</html>
All files are in one folder (image1.jpg,image2.jpg,s292.wma,tc4014-v.wmv)

do the jpg files display within th emedia player?

What am I missing here? No I dont have web hosting anymore. It doesnt need to be uploaded to the web to work does it?
Free webhosting? Were do you get that? I can search google but thought you would have a recommendation.

thanks! BT
brentk711 is offline  
Old 09-15-2005, 05:16 AM   PM User | #205
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
Its not meant to "attach" to the player if that is what you are wanting. It shouldn't matter what image you use, they should all work. Maybe try this
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
body {
text-align:center;
}
</style>
<script type="text/javascript">
<!--
function StartMeUp(){
player.url = "tc4014-v.wmv";
}
function screenfull(){
/* Check to be sure the player is playing. */
if (player.playState == 3) 
	player.fullScreen = 'true';
}
function ShutMeDown(){
player.controls.stop();
}
function PlayIt(what,img){
document.player.url=what;
document.getElementById('pix').innerHTML='<img src="'+img+'" width="100" height="100" alt="">';
}
//-->
</script>
</head>

<body>
<a href="s292.wma" onclick="PlayIt(this.href,'image1.jpg');return false">Jon Courson - Song</a><br>
<a href="tc4014-v.wmv" onclick="PlayIt(this.href,'image2.jpg');return false">Jon Courson - Video</a><br>
<span id="music">
<object id="player" name="player" width="240" height="320" 
      classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" 
      codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
      standby="Loading Microsoft Windows Media player components..." type="application/x-oleobject">
      <param name="url" value="">
      <param name="uiMode" value="full">
      <param name="autoStart" value="true">
      <param name="loop" value="true">
      <embed type="application/x-mplayer2" 
      pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" 
      showcontrols="true" uimode="full" width="240" height="320" 
      src="" autostart="true" loop="true">
</object>
</span>
<span id="pix"></span><br>
<input type="button" name="BtnPlay" value="PLAY" onclick="StartMeUp()">
<input type="button" name="BtnStop" value="STOP" onclick="ShutMeDown()">
<input type="button" name="Btnfull" value="FULL" onclick="screenfull()">
</body>
</html>
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline  
Old 09-15-2005, 02:51 PM   PM User | #206
brentk711
New Coder

 
Join Date: Sep 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
brentk711 is an unknown quantity at this point
HI
Yes, that was my original question... to put the image from the picture tag of the WMA file into the black area of the WMP. I can use the script you provided to do the same similar thing. thanls, thats cool. Only problem is the links dont play the files. URL is correct and files are in the same directory.
brentk711 is offline  
Old 09-15-2005, 06:02 PM   PM User | #207
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
Seems it only plays mp3s when trying to pass a parameter to the function. Looks like you are out of luck here. Personally I think you are trying to do way too much with WMP. Just start learning flash, it can do the things you want. Good Luck.
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline  
Old 09-15-2005, 06:30 PM   PM User | #208
brentk711
New Coder

 
Join Date: Sep 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
brentk711 is an unknown quantity at this point
Thanks. Yes, I need to start learning flash. Do you have any recommendations on tools to start with? Any programs or websites that would help getting started? You have helped immensly. I can now finish my webpages with what I have. I'm busy writing a GWBASIC utility to crunch some text files into html code for links to my media files. It also will create the menu text files for my applet menu. It's archaic but it saves me a lot of time. PLus its the only programming language I ever learned.
Thanks again for your super nice help!
brentk711 is offline  
Old 09-15-2005, 06:38 PM   PM User | #209
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
Well flash 8 is a great tool but its not free. www.flashkit.com has many good tutorials and some already created fla files that you might be able to use. I like this site, it is awesome for flash video tutorials http://www.gotoandlearn.com/index2.html
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline  
Old 09-16-2005, 01:02 AM   PM User | #210
SS2
New to the CF scene

 
Join Date: Sep 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
SS2 is an unknown quantity at this point
Question

Hello,
I tried the code you gave me but it still wouldn't work. Maybe I'm Puting it in the wrong place, I don't know. So I thought I'd try this one
Here is my page's view source......WWW.tekcities.com/ss_karaoke/index.html.........................
<HTML><HEAD><TITLE>Listen To A Demo</TITLE>
<META content="MSHTML 6.00.2900.2722" name=GENERATOR></HEAD>
<BODY text=#000000 link=#ffd700 bgColor=#000000 background=17musBar.gif backgroundAttachment="fixed" marginLeft="0" marginTop="0">
<P></P>
<P></P>
<H1 align=center><FONT color=#ffa500 size=7>Welcome To</FONT></H1>
<P align=center><FONT face=Arial color=#ffa500 size=7>Karaoke On The Road</FONT></P>
<P align=center><FONT face="Lucida Console" color=#ffa500 size=2><FONT size=5>KJ</FONT>: <FONT size=4>Robbie Southgate</FONT></FONT></P>
<P align=center><FONT face=Arial color=#ffa500 size=7></FONT> </P>
<P align=center><IMG src="http://tekcities.com/ss_karaoke/1005177899.jpg"></P>
<P align=left> </P>
<P align=left> </P>
<P align=left> <A href="http://www.tekcities.com/ss_karaoke/index.html"><IMG src="http://tekcities.com/ss_karaoke/button823090.jpg"></A></P>
<P align=left>
</img></img></img></img> <IMG src="http://www.tekcities.com/ss_karaoke/button270819.jpg"></P>
<P align=left> <IMG src="http://tekcities.com/ss_karaoke/button642326.jpg"></P>
<P align=left> <IMG src="http://tekcities.com/ss_karaoke/button447073.jpg"></P>
<P align=left> <IMG src="http://tekcities.com/ss_karaoke/button213280.jpg"></P>
<P align=left> </P>
<P align=left> </P>
<P align=left> </P>
<P align=left> </P>
<P align=left> </P>
<P align=left> </P>
<P align=left> </P>
<P align=left> </P>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript"><!--
function song(){
document.getElementById('music1').innerHTML="<embed type='application/x-mplayer2' id='music2' pluginspage='http://www.microsoft.com/Windows/MediaPlayer/' src='"+document.getElementById('cancion').value+"' name='MediaPlayer1' width='300' height='75' controltype='2' showcontrols='1' showstatusbar='1' AutoStart='true'></embed>";
}
//-->
</script>
</head>
<div id="jukebox">JUKEBOX<br><br>
<select id="cancion" onchange="song()" size="1">
<option value="none">::::::::::::: Choose Your Song Here :::::::::::::</option>
<option value="http://urltosong1.mp3">Song 1</option>
<option value="http://urltosong2.mp3">Song 2</option>
<option value="http://urltosong3.mp3">Song 3</option>
<option value="http://urltosong4.mp3">Song 4</option>
<option value="http://urltosong5.mp3">Song 5</option>
<option value="http://urltosong6.mp3">Song 6</option>
<option value="http://urltosong7.mp3">Song 7</option>
<option value="http://urltosong8.mp3">Song 8</option>
<option value="http://urltosong9.mp3">Song 9</option>
<option value="http://urltosong10.mp3">Song 10</option>
</select><br>
<span id="music1"><embed type="application/x-mplayer2" id="music1"
pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"
src=""
name="MediaPlayer1"
width="300"
height="70"
controltype="2"
showcontrols="1"
showstatusbar="1"
AutoStart="0">
</embed></span>
</div>
</body>
</html>..................................
Can you please show me how this code intergrats with the buttons I already have on my page so they can be clicked and the song will play?
I would so much appericate it, I have been trying to get this done for about 2 months now
SS2 is offline  
Closed Thread

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:22 AM.


Advertisement
Log in to turn off these ads.