Lunarpages Web Hosting Forum

Author Topic: How To: Embed video using Media Player  (Read 11966 times)

Offline Loren

  • Galactic Royalty
  • *****
  • Posts: 313
How To: Embed video using Media Player
« on: August 14, 2004, 05:13:25 PM »
I have seen a number of tickets lately on the help desk asking this question or similar questions about streaming video.  I have sniplet that will be helpful to all that wish to try something like this.

Code: [Select]

<object id='mediaPlayer' width="385" height="266" 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="url to your windows media file">
<param name='animationatStart' value='true'>
<param name='transparentatStart' value='true'>
<param name='autoStart' value="true">
<param name='showControls' value="true">
<param name="ShowStatusBar" value="true">
<param name='loop' value="0">
<embed type='application/x-mplayer2' pluginspage='http://microsoft.com/windows/mediaplayer/en/download/' src="url to your windows media file" width="320" height="266" autostart="1" displaysize='4' autosize='0' bgcolor='black' showcontrols="0" showtracker='0' ShowStatusBar='1' showdisplay='0' videoborder3d='0' designtimesp='5311' loop="0"></embed>
</object>


Most of the options can be changed.  I hope this helps many of you who either have issues with people being forced to download files, or who really just want to stream the media
Visit my site: http://www.fragacow.com
Visit my Forums: http://www.fragacow.com/forum/

Don't forget the tutorials: http://www.lunarpages.com/tutorials

Offline RyanBrantley

  • Galactic Royalty
  • *****
  • Posts: 222
    • http://resume-3.com
How To: Embed video using Media Player
« Reply #1 on: August 15, 2004, 07:40:45 PM »
Is streaming less bandwidth intensive than downloading?

Offline Loren

  • Galactic Royalty
  • *****
  • Posts: 313
How To: Embed video using Media Player
« Reply #2 on: August 16, 2004, 08:27:09 AM »
RyanBrantley,

Depends on what type of connection and how many people.  It will still use the same ammount of bandwidth whether you stream it or download it.  The only diffrence is this.

High Bandwidth users like DSL and Cable can watch it and don't have to download it.

While on the other hand for 56k and other dial up users downloading will be best (better all around).

It just a nice way to have true streaming media (with any windows media file)  Works only for windows clients I believe though.
Visit my site: http://www.fragacow.com
Visit my Forums: http://www.fragacow.com/forum/

Don't forget the tutorials: http://www.lunarpages.com/tutorials

Offline psykik

  • Jabba the Hutt
  • *****
  • Posts: 708
    • http://www.psyked-out.com
How To: Embed video using Media Player
« Reply #3 on: August 20, 2004, 10:09:41 AM »
my streams always work perfectly with IE
but with firefox nothing is displayed

not even a little media player built into the page...

I've looked around for a solution but can't find any...

I guess I need a plugin or something...

any thoughts ?


thanks

Offline donavin410

  • Galactic Royalty
  • *****
  • Posts: 324
    • http://d-410.com
How To: Embed video using Media Player
« Reply #4 on: August 21, 2004, 08:26:40 AM »
I have found the best way to set up embedded media on your site is to go to this page, http://cit.ucsf.edu/embedmedia/step1.php simply choose the media type, provide your domain name and the path to your file and click submit, it will come back with the html code and a test button to see if that media will work before you take the time to add it to your page... Itís fast easy and works great.... Here is a page I used it on... :thumb:
http://d-410.com/movies/tatoo.htm

I hope this helps..
d-410.com

Offline psykik

  • Jabba the Hutt
  • *****
  • Posts: 708
    • http://www.psyked-out.com
How To: Embed video using Media Player
« Reply #5 on: August 21, 2004, 09:56:00 AM »
my code is nearly the same (except for that "external player link")
and it doesn't work with Firefox

I don't know why...


if I can't get it fixed, I guess I'll implement  that link to an external player in my templates so users can watch the files they want to see

thanks anyway for the link

Offline Loren

  • Galactic Royalty
  • *****
  • Posts: 313
How To: Embed video using Media Player
« Reply #6 on: August 27, 2004, 10:21:31 AM »
There are many ways to do it, just in general the small code I gave is a start to anyone who is interested.
Visit my site: http://www.fragacow.com
Visit my Forums: http://www.fragacow.com/forum/

Don't forget the tutorials: http://www.lunarpages.com/tutorials

Offline Rick_E

  • Master Jedi
  • *****
  • Posts: 1127
How To: Embed video using Media Player
« Reply #7 on: August 28, 2004, 07:36:28 AM »
Just to note that using this method, the media file would not play in those browsers that do not support ActiveX controls (most of the non-Windows world.)

Alternatively, try embedding the media file in such as way that that it plays using whatever player the browser has available.

<embed src="yourfile.wmv" width="360" height="285" align="center" style="border: 2px solid #808080; "><noembed>A Media Player is required.</noembed>

The dimensions shown are for a 320x240 video, change as desired.
All the best, Rick E

Search the Microsoft KB for error messages:
http://support.microsoft.com/search/default.aspx?catalog=LCID%3D1033&spid=919&adv=1

Microsoft groups have additional FrontPage assistance:
http://www.microsoft.com/communities

Offline donavin410

  • Galactic Royalty
  • *****
  • Posts: 324
    • http://d-410.com
How To: Embed video using Media Player
« Reply #8 on: August 28, 2004, 12:23:52 PM »
yea.. Im just lazy.. it's faster for me to just provide the file path and let that site make the code.. it takes them 2 secs, then copy and paste baby!!!! :yey:
d-410.com

Offline fo0hzy

  • Intergalactic Superstar
  • *****
  • Posts: 168
How To: Embed video using Media Player
« Reply #9 on: August 28, 2004, 12:34:56 PM »
lol I'm lazy too. Besides, making them "right-click, save target as..." means that if they want to watch it multiple times, they aren't using more bandwidth than is necessary.
www.awfulpics.com could not be found. Please check the name and try again.

Offline Loren

  • Galactic Royalty
  • *****
  • Posts: 313
How To: Embed video using Media Player
« Reply #10 on: August 28, 2004, 12:47:31 PM »
Yes but only 85%+ of the computers are running windows.  :cry: so I just posted that type you can always modify it to fit the needs of what you are trying to do.
Visit my site: http://www.fragacow.com
Visit my Forums: http://www.fragacow.com/forum/

Don't forget the tutorials: http://www.lunarpages.com/tutorials

Offline reunit2

  • Newbie
  • *
  • Posts: 3
    • http://reuniting.info
video
« Reply #11 on: October 17, 2004, 04:21:53 PM »
Quote from: RyanBrantley
Is streaming less bandwidth intensive than downloading?


Thanks for your helpful reply to this comment, but I'm too ignorant to make use of it.  :cry:

I'm an author. I'm in the process of taping video segments for community access TV. They will be in avi or quicktime when they're done (I'm not doing them...I'm just the "talent"). Is there a way to add them to my website, so visitors could watch them? They don't need to be downloadable by visitors.

I don't know where to begin, but I like learning new things. I have Dreamweaver.

Thanks,
Marnia

Offline Rick_E

  • Master Jedi
  • *****
  • Posts: 1127
How To: Embed video using Media Player
« Reply #12 on: October 25, 2004, 07:07:52 PM »
Yes, just upload the QuickTime files to the web host and create hyperlinks to them. The AVI files are high quality but the files are too large for effective use on the web.
All the best, Rick E

Search the Microsoft KB for error messages:
http://support.microsoft.com/search/default.aspx?catalog=LCID%3D1033&spid=919&adv=1

Microsoft groups have additional FrontPage assistance:
http://www.microsoft.com/communities

Offline backinblack

  • Pong! (the videogame) Master
  • *****
  • Posts: 27
How To: Embed video using Media Player
« Reply #13 on: March 13, 2005, 02:17:45 PM »
That works but the question I have is where you have <param name='transparentatStart' value='true'> or you change your value to false you get a black screen...can you get a image in there some how before the video plays? I have autoplay set to false so I want a image in there.

Offline absolutezero3424

  • Spaceship Navigator
  • *****
  • Posts: 97
    • The Apostolics of Taylor
Re: How To: Embed video using Media Player
« Reply #14 on: March 09, 2006, 12:14:49 PM »
That works but the question I have is where you have <param name='transparentatStart' value='true'> or you change your value to false you get a black screen...can you get a image in there some how before the video plays? I have autoplay set to false so I want a image in there.

Anyone have an answer for this interesting question?