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 12-27-2006, 05:29 AM   PM User | #586
_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
You do know the flash you are trying to link to will only work in IE? Also something tells me that you shouldn't be linking to their flash file. Do you have permission to use it?
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline  
Old 12-27-2006, 09:21 AM   PM User | #587
Danno61
New Coder

 
Join Date: Dec 2006
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
Danno61 is an unknown quantity at this point
Quote:
Originally Posted by _Aerospace_Eng_ View Post
You do know the flash you are trying to link to will only work in IE? Also something tells me that you shouldn't be linking to their flash file. Do you have permission to use it?
I am aware of that link,,, No I doo not have permission , and DO NOT planning on using this.. I was USING as an example, that was the first link I put in, I took out all the other links ithat section and others because I wanted to keep it as clean and to the point as possible. All my other links were asx files of my own instructional videos, that I made and that my provider gave me in a link in .asx form. I was experimenting. I want to do it right.

I want to link to a lot of the cartoons on U Tube and I film, I have a family site, and want to put something on for the kids. (these vids all tend to be flash).

I was going to change and show a link for an I Film link and did not do it. I certainly do not want to do anything illegal.

I spent the last 5 days with all types of links, This is my first attempt at embedding and video in this way.


Don't most normal people use IE anyways? I know this will only work in IE.

If anyone uses a different browser, don't the majority have still have IE?

I am asking because I really do not know.I am assuming.

Do you have any suggestions, besides the obviuos of switching to Flash? This project right here has been enough for now. I have thought of embedding a Flash screen on same page next to WMV in the future, and dealing only with IE for now. What do you thinK?

If you could help me on this, I would appreciate it, Thanks,

Danno61

Last edited by Danno61; 12-27-2006 at 09:31 AM..
Danno61 is offline  
Old 12-27-2006, 06:49 PM   PM User | #588
_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 if you intend on using youtube videos then start out testing with them. They even give you the code you need for you to put the videos on your own site. Cartoon network has a whole lot going on with their flash videos.
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline  
Old 12-27-2006, 07:54 PM   PM User | #589
Danno61
New Coder

 
Join Date: Dec 2006
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
Danno61 is an unknown quantity at this point
Re: test

I just went to you tube, and every toon was in flash(So far). That is why I initially posted above. I need to know how to code my previous post?. Flash will not work in my current HTML code. I have already tried this previously. The way I understand ASX is that it should work. I do know that all files start with either http: or mms: in the asx files, is their a special code for Flash?

Is this even feasible? Can you combine the flash code, in my existing code html, so they both work?

I want to keep all the files in one of those directories, Is this if possible.

Note: U tube gives you a link code, or an embed code. Neither will work in my existing HTML code.

Thank you Aero

Additional Comment 3:00: I could also embed flash and put the screens side by side. but I believe this would be another large project, and as stated before, with my knowledge in this area.... would take me a looong time. Maybe I should just hold off on the toons.

Last edited by Danno61; 12-27-2006 at 08:06 PM.. Reason: spelling
Danno61 is offline  
Old 12-28-2006, 07:30 AM   PM User | #590
_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
You obviously didn't inspect the code youtube gave you very carefully. They give you the url to the flash movie directly. Learn to study code before you say something can't be done.
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 PlayIt(what){
document.getElementById('music').innerHTML='<object width="500" height="500" '
+'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="'+what+'">'
+'<param name="uiMode" value="full">'
+'<param name="autoStart" value="true">'
+'<param name="playCount" value="9999">'
+'<embed type="application/x-mplayer2" '
+'pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" '
+'showcontrols="true" uimode="full" width="500" height="500" '
+'src="'+what+'" autostart="1" playCount="9999">'
+'</object>';
}
</script>
</head>

<body>
<form><select onchange="PlayIt(this.value)">
<option value="none">::World News (Live)::</option>
<option value="http://www.mysite.com/yourasxfile.asx">test</option>This one works,

<option value="http://www.mysite.com/cartoonnw.asx">network</option>This one does not, it is flash.

<option value="http://urltosong4.wmv">More to Come</option>
<option value="http://urltosong4.wmv">More to Come</option>
<option value="http://urltosong4.wmv">More to Come</option>
<option value="http://urltosong4.wmv">More to Come</option>
<option value="http://urltosong4.wmv">More to Come</option>
<option value="http://urltosong4.wmv">More to Come</option>
<option value="http://urltosong4.wmv">More to Come</option>


</select>

<select name="player2" onchange="PlayIt(this.value)">
<option value="none">::Choose a Song from CD2::</option>
<option value="http://urltosong2.wmv">empty file</option>
<option value="http://urltosong3.wmv">empty file</option>
<option value="http://urltosong4.wmv">empty file</option>
</select>


<select name="player3" onchange="PlayIt(this.value)">
<option value="none">::Choose a Song from CD3::</option>
<option value="http://urltosong2.wmv">empty file</option>
<option value="http://urltosong3.wmv">empty file</option>
<option value="http://urltosong4.wmv">empty file</option>
<option value="http://urltosong5.wmv">empty file</option>
</select>

<select name="player4" onchange="PlayIt(this.value)">
<option value="none">::Choose Your Cartoon::</option>
<option value="http://urltosong4.wmv">empty file</option>
<option value="http://urltosong5.wmv">empty file</option>
</select>
</form>
<div id="music">
<object width="540" height="500"
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="null.asx">
<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="1" uimode="full" width="500" height="500"
src="null.asx" autostart="0" playCount="9999"></embed>
</object></div>
</body>
</html>
yourasxfile.asx
Code:
<ASX VERSION="3.0">
<TITLE>Argentina TN24Horas..Welcome to MTT. </TITLE>
<ENTRY>
<REF HREF="http://www.youtube.com/v/MRpT-btRjm0" />
<REF HREF="mms://www.tn24horas.com/popup_metafile.asp?Id_nota=32887&Id_calidad=1" />
<REF HREF="http://www.tn24horas.com/popup_metafile.asp?Id_nota=32887&Id_calidad=1" />
</ENTRY>
</ASX>
Code:
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/MRpT-btRjm0"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/MRpT-btRjm0" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline  
Old 12-28-2006, 12:53 PM   PM User | #591
Danno61
New Coder

 
Join Date: Dec 2006
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
Danno61 is an unknown quantity at this point
Flash in embedded media player

Thank you very much! I really appreciate it. NOW I finally get it!


<param name="movie" value= "http://www.youtube.com/v/MRpT-btRjm0"

In all the searching I did I never found an explanation on the above. The reason I did not see this, is because I did not know what I was looking for.

I went and tried the URL above in the original code I posted, and it workks great!

When I saw all this code in a link I thought it was all suppose to be put into my existing code/html.

I went and typed in "param name=movie" and have found all kinds of info. I was searching on

Keywords like "Embedded media and flash, .asx and flash, .asx and media player. NOTHING ever came up about

param name=moviemeans flash/.swf

I really appreciate your assistance and help . I know you were getting frustrated, but I still want to say thanks. I am sure it gets frustrating dealing with new ones like myself.

Danno61
Danno61 is offline  
Old 12-28-2006, 10:20 PM   PM User | #592
Danno61
New Coder

 
Join Date: Dec 2006
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
Danno61 is an unknown quantity at this point
Banning click on URL after during/viewing on .asx

Is there anyway to ban someone from clicking/entering on/a url while watching a vid from an .asx. file.

Why? would I like to this?

My site is family oriented and if I have a child watching a toon (They have some great toons) that is coming from UTube, and that kid clicks on the screen , it will take them into the U Tube site, where they can be exposed to anything.

I know that is what U tube does to get people to their site. But, there ad is still up on the vid being viewed, so.......


Any Suggestions?

I read something on invokeURL and saw another example like BannURL right in the asx file, couldn't get anything to work.

Thanks.

Danno61

I have played around, and nothing has worked.
Danno61 is offline  
Old 12-29-2006, 07:33 PM   PM User | #593
Metroid48
New Coder

 
Join Date: Dec 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Metroid48 is an unknown quantity at this point
Media Cut Off?

Hi, I noticed something about some videos. People who use the most recent Windows Media Player sometimes have the video cut off when there's no width and height defined. Even with autosize enabled. I'm not sure, but even my older version gets the volume meter cut off. Is there a way to fix this without defining the size manually?

This is an example of a cut-off video (for some players):

http://thefreewarecentral.com/game_view.php?id=8&vid=1

Any way to fix it for those who experience the cut-off?

-Metroid48
Metroid48 is offline  
Old 12-30-2006, 06:37 PM   PM User | #594
tech007uk
New to the CF scene

 
Join Date: Dec 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
tech007uk is an unknown quantity at this point
Question embeded player

hi i need a bit of help i have an enbedded player in my site but i need sonthing like this ie i need a player the auto turns on to a url that bit is easy

BUT the only control i want available is the voloum bar i do not want start or stop or mute just vol

can any one help thank you
tech007uk is offline  
Old 01-02-2007, 09:32 PM   PM User | #595
mcmushx15
New to the CF scene

 
Join Date: Nov 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
mcmushx15 is an unknown quantity at this point
excuse my noobness. Great thread...found similar websites that talk about this. My questions is, can i use a graphic already on the webpage instead of doing a INPUT = BUTTON command? I designed graphics but can't link them together.

Well, I did but got an error and it closed the page saying page can't be displayed "locally"
mcmushx15 is offline  
Old 01-03-2007, 07:46 AM   PM User | #596
_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
Yes and no. For Internet Explorer it can be done but only in Internet Explorer. Other users will get errors and what not. At most a simple play and stop button can be made but thats about it. I suggest you use flash. www.gotoandlearn.com has some good resources on flash video. The riva flv encoder can convert some videos to .flv format. Flash 8 comes with an flv encoder. Good luck.
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline  
Old 01-03-2007, 02:58 PM   PM User | #597
mcmushx15
New to the CF scene

 
Join Date: Nov 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
mcmushx15 is an unknown quantity at this point
Quote:
Originally Posted by _Aerospace_Eng_ View Post
Yes and no. For Internet Explorer it can be done but only in Internet Explorer. Other users will get errors and what not. At most a simple play and stop button can be made but thats about it. I suggest you use flash. www.gotoandlearn.com has some good resources on flash video. The riva flv encoder can convert some videos to .flv format. Flash 8 comes with an flv encoder. Good luck.
Thanks for quick reply. We attempted flash but found it econmically better to run WMS server instead of flash servers. GOTOANDLEARN is a great site...

So, my example model is CNN.com video site. They are using WMS servers. Everything they created is custom and would "assume" they work under other browsers (firefox, netscape, etc..). Is there good examples how to code java similar to that?
mcmushx15 is offline  
Old 01-03-2007, 07:51 PM   PM User | #598
_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
In Firefox on the CNN site I get normal Windows Media Player controls. Nothing custom about them.
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline  
Old 01-04-2007, 04:29 AM   PM User | #599
admin.gopher
New to the CF scene

 
Join Date: Nov 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
admin.gopher is an unknown quantity at this point
Hi
I have a problem here
I have a website in asp and wmp runs fine in asp.
Now due to cost effective i am moving on to Linux and PHP
i have done that part and wmp runs fine in php web page also.

i have used AJAX technology to load WMP.
but now the problem is there .

1) I want to use the same AJAX technology for database query. but not able to do that so that the WMP should keep on playing the video and we can navigate through rest of video files.
Can some body help me in implementing AJAX and PHP.

2) If i am playing that file in firefox i can only see ready option but could not play the file.
i have tested the code and using OBJECT TAG.
But i am not able to play the file in Firefox.


Please help me.
thanks
admin.gopher is offline  
Old 01-04-2007, 02:04 PM   PM User | #600
mcmushx15
New to the CF scene

 
Join Date: Nov 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
mcmushx15 is an unknown quantity at this point
Quote:
Originally Posted by _Aerospace_Eng_ View Post
In Firefox on the CNN site I get normal Windows Media Player controls. Nothing custom about them.
thanks again. I manged to do an input type = image and used a graphic. Like you said, worked great in IE but no other browers like the codie. Firefox didn't even load the movie set to autoplay.
mcmushx15 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 01:12 PM.


Advertisement
Log in to turn off these ads.