467,081 Members | 1,241 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,081 developers. It's quick & easy.

How to play dvd from web site

Hello,
How do I play a DVD from a website? I am starting with zero knowledge
of media but have HTML Experience.

I found out that Windows Media Player won't play the DVD. Do I suggest
everyone download Real Player for free? or can I put a realplayer plug
in on the server? Is it possible to check if they have DVD playing
software and use that. The below mentioned is all I have and of course
it is not working, that is why I am here.

This is in the Head:

function openPlayer()
{
WinMPlayer.URL= "Myplaylist.wpl"
}
</script>

This is in the body:
<OBJECT ID="WinMPlayer"
CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
<PARAM name="autoStart" value="True">
</OBJECT>
<input type=button value="Play" onclick="openPlayer()">

Thanks in advance.
idontknow

Jan 26 '06 #1
  • viewed: 13394
Share:
5 Replies
Zif
mc************@gmail.com wrote:
Hello,
How do I play a DVD from a website? I am starting with zero knowledge
of media but have HTML Experience.
A browser will only do something with content that it understands. If
it doesn't know what to do with content, it will either give an error,
download it and just leave it on your HDD or or do nothing.

There are two ways to play video in a browser:

1. provide a link to a file e.g. an mpg, mov, wmf or similar. If
the browser knows what to do with the file (either display it
itself or use a plugin) it will do it - otherwise, it will
probably just download the file to your HDD and let you deal
with it.

2. provide a link to a data stream. If the browser doesn't know
what to do with it, it will show an error and some default
"I can't show the content" image.

In both cases, the browser must understand the data format to know what
to do with it. You need an application that takes the data stream from
your DVD player and converts it to something that can be delivered to a
browser.

Which means that in order for people to watch your video content, you
must convert it to either a stand alone file that can be downloaded as
in 1. above, or a data stream (which will require a streaming server) as
in 2.

I found out that Windows Media Player won't play the DVD. Do I suggest
I don't think there are any DVD players that will stream DVD content
over the web. I'm pretty sure sharing commercial DVDs like that is not
permissible because it's in breach of copyright - and probably the DCMA
and a zillion anti-terrorism laws. :-)

everyone download Real Player for free?
That won't make any difference unless you intend serving .rm files (or
whatever Real use for file extensions lately).

or can I put a realplayer plug in on the server?
Yes, but is your content in the right format? Do you have permission to
stream it? Is it any better/cheaper than streaming servers that use WMF
or QuickTime formats?

Is it possible to check if they have DVD playing
software and use that.


It's possible to check, but it won't do you any good. DVD players
expect the DVD to be in a drive physically connected to the machine.

[...]

--
Zif
Jan 27 '06 #2
mc************@gmail.com wrote:
How do I play a DVD from a website? I am starting with zero knowledge
of media but have HTML Experience.
You can't play a DVD, since a DVD is a physical disc that needs to be
played from a DVD drive. I'm going to assume you've ripped the video
off the DVD (and that you have permission to do so) and it is now saved
in some file format, suitable for distributing over the internet.
I found out that Windows Media Player won't play the DVD. Do I suggest
everyone download Real Player for free?
No, the best thing to do is publish the video in a widely supported
format, such as MPEG and include it like this.

<object type="video/mpeg" data="movie.mpg" height="360" width="640">
<p>Download <a href="movie.mpg">Movie title</a>.</p>
</object>

Some browsers may not be able to play it within the browser window, but
the link will allow the user to download the video and watch it
or can I put a realplayer plug in on the server?
No, that's client side software, it can't be used from the server and
you should let the user use whatever video software they choose.
Is it possible to check if they have DVD playing
software and use that.


You don't need to. You just need to tell the browser what type of file
it is using the MIME type and let it launch the correct application for
the user. Don't write code to sniff for specific software, it's a waste
of time.

--
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/ Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox
Jan 27 '06 #3

Lachlan Hunt wrote:
mc************@gmail.com wrote:
How do I play a DVD from a website? I am starting with zero knowledge
of media but have HTML Experience.


You can't play a DVD, since a DVD is a physical disc that needs to be
played from a DVD drive. I'm going to assume you've ripped the video
off the DVD (and that you have permission to do so) and it is now saved
in some file format, suitable for distributing over the internet.
I found out that Windows Media Player won't play the DVD. Do I suggest
everyone download Real Player for free?


No, the best thing to do is publish the video in a widely supported
format, such as MPEG and include it like this.

<object type="video/mpeg" data="movie.mpg" height="360" width="640">
<p>Download <a href="movie.mpg">Movie title</a>.</p>
</object>

Some browsers may not be able to play it within the browser window, but
the link will allow the user to download the video and watch it
or can I put a realplayer plug in on the server?


No, that's client side software, it can't be used from the server and
you should let the user use whatever video software they choose.
Is it possible to check if they have DVD playing
software and use that.


You don't need to. You just need to tell the browser what type of file
it is using the MIME type and let it launch the correct application for
the user. Don't write code to sniff for specific software, it's a waste
of time.

--
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/ Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox


Jan 28 '06 #4
Thanks for the help!

Jan 31 '06 #5
Thanks for the help!

Jan 31 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

21 posts views Thread by Steve K | last post: by
1 post views Thread by Lord2702 | last post: by
3 posts views Thread by | last post: by
3 posts views Thread by illmagination | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.