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 04-18-2005, 10:57 AM   PM User | #46
Descendants
New Coder

 
Join Date: Apr 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Descendants is an unknown quantity at this point
Thanks for the help .Sorry for request a spoonfeed query.I had been quite bad in javas and text aligning.it took me sometime to figure how to align the player and browse button so as the play button to the right side.
Descendants is offline  
Old 04-19-2005, 07:36 AM   PM User | #47
kippekai
New to the CF scene

 
Join Date: Apr 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
kippekai is an unknown quantity at this point
I was hoping someone could answer my question.

I'm embedding a media player in a simple web page, which I sucessfully completed, but I'm curious if there is a solution to a couple of problems.

First problem, when I acess the page with the embedded media player using IE, the browser will block active X or I get "this page contains both secure or non-secure items". All my photos and vids linked to this page are on the same server. I know its the media player causeing IE to block since I've removed the player and did not get that block.

Any idea how to stop IE from blocking.

Second problem may be related to the first. When I try to access the page with FireFox the mediaplayer doesnt even show up.

I'm using Frontpage 2003, and inserting the player with the component add-in button.
kippekai is offline  
Old 04-19-2005, 08:06 AM   PM User | #48
_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 alert should stop when you upload your page onto the internet. Please try this code, it uses the embed tag, but its the only way that I know is supported in FF and IE, I can use the object tag using a different mime type but this isn't supported in IE
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">
<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://urltosong1playlist.m3u">Playlist 1</option>
   <option value="http://urltosong2playlist.m3u">Playlist 2</option>
   <option value="http://urltosong3playlist.m3u">Playlist 3</option>
   <option value="http://urltosong4playlist.m3u">Playlist 4</option>
   <option value="http://urltosong5playlist.m3u">Playlist 5</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>
change the option values to whatever media type you wish.
_Aerospace_Eng_ is offline  
Old 04-19-2005, 08:24 AM   PM User | #49
kippekai
New to the CF scene

 
Join Date: Apr 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
kippekai is an unknown quantity at this point
Thanks so much for the reply. One problem though. That snippet of code is for an audio player. Do you have a code snippet for the entire media player? I'm looking to show a video clip of game play.

Thanks again for your reply.
kippekai is offline  
Old 04-19-2005, 08:31 AM   PM User | #50
_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
Adjust the height of the embed tag to adjust for the video size.
_Aerospace_Eng_ is offline  
Old 04-19-2005, 09:48 AM   PM User | #51
kippekai
New to the CF scene

 
Join Date: Apr 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
kippekai is an unknown quantity at this point
Your code works great in IE, and I now can see the player in Firefox. But, when Firefox attempts to open the file a Media Player dialog pops up with this error "The file you are attempting to play has an extension that does not match the file format. Playing the file may result in unexpected behavior". Then the file cant be played.

I'm trying to stream a .wmv file, and I'm wondering if a different file format is better.

Any suggestions?

Thanks.

P.S. Sorry for being such a noob.
kippekai is offline  
Old 04-19-2005, 11:36 AM   PM User | #52
_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
hmm was it orginally a wmv file? or did you just change the file extension? Can you post a link?
_Aerospace_Eng_ is offline  
Old 04-19-2005, 08:00 PM   PM User | #53
kippekai
New to the CF scene

 
Join Date: Apr 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
kippekai is an unknown quantity at this point
Below is the link to my web page. I dont think the file was changed. Though when I video edited the file, i was compressed a bit more, though the file type remained.

I cant stand these multiple browsers, un-uniformity is setting back the internet rather than going forward. I could see how web devs must get frustrated when these new browsers pop up.

Last edited by kippekai; 04-24-2005 at 01:03 AM..
kippekai is offline  
Old 04-19-2005, 08:27 PM   PM User | #54
_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 I want to say its the codec that was used to encode the video once you compressed it. Firefox I believe is unable to read the video because of the codecs that its able to understand and the one you used might not be one of them.
_Aerospace_Eng_ is offline  
Old 04-19-2005, 08:35 PM   PM User | #55
kippekai
New to the CF scene

 
Join Date: Apr 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
kippekai is an unknown quantity at this point
Thanks. I'll try a differnt file format in its native form and post back with the results.
kippekai is offline  
Old 04-19-2005, 09:26 PM   PM User | #56
_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 cool, but something I did discovered was that the video did play but only when a form was used to play it. When it played the video seemed to play at a very large resolution. Check it out for yourself here
_Aerospace_Eng_ is offline  
Old 04-22-2005, 06:01 AM   PM User | #57
kippekai
New to the CF scene

 
Join Date: Apr 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
kippekai is an unknown quantity at this point
OK, so I went round and round a bit trying to find out why my embedded streams dont work in Firefox. Apparently it appears to be server related issues.

My files are stored on a Comcast.net personal account server. When I brought this issue up in a comcast forum, I was told the server is not secure, and NOT to use HTTPS as a URL, but use HTTP instead.

So I experimented. Using HTTP works fine in Firefox, but crasshes or becomes unstable in Internet Explorer. Now I'm no code master, so I figured maybe theres a way to get IE to use HTTPS url and Firefox to use HTTP. So I tried the embed generator and its code produces a cross browser function that appears to work.

In the OBJECT url I used HTTPS...In the EMBED url I used HTTP. Example code shown below.This appears to work, though I have no clue why.

Only one problem left. The OBJECT tags seem to generate a "This page contains both secure and non secure items" warning when vieing with Internet Explorer, which is something I would like to get rid of.

Any suggestions.

EXAMPLE CODE:

<OBJECT id='mediaPlayer' width="370" height="350"
classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'
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='fileName' value="https://your path">
<param name='animationatStart' value='true'>
<param name='transparentatStart' value='false'>
<param name='autoStart' value="false">
<param name='showControls' value="true">
<param name='loop' value="false">
<PARAM NAME="windowlessVideo" VALUE="true">
<EMBED type='application/x-mplayer2'
pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'
id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1'
bgcolor='darkblue' showcontrols="true" showtracker='-1'
showdisplay="0" showstatusbar='-1' videoborder3d='-1' width="370" height="350"
src="http//:your path" autostart="0" designtimesp='5311' loop="false">
</EMBED>
</OBJECT>
kippekai is offline  
Old 04-22-2005, 06:08 AM   PM User | #58
_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
Are you testing your page offline or online? I've told you this already once you upload your page to your server you wont get that warning message. The message happens on systems with SP2 only locally though. If I had known that you were only displaying one video, then I would have told you about the generator a while back.

Last edited by _Aerospace_Eng_; 04-22-2005 at 06:10 AM..
_Aerospace_Eng_ is offline  
Old 04-22-2005, 06:12 AM   PM User | #59
kippekai
New to the CF scene

 
Join Date: Apr 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
kippekai is an unknown quantity at this point
I always upload prior testing, heres the link.



I'm wondering if the warning goes away after it been upoladed for an hour or so.

Last edited by kippekai; 04-24-2005 at 01:04 AM..
kippekai is offline  
Old 04-22-2005, 06:15 AM   PM User | #60
_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
Oh that warning, only way to prevent that is to not use https the user can set this site to a site that bypasses the alert but nothing you can do about except from what i've told you already which was to not use https.
_Aerospace_Eng_ 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 12:53 AM.


Advertisement
Log in to turn off these ads.