| Author |
Message |
new_to_wmp
Guest
|
Posted:
Fri Nov 04, 2005 1:30 am Post subject:
Embedding Video |
|
|
I don't know really where to start, but maybe someone can point me in the
right direction or help.
I have a windows media file (.wmv) that is embedded in an html page....what
I am trying to do is have a picture (.jpg) show first. Then when you click
on the link to play the video, the picture goes away and in it's place the
embedded windows media player plays the video. When it's finished playing,
the picture comes back.
Can anyone help?
|
|
| Back to top |
|
 |
Neil Smith [MVP Digital M
Guest
|
Posted:
Fri Nov 04, 2005 9:30 pm Post subject:
Re: Embedding Video |
|
|
On Thu, 3 Nov 2005 16:36:09 -0800, "new_to_wmp"
<new_to_wmp@discussions.microsoft.com> wrote:
| Quote: | I don't know really where to start, but maybe someone can point me in the
right direction or help.
I have a windows media file (.wmv) that is embedded in an html page....what
I am trying to do is have a picture (.jpg) show first. Then when you click
on the link to play the video, the picture goes away and in it's place the
embedded windows media player plays the video. When it's finished playing,
the picture comes back.
Can anyone help?
|
Sure you can - I did this as a demo a while ago, just copy & paste the
code into your editor and blast away :
http://www.captionkitstore.com/lornasquietnight.php
HTH
Cheers - Neil |
|
| Back to top |
|
 |
new_to_wmp
Guest
|
Posted:
Mon Nov 07, 2005 9:30 am Post subject:
Re: Embedding Video |
|
|
Thanks Neil....I got everything to work....however....it works in IE
only....in Firefox, it does not display the picture, and begins to stream the
video right away.
Any ideas?
Thanks.
"Neil Smith [MVP Digital Media]" wrote:
| Quote: | On Thu, 3 Nov 2005 16:36:09 -0800, "new_to_wmp"
new_to_wmp@discussions.microsoft.com> wrote:
I don't know really where to start, but maybe someone can point me in the
right direction or help.
I have a windows media file (.wmv) that is embedded in an html page....what
I am trying to do is have a picture (.jpg) show first. Then when you click
on the link to play the video, the picture goes away and in it's place the
embedded windows media player plays the video. When it's finished playing,
the picture comes back.
Can anyone help?
Sure you can - I did this as a demo a while ago, just copy & paste the
code into your editor and blast away :
http://www.captionkitstore.com/lornasquietnight.php
HTH
Cheers - Neil
|
|
|
| Back to top |
|
 |
zachd [ms]
Guest
|
Posted:
Thu Nov 10, 2005 9:30 am Post subject:
Re: Embedding Video |
|
|
What's the URL of your embedding sample?
--
(speaking for myself and doing this in my free time)
See http://zachd.com/pss/pss.html for some helpful WMP info.
This posting is provided "AS IS" with no warranties, and confers no rights.
--
"new_to_wmp" <newtowmp@discussions.microsoft.com> wrote in message
news:A8FBF341-05CD-433B-A8A7-01570611AF14@microsoft.com...
| Quote: | Thanks Neil....I got everything to work....however....it works in IE
only....in Firefox, it does not display the picture, and begins to stream
the
video right away.
Any ideas?
Thanks.
"Neil Smith [MVP Digital Media]" wrote:
On Thu, 3 Nov 2005 16:36:09 -0800, "new_to_wmp"
new_to_wmp@discussions.microsoft.com> wrote:
I don't know really where to start, but maybe someone can point me in
the
right direction or help.
I have a windows media file (.wmv) that is embedded in an html
page....what
I am trying to do is have a picture (.jpg) show first. Then when you
click
on the link to play the video, the picture goes away and in it's place
the
embedded windows media player plays the video. When it's finished
playing,
the picture comes back.
Can anyone help?
Sure you can - I did this as a demo a while ago, just copy & paste the
code into your editor and blast away :
http://www.captionkitstore.com/lornasquietnight.php
HTH
Cheers - Neil
|
|
|
| Back to top |
|
 |
new_to_wmp
Guest
|
Posted:
Tue Nov 15, 2005 8:39 am Post subject:
Re: Embedding Video |
|
|
Sorry...can't give a URL as it is on a development box. But it does the same
thing on Neils link. http://www.captionkitstore.com/lornasquietnight.php
View it with IE, then view it with Firefox, you'll see what I mean.
"zachd [ms]" wrote:
| Quote: |
What's the URL of your embedding sample?
--
(speaking for myself and doing this in my free time)
See http://zachd.com/pss/pss.html for some helpful WMP info.
This posting is provided "AS IS" with no warranties, and confers no rights.
--
"new_to_wmp" <newtowmp@discussions.microsoft.com> wrote in message
news:A8FBF341-05CD-433B-A8A7-01570611AF14@microsoft.com...
Thanks Neil....I got everything to work....however....it works in IE
only....in Firefox, it does not display the picture, and begins to stream
the
video right away.
Any ideas?
Thanks.
"Neil Smith [MVP Digital Media]" wrote:
On Thu, 3 Nov 2005 16:36:09 -0800, "new_to_wmp"
new_to_wmp@discussions.microsoft.com> wrote:
I don't know really where to start, but maybe someone can point me in
the
right direction or help.
I have a windows media file (.wmv) that is embedded in an html
page....what
I am trying to do is have a picture (.jpg) show first. Then when you
click
on the link to play the video, the picture goes away and in it's place
the
embedded windows media player plays the video. When it's finished
playing,
the picture comes back.
Can anyone help?
Sure you can - I did this as a demo a while ago, just copy & paste the
code into your editor and blast away :
http://www.captionkitstore.com/lornasquietnight.php
HTH
Cheers - Neil
|
|
|
| Back to top |
|
 |
Neil Smith [MVP Digital M
Guest
|
Posted:
Thu Nov 17, 2005 1:30 pm Post subject:
Re: Embedding Video |
|
|
On Thu, 17 Nov 2005 01:33:39 -0800, "zachd [ms]"
<zachd@nomailplz.online.microsoft.com> wrote:
| Quote: |
That's not a good page, though.
|
You're right ;-)
| Quote: | There's a reference to video/x-ms-wma,
which doesn't exist - it's either audio/x-ms-wma or video/x-ms-wmv (latter
is what they want here), and the second OBJECT tag doesn't set AutoStart,
right?
|
In fact it was a work in progress at the time. If you look closely at
what firefox does with those tags, the second object tag isn't
instantiated - it actually *does* read the values from the first one.
This is the reverse behaviour of the "flash satay" technique for xhtml
embedding media objects, where FF and other W3C standard compliant
browsers would ignore the outer object tag because of the "invalid"
classID attribute and missing type="blah", and use the inner one.
| Quote: | So I'd expect it to to autostart. Just fix that and it should
work...
|
Try pulling the inner object tag and references (if any) in the
javascript. It should make no difference at all. The problem seems to
be with some installs of FF, the media player object doesn't appear as
a scriptable object in the DOM. I think there's a plugin to enable the
netscape event model using npDSEvtObsProxy, but it may not be
installed as standard (and the code on that page in any case doesn't
instantiate it).
HTH
Cheers - Neil |
|
| Back to top |
|
 |
zachd [ms]
Guest
|
Posted:
Thu Nov 17, 2005 1:30 pm Post subject:
Re: Embedding Video |
|
|
That's not a good page, though. There's a reference to video/x-ms-wma,
which doesn't exist - it's either audio/x-ms-wma or video/x-ms-wmv (latter
is what they want here), and the second OBJECT tag doesn't set AutoStart,
right? So I'd expect it to to autostart. Just fix that and it should
work...
--
(speaking for myself and doing this in my free time)
See http://zachd.com/pss/pss.html for some helpful WMP info.
This posting is provided "AS IS" with no warranties, and confers no rights.
--
"new_to_wmp" <newtowmp@discussions.microsoft.com> wrote in message
news:2CE0F14F-C6EE-470E-8190-4A0FA7B304E1@microsoft.com...
| Quote: | Sorry...can't give a URL as it is on a development box. But it does the
same
thing on Neils link. http://www.captionkitstore.com/lornasquietnight.php
View it with IE, then view it with Firefox, you'll see what I mean.
"zachd [ms]" wrote:
What's the URL of your embedding sample?
--
(speaking for myself and doing this in my free time)
See http://zachd.com/pss/pss.html for some helpful WMP info.
This posting is provided "AS IS" with no warranties, and confers no
rights.
--
"new_to_wmp" <newtowmp@discussions.microsoft.com> wrote in message
news:A8FBF341-05CD-433B-A8A7-01570611AF14@microsoft.com...
Thanks Neil....I got everything to work....however....it works in IE
only....in Firefox, it does not display the picture, and begins to
stream
the
video right away.
Any ideas?
Thanks.
"Neil Smith [MVP Digital Media]" wrote:
On Thu, 3 Nov 2005 16:36:09 -0800, "new_to_wmp"
new_to_wmp@discussions.microsoft.com> wrote:
I don't know really where to start, but maybe someone can point me in
the
right direction or help.
I have a windows media file (.wmv) that is embedded in an html
page....what
I am trying to do is have a picture (.jpg) show first. Then when you
click
on the link to play the video, the picture goes away and in it's
place
the
embedded windows media player plays the video. When it's finished
playing,
the picture comes back.
Can anyone help?
Sure you can - I did this as a demo a while ago, just copy & paste the
code into your editor and blast away :
http://www.captionkitstore.com/lornasquietnight.php
HTH
Cheers - Neil
|
|
|
| Back to top |
|
 |
zachd [ms]
Guest
|
Posted:
Fri Nov 18, 2005 9:30 am Post subject:
Re: Embedding Video |
|
|
^-- I'll buy all that. If you can't set the object parameters in the
scripting environment (FF), then you're broken by that client's
architecture, really. =\
--
(speaking for myself and doing this in my free time)
See http://zachd.com/pss/pss.html for some helpful WMP info.
This posting is provided "AS IS" with no warranties, and confers no rights. |
|
| Back to top |
|
 |
Sebastian Gottschalk
Guest
|
Posted:
Fri Nov 18, 2005 1:30 pm Post subject:
Re: Embedding Video |
|
|
zachd [ms] wrote:
| Quote: | ^-- I'll buy all that. If you can't set the object parameters in the
scripting environment (FF), then you're broken by that client's
architecture, really. =\
|
Not allowing to script plugins is a security measure which is sane and
therefore a defaukt for almost any webbrowser, except IE which is broken.
--
Dieser Schrieb stellt eine private Meinungsäußerung des Verfassers im
Sinne der gesetzlich garantierten Meinungsfreiheit dar. Wem das nicht
passt, der wende sich an das Bundesverfassungsgericht. Viel Erfolg!
Key: 0xA0E28D18 FP: 83AE 1136 1E2B 9767 8FB2 7594 4128 1A9E A0E2 8D18 |
|
| Back to top |
|
 |
Neil Smith [MVP Digital M
Guest
|
Posted:
Fri Nov 18, 2005 5:30 pm Post subject:
Re: Embedding Video |
|
|
On Thu, 17 Nov 2005 23:20:43 -0800, "zachd [ms]"
<zachd@nomailplz.online.microsoft.com> wrote:
| Quote: |
^-- I'll buy all that. If you can't set the object parameters in the
scripting environment (FF), then you're broken by that client's
architecture, really. =\
|
Well at present I'm not clear if you can access any object parameters
from FF - QT Real or WM, and possibly even Flash (apart from the
FSCommand stuff). I'm trying to get a good test case together but
obviously it's rather awkward given different browser security models
;-)
Cheers - Neil |
|
| Back to top |
|
 |
Neil Smith [MVP Digital M
Guest
|
Posted:
Fri Nov 18, 2005 5:30 pm Post subject:
Re: Embedding Video |
|
|
On Fri, 18 Nov 2005 11:25:30 +0100, Sebastian Gottschalk
<seppi@seppig.de> wrote:
| Quote: | zachd [ms] wrote:
^-- I'll buy all that. If you can't set the object parameters in the
scripting environment (FF), then you're broken by that client's
architecture, really. =\
Not allowing to script plugins is a security measure which is sane and
therefore a defaukt for almost any webbrowser, except IE which is broken.
|
Now how did I *know* you were going to say that ;-)
IE seems to be "special" in this regard, because it exposes the
properties of plugins as DOMDocument elements (so I give yadda plugin
object an ID and I can get to properties and methods).
Obviously that's convenient from the scripting viewpoint, and handy if
as a developer I want to provide more subtle behaviours than an
embedded object will normally implement. Whether that's broken is a
matter for debate.
Whether it's a security issue surely depends on the "trustedness" of
the embedded control - if you have some random java applet developer
getting access to any file on your hard disk that's one thing. And I'd
agree if it was a case with WM that anybody could access your media
library or any other file, but it's built so they can't from the web
domain without your explicit agreement.
Cheers - Neil |
|
| Back to top |
|
 |
zachd [ms]
Guest
|
Posted:
Fri Nov 18, 2005 9:30 pm Post subject:
Re: Embedding Video |
|
|
"Sebastian Gottschalk" <seppi@seppig.de> wrote in message
news:12azh13u9tlid.dlg@news.cis.dfn.de...
| Quote: | zachd [ms] wrote:
^-- I'll buy all that. If you can't set the object parameters in the
scripting environment (FF), then you're broken by that client's
architecture, really. =\
Not allowing to script plugins is a security measure which is sane and
therefore a defaukt for almost any webbrowser, except IE which is broken.
|
That's an interesting conjecture, but it has absolutely nothing to do with
what we're talking about, which is setting an object's parameters. If you
can't set an object's parameters, you pretty much can't use it. This is
readibly understandable if you look at the choice example of setting the
URL, FileName, or SRC parameter.
So yeah: what you're talking about has nothing to do with this particular
situation. =)
-Zach
--
(speaking for myself and doing this in my free time)
See http://zachd.com/pss/pss.html for some helpful WMP info.
This posting is provided "AS IS" with no warranties, and confers no rights. |
|
| Back to top |
|
 |
Sebastian Gottschalk
Guest
|
Posted:
Fri Nov 18, 2005 9:30 pm Post subject:
Re: Embedding Video |
|
|
zachd [ms] wrote:
| Quote: | "Sebastian Gottschalk" <seppi@seppig.de> wrote in message
news:12azh13u9tlid.dlg@news.cis.dfn.de...
zachd [ms] wrote:
^-- I'll buy all that. If you can't set the object parameters in the
scripting environment (FF), then you're broken by that client's
architecture, really. =\
Not allowing to script plugins is a security measure which is sane and
therefore a defaukt for almost any webbrowser, except IE which is broken.
That's an interesting conjecture, but it has absolutely nothing to do with
what we're talking about, which is setting an object's parameters.
|
This works quite well, but WMP plugin ignores it.
| Quote: | If you can't set an object's parameters, you pretty much can't use it.
|
It's not supposed to be used, and it will never be, because you can't even
define what plugin is actually used.
| Quote: | This is readibly understandable if you look at the choice example
|
There is no working example.
| Quote: | of setting the URL, FileName, or SRC parameter.
|
There are no parameters in that example. Maybe you might notice that
anything between <object> and </object> is ignored when a plugin is found
and that there is no such tag like "param". The URL is set by the object's
Data property.
| Quote: | So yeah: what you're talking about has nothing to do with this particular
situation. =)
|
Wront. The example refers to WMP.controls.play(), without even trying to
check for undefined or SecurityException, which is total nonsense.
--
Dieser Schrieb stellt eine private Meinungsäußerung des Verfassers im
Sinne der gesetzlich garantierten Meinungsfreiheit dar. Wem das nicht
passt, der wende sich an das Bundesverfassungsgericht. Viel Erfolg!
Key: 0xA0E28D18 FP: 83AE 1136 1E2B 9767 8FB2 7594 4128 1A9E A0E2 8D18 |
|
| Back to top |
|
 |
Neil Smith [MVP Digital M
Guest
|
Posted:
Sat Nov 19, 2005 1:30 am Post subject:
Re: Embedding Video |
|
|
On Fri, 18 Nov 2005 20:26:55 +0100, Sebastian Gottschalk
<seppi@seppig.de> wrote:
| Quote: | zachd [ms] wrote:
"Sebastian Gottschalk" <seppi@seppig.de> wrote in message
news:12azh13u9tlid.dlg@news.cis.dfn.de...
zachd [ms] wrote:
^-- I'll buy all that. If you can't set the object parameters in the
scripting environment (FF), then you're broken by that client's
architecture, really. =\
Not allowing to script plugins is a security measure which is sane and
therefore a defaukt for almost any webbrowser, except IE which is broken.
That's an interesting conjecture, but it has absolutely nothing to do with
what we're talking about, which is setting an object's parameters.
This works quite well, but WMP plugin ignores it.
snip /
There are no parameters in that example. Maybe you might notice that
anything between <object> and </object> is ignored when a plugin is found
and that there is no such tag like "param". The URL is set by the object's
Data property.
|
I think you're referring to some other document than everybody else in
the world works from. The HTML4.0 specification documents a <param />
element for <object /> elements :
http://www.w3.org/TR/REC-html40/struct/objects.html#object-init
You may be getting confused with the supported elements in XHTML so
let's review the relevant documentation here for XHTML1 and XHTML2 :
http://www.alistapart.com/articles/flashsatay/
http://www.w3.org/TR/2003/WD-xhtml2-20030506/mod-object.html#sec_14.2.
http://www.w3.org/TR/2003/WD-xhtml2-20030506/mod-object.html#s_objectmodule_issue_0
OK I hope having read that, we're clearer there *is* a <param />
element and *possibly* in future, attribute - and it is valid in all
versions of HTML4 and XHTML.
So - the question is, which markup language are *you* rendering in ?
Cheers - Neil |
|
| Back to top |
|
 |
zachd [ms]
Guest
|
Posted:
Sat Nov 19, 2005 9:04 am Post subject:
Re: Embedding Video |
|
|
"Sebastian Gottschalk" <seppi@seppig.de> wrote in message
news:nr3lgumhktqb.dlg@news.cis.dfn.de...
| Quote: | zachd [ms] wrote:
"Sebastian Gottschalk" <seppi@seppig.de> wrote in message
zachd [ms] wrote:
^-- I'll buy all that. If you can't set the object parameters in the
scripting environment (FF), then you're broken by that client's
architecture, really. =\
Not allowing to script plugins is a security measure which is sane and
therefore a defaukt for almost any webbrowser, except IE which is
broken.
That's an interesting conjecture, but it has absolutely nothing to do
with
what we're talking about, which is setting an object's parameters.
This works quite well, but WMP plugin ignores it.
|
................ ? ^-- Left field.
I'm referring to the Autostart parameter setting we're talking about. I
think you're completely misreading what I wrote.
Go re-read first three quoted paragraphs here. I say PARAMETER. You say
SCRIPTING. I say PARAMETER. I think the source of your confusion is
evident. =)
| Quote: | If you can't set an object's parameters, you pretty much can't use it.
It's not supposed to be used, and it will never be, because you can't even
define what plugin is actually used.
|
.........
You realize you're talking with the guy that came up with the first method
for allowing scripting against a non-genericized plug-in, right? There's a
reason why you embedded WMP for years with "application/x-mplayer2", and you
and I should both grok that and move on. I was breaking this news (see next
paragraph) to the rest of the media player industry eight years ago, so I'm
happy to see we're in agreement - and yes, I am pretty aware of this field
and the shortcomings.
Yeah, of COURSE you don't want to SCRIPT against an arbitrary plug-in.
That's architecturally broken, and you can give a big shout out to Netscape
there for pioneering Arbitrary Plug-in Insertion (good) while also
pioneering Scripting Against Those Arbitrary Plug-ins (very bad). I was
working on Netscape/IE from the very start of my time in this industry....
Anyways, it is acceptable to set an AutoStart param on an embedded object.
The object might not be scriptable, but setting the default parameters can't
possibly be viewed as Untowards. This:
<somearbitraryembeddingmethod id=Foo></close>
Foo.Goodness();
is badness. This:
<somearbitraryembeddingmethod id=Foo param=val><param
setting=val</closeitall>
might not work if an arbitrary plug-in is inserted, but it's face-value
sound and if you're stuck in Arbitrary Plug-in Hell, it seems like the best
thing you can do within that broken architecture.
If you can't manually specify the plug-in Interface you want, you're screwed
for scriptability. I totally agree with you there.
| Quote: | This is readibly understandable if you look at the choice example
There is no working example.
of setting the URL, FileName, or SRC parameter.
There are no parameters in that example. Maybe you might notice that
anything between <object> and </object> is ignored when a plugin is found
and that there is no such tag like "param". The URL is set by the object's
Data property.
|
See Neil's post. If PARAM is ignored by the bad client renderer, then you
have to figure out the established method for passing parameter settings to
the object.
| Quote: | So yeah: what you're talking about has nothing to do with this particular
situation. =)
Wront. The example refers to WMP.controls.play(), without even trying to
check for undefined or SecurityException, which is total nonsense.
|
That's a method / function call, and not what I was talking about at all.
Cheers,
-Zach
--
(speaking for myself and doing this in my free time)
See http://zachd.com/pss/pss.html for some helpful WMP info.
This posting is provided "AS IS" with no warranties, and confers no rights. |
|
| Back to top |
|
 |
|
|
|
|