Re: Launch stand alone WMP, disable controls?
- From: cwdjrxyz <spamtrap2@xxxxxxxxxx>
- Date: Thu, 3 Apr 2008 11:53:16 -0700 (PDT)
On Apr 3, 11:09 am, hzgt9b <celof...@xxxxxxxxx> wrote:
Thanks for all your great replies. My responses follow.
Unless this is an in house network site and everyone has IE browsers,
Yes, this site is on a private network and all users have WMP.
You may have problems with mms for the WMP 11, as Microsoft phased
this out with that player. Some streaming sites made a patch so this
would still work, but it is best to change the streaming server to
allow calling it with more recent code.
Thanks, I did not know that - can you provide me with some reference
links about this?
Follow-up questions:
If M$ phased the mms:// protocol out with WMP 11 how do I get steaming
data versus progressive download?
The media is on a streaming server - but I thought the call had to use
mms:// to make it stream vs. prog. download (maybe that's the patch
you talk about?).
Also, what does it look like to call a streaming server "...with more
recent code"?
As for Flash encoding - I'd love to do that but it is out of the
question for this project.
See http://www.cwdjr.net/video/single/ for the files I am using.
The module wmpvob.php, that can be viewed as the text file wmpobj.txt
writes the object for the WMP, if it is selected to include WMP.
<?php
$YR = $_POST['player'] ;
if($YR == 'w' && $a[0] !== ""){
$dvo = '<div style="text-align:center">';
print $dvo;
$mob = '<object data="'.$a[0].'" type="video/x-ms-wvx" style="width:'.
$a[1].'px; height:'.$a[2].'px"><param name="src" value="'.$a[0].'"
valuetype="ref" /><param name="showcontrols" value="1"
valuetype="data" /><param name="showstatusbar" value="1"
valuetype="data" /><param name="autostart" value="0" valuetype="data" /
<param name="volume" value="0" valuetype="data" /><paramname="PlayCount" value="1" valuetype="data" /></object>';
print $mob;
if($a[3] !== "") print $a[3];
$dve = '</div>';
print $dve;
};
?>
This is designed to work on popular recent browsers such as IE,
Firefox, Seamonkey, Opera and Safari for Windows.
The include mime.php uses header exchange to determine if the browser
says it will support true xhtml of mime type application/xhtml+xml.
The server must be set up to associate this mime type with something
other than the extension .html. (If you serve the page written in
xhtml code with the extension .html, it only gets served as html and
not xhtml and will work on IE browsers while true xhtml will not when
served properly.) If not, it rewrites the page as html strict using
regular expressions etc. Actually I am using the include
mimebadmac.php at present to correct for a problem in the fairly new
Safari for Windows browser. This also requires browdet.php which is a
free module to detect an apple browser with php. If apple is detected,
the xhtml 1.1 page is forced to be rewritten as html 4.01 strict. The
reason for doing this is that the header exchange reports that the
Safari for Windows browser will handle true xhtml, which it does in
general. However when using the WMP, it will not work if the page is
written in true xhtml but will work in html. I hope someone fixes this
problem soon, at which time I can go back to using mime.php. However I
am not holding my breath, because this involves both Microsoft and
Apple and the code for the Safari for Windows browser and WMP is
quite long and complex. If you are content to use html 4.01 strict
only, you can just substitute the usual start for an html page for the
mime include at the top of the page and remove the special xhtml
stuff.
Object modules are included for other players. Some require use of
Microsoft conditional comments to do one thing for IE browsers and
something else for all other browsers. For example, for flash one
ordinary object will work for all, except for IE progressive download
streaming will not start until download is complete, which can result
in a long wait for a long flash video. Using Microsoft conditional
comments routes to an ActiveX object for IE(and close relatives such
as ATT/Yahoo DHL) browsers. There are other ways to overcome this
problem.
Progressive download stores the videos on the ordinary html server I
use. In the case of .wmv and .rm videos, you link to them via playlist
files which may include only one or many videos. The playlist files
are very short text files such as a .wvx for .wmv videos and .rpm for
Real. In any case, when the object for playing a video is called,
download of the video file to the temporary cache of the browser is
started, and playing starts after a short buffering time to keep the
download ahead of the video playback. If the connection is so poor
that download can not keep up with the speed needed to play the video,
either buffering time becomes excessive and/or the playback of the
video stops and starts to allow download to catch up.
There are several types of streaming servers for different types of
videos. Their main advantages are they manage how many can connect to
the same video at the same time. Thus if the server is overloaded, it
will not let more connect to the video until it is less busy. If you
let nearly any number connect at once, then an ordinary html server
slows down to a crawl and may download video so slowly that nobody
connected can view the video properly.Thus you need a good host who
does not overload html browsers if you use progressive download. Other
advantages of streaming servers is that they can allow starting in the
middle of a long video and can support real time video and audio
broadcasts. Also, for some video and audio formats you can allow say 3
bitrates for dialup, broadband and high broadband. Many who do not use
much streaming media rent space from a streaming host. For example a
local radio station has broadcasts over their web page. This brings up
the subject of mms and WMP11.
When WMP 11 first came out, the mentioned radio station would not work
on it, but would work again if you reverted back to WMP 10. The code
for the link showed that the radio station was connecting to a
Microsoft streaming server owned by a company that caters to radio
station. Besides streaming the audio, they kept detailed records of
how many people connected to each song so the station could pay the
right amount to performace rights organizations for songs played. I
contacted the radio station and in a few days the problem was solved,
apparently at the host company. They apparently wrote some code to
make the audio connect properly on WMP 11 when .mms was used. I have
not checked back in a long time to see if the radio station is using a
new protocol for connecting that is handled directly by the WMP 11.
Anyway, when WMP11 first came out, there were many posts in various
groups by irate webmasters and other who saw no reason for Microsoft
not to support the old mms on WMP 11 rather than the newer protocols
for streaming servers. I really do not keep up with details of
protocol for connecting to streaming servers since progressive
download on the html server of a good host has served my needs.
.
- References:
- Launch stand alone WMP, disable controls?
- From: hzgt9b
- Re: Launch stand alone WMP, disable controls?
- From: cwdjrxyz
- Re: Launch stand alone WMP, disable controls?
- From: hzgt9b
- Launch stand alone WMP, disable controls?
- Prev by Date: DVD Won't Play From My Computer
- Next by Date: Re: How to make WMP play real audio
- Previous by thread: Re: Launch stand alone WMP, disable controls?
- Next by thread: Cannot load asx files
- Index(es):
Relevant Pages
|