Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
media
danimation.controls
danimation.programming
devices
drm
dshow.programming
dtransform
encoder
encoder.optimization
hometheaterpc
media
media.beta
media.beta.encoder
mediacenter
mediacenter.portable
mediaplayer
music.products
musicproducer
player
player.plugins
player.skins
player.solaris
player.visualizations
player.web
sdk
server
tools
  
 
date: Mon, 29 May 2006 10:54:14 +0200,    group: microsoft.public.windowsmedia.player.web        back       


mpg doesn't play in IE - windows media player at first load   
I have a pretty strange issue and hope someone is able to point me into
the right direction:

When showing a converted mpg file on a web page in InternetExplorer and
Windows Media Player, the video doesn't start . Only if I reload the
page it works. However it works fine with the original file.

See:
http://www.birgin.de/test/videotest.html

I converted an existing mpg file into a mpg file with a smaler size 
using ffmpeg and the following parameters:

-s 320x192

Any ideas what is causing that behaviour or have I missed something?
Thanks a lot for every hint.

Daniel
date: Mon, 29 May 2006 10:54:14 +0200   author:   Daniel Kirsch

Re: mpg doesn't play in IE - windows media player at first load   
Daniel Kirsch wrote:

> http://www.birgin.de/test/videotest.html

| The original file starts as soon as you press the play button

There is no play button.

There cannot be any, because your Object tag is totally broken. The Type
is wrong, the Classid is invalid, the Src is pointing to the actual file
instead of a plugin and the Data attribute, which should point to the
file, is missing. And the Param tags are funny, aren't they?

Try it like that:
<OBJECT type="video/mpeg" data="./orig_lsg.mpg"></OBJECT>


BTW, why do you care for IE? I thought you want it to be a webpage, not
an intranet page.
date: Mon, 29 May 2006 15:23:38 +0200   author:   Sebastian Gottschalk

Re: mpg doesn't play in IE - windows media player at first load   
Sebastian Gottschalk wrote:
> There is no play button.

The play button of the MediaPlayer plugin.


> There cannot be any, because your Object tag is totally broken. The Type
> is wrong,

Doesn't matter for IE. Was just the rest of a crossbrowser solution 
which will be implemented later.


> the Classid is invalid,

Why?
CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6 is exactly the classid given 
in the documentation.
See eg: 
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmplay10/mmp_sdk/simpleexampleofscriptinginawebpage.asp


> the Src is pointing to the actual file

Which doesn't matter for IE.


> the Data attribute, which should point to the
> file, is missing.

Which doesn't matter for IE.


> And the Param tags are funny, aren't they?

Why?
That's the way you have to define properties for IE.


> Try it like that:
> <OBJECT type="video/mpeg" data="./orig_lsg.mpg"></OBJECT>

That doesn't show a video at all. In Firefox only the sound plays.


> BTW, why do you care for IE? I thought you want it to be a webpage, not
> an intranet page.

Although that question has nothing to do with what I asked: I'm trying 
to achieve the best results in every browser using the prefered plugin 
and the prefered attributes or param tags. The goal is to create a 
dynamic video system that is part of an authoring system and plays every 
defined video file with a couple of different settings like autostart, 
loop, show controls etc. As each browser and each plugin has different 
settings I'm developing a javascript based method to get as near as 
possible to the 100% solution.

So again:
Why doesn't the second movie starts only after loading the page twice? 
And I really only care for IE in this case!

(And please don't correct the syntax with an even worse example as long 
as you don't have a better solution which explaines or solves the problem.)

Daniel
date: Tue, 30 May 2006 11:58:17 +0200   author:   Daniel Kirsch

Re: mpg doesn't play in IE - windows media player at first load   
Daniel Kirsch wrote:

>> There cannot be any, because your Object tag is totally broken. The Type
>> is wrong,
> 
> Doesn't matter for IE. Was just the rest of a crossbrowser solution
> which will be implemented later.

WTF? There's only one standard-conformant solution and it is
crossbrowser, and even IE supports it.

>> the Classid is invalid,
> 
> Why?
> CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6 is exactly the classid given
> in the documentation.
> See eg:
> <http://msdn.microsoft.com/library/default.asp?url=/library/en-us/
> wmplay10/mmp_sdk/simpleexampleofscriptinginawebpage.asp>

Which is totally wrong. "clsid:" is no valid protocol according to W3C
and it's no wonder that Firefox fails to resolve it.

>> the Data attribute, which should point to the
>> file, is missing.
> 
> Which doesn't matter for IE.

But for every webbrowser.

>> And the Param tags are funny, aren't they?
> 
> Why?
> That's the way you have to define properties for IE.

Everything between <object> and </object> is supposed to bet interpreted
if the browser fails to find a plugin for the content. And <param> is no
valid tag.

>> Try it like that:
>> <OBJECT type="video/mpeg" data="./orig_lsg.mpg"></OBJECT>
> 
> That doesn't show a video at all. In Firefox only the sound plays.

Damn, add the approciate "width" and "heigth" attributes.
And well, it plays in IE quite well.

>> BTW, why do you care for IE? I thought you want it to be a webpage, not
>> an intranet page.
> 
> Although that question has nothing to do with what I asked: I'm trying
> to achieve the best results in every browser using the prefered plugin
> and the prefered attributes or param tags.

Obviously not. And still, why should one care for IE?
I'm not gonna fix my FTP server to support some random guy hammering
wrong FTP commands into Telnet to get him some useful error messages,
because its his fault to use wrong commands on telnet instead of a real
FTP client. Same for IE.

> The goal is to create a
> dynamic video system that is part of an authoring system and plays every
> defined video file with a couple of different settings like autostart,
> loop, show controls etc.

So how exactly do you want to achieve that? What about someone using the
VLC or WinAmp plugin instead of the WMP plugin? (Which is pretty likely
because the WMP plugin is hard to aquire and usually doesn't work at all.)

> Why doesn't the second movie starts only after loading the page twice?
> And I really only care for IE in this case!

Because your webpage is defective? Because IE is defective? Because the
WMP plugin for IE is defective?
date: Tue, 30 May 2006 15:46:25 +0200   author:   Sebastian Gottschalk

Re: mpg doesn't play in IE - windows media player at first load   
Sebastian Gottschalk wrote:
> WTF? There's only one standard-conformant solution and it is
> crossbrowser, and even IE supports it.

I don't care about standard conformancy if it doesn't work. And 
"standard conformant solution" doesn't fit at all as "solution" 
implicit, that it works as expected.


> Which is totally wrong.

Which is the way to include WMP in IE. This might be wrong from a 
standard conformant point of view but works and is recommended by MS.


>> Which doesn't matter for IE.
> 
> But for every webbrowser.

My question was explicitly about IE and not about conformancy. I'm 
searching for solutions and customer satisfaction and not for 
ideological and technical perfection. And no, there is no way to change 
the browser in our customers environment.


> Damn, add the approciate "width" and "heigth" attributes.
> And well, it plays in IE quite well.

Well, adding with and height works for Firefox. But it doesn't work in 
IE and doesn't solve my problem.
I need a solution where the player is included in the page and I need to 
know what player it is to control it using JavaScript.


> And still, why should one care for IE?

We care, because more than 95% of our customers are using it. And that's 
about 500.000 users and more.


> So how exactly do you want to achieve that?

By defining minimum requirements.

But again, all your statements doesn't target the original question.

If someone has any idea about what's wrong with the second file, I would 
be happy to hear it.

Daniel
date: Tue, 30 May 2006 17:39:06 +0200   author:   Daniel Kirsch

Re: mpg doesn't play in IE - windows media player at first load   
Daniel Kirsch wrote:

>> Which is totally wrong.
> 
> Which is the way to include WMP in IE. This might be wrong from a 
> standard conformant point of view but works and is recommended by MS.
> 
So what? It breaks webbrowsers and you wanted a webpage.

>> Damn, add the approciate "width" and "heigth" attributes. And well,
>>  it plays in IE quite well.
> 
> Well, adding with and height works for Firefox. But it doesn't work 
> in IE

Did you misconfigure something? For sure it works on a clean install.

> and I need to know what player it is to control it using JavaScript.

Controlling the player with a JavaScript? You really want to exploit
vulnerabilities? Your customers won't like you for triggering their IDS
systems with your shit.

>> And still, why should one care for IE?
> 
> We care, because more than 95% of our customers are using it. And 
> that's about 500.000 users and more.

The put a clear warning that it is a webpage and it's supposed to be
viewed with a webbrowser, not with IE?

>> So how exactly do you want to achieve that?
> 
> By defining minimum requirements.
> 
> But again, all your statements doesn't target the original question.

It does. Your requirements are already too tight both for real-world
deployment and for customers. You're bound to IE + WMP whereas there are
lots of real webbrowsers and lots of different media player plugins. ALl
of them employ different ways to handle controls, playback, interaction
and alike - and your artifical serves no real purpose except exactly
limiting the users control and compatibility.

> If someone has any idea about what's wrong with the second file, I 
> would be happy to hear it.

You may ask the question: What's right with it?
date: Tue, 30 May 2006 18:06:47 +0200   author:   Sebastian Gottschalk

Re: mpg doesn't play in IE - windows media player at first load   
Neil Smith [MVP Digital Media] wrote:
> On Tue, 30 May 2006 18:06:47 +0200, Sebastian Gottschalk
>  wrote:
> 
>>> and I need to know what player it is to control it using JavaScript.
>> Controlling the player with a JavaScript? 
> 
> Sounds reasonable - how do you think Flash, or Quicktime or Real
> Player is scripted?

By the media content.

>> You really want to exploit vulnerabilities? 
> 
> List them.

LOL? Generating events with faked call-stacks (create a mouse event,
route it through a Java applet which changes the 'origin' property,
reroute it to a form-submit), cross-site-scripting, access to lots of
dangerous functions, data sniffing...

Why exactly do you think does any webbrowser under the sun (and well,
not IE) requires at least some privilege request (with the user
explicitly permitting) or doesn't allow such interaction at all?

> Specific, unpatched, documented vulnerabilities which you claim simply
> aren't present in current players and none of them could be accessible
> through javascript because player environments - libraries, media
> access and so on - are sandboxed, just like Java

MUAHAHA. Do you really believe that?

>> Your customers won't like you for triggering their IDS
>> systems with your shit.
> 
> OK here you go again - list specific examples of an IDS that monitors
> javascript use by a browser? Go on, I dare you.

Several products from ISS, on the network layer, not inside the browser.
date: Wed, 31 May 2006 00:27:23 +0200   author:   Sebastian Gottschalk

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us