| Author |
Message |
wayne
Guest
|
Posted:
Wed Jun 29, 2005 11:25 pm Post subject:
Video, captions and Pictures |
|
|
We CAN play an embedded video
- pushing script commands to throw pictures into a frame
- pushing a transcript into a DIV with a SAMI
But we can only do it with IE on a PC.
We cannot get IE on a Mac or Firefox to work with transcripts & SAMI
We cannot get Firefox to throw script commands into multiple frames.
I there a cross platform (PC and MAC) and cross browser (IE & Firefox)
solution to using video with synchronized images and captions?
|
|
| Back to top |
|
 |
Neil Smith [MVP Digital M
Guest
|
Posted:
Thu Jun 30, 2005 12:30 am Post subject:
Re: Video, captions and Pictures |
|
|
On Wed, 29 Jun 2005 11:25:06 -0700, "wayne"
<wayne@discussions.microsoft.com> wrote:
| Quote: | We CAN play an embedded video
- pushing script commands to throw pictures into a frame
- pushing a transcript into a DIV with a SAMI
But we can only do it with IE on a PC.
We cannot get IE on a Mac or Firefox to work with transcripts & SAMI
We cannot get Firefox to throw script commands into multiple frames.
I there a cross platform (PC and MAC) and cross browser (IE & Firefox)
solution to using video with synchronized images and captions?
|
Probably real player or quicktime might offer a working result. I say
that mainly cause I've drawn a blank so far with Firefox and scripting
embedded objects.
Although it renders the object and appears to respond to most
parameters, I can't find an exposed interface which responds to
scripting or allows event capture (currently looking at the W3C's
addEventListener DOM script handler but FF1.0.4 ain't happy).
I'm starting writing a blog about what I find cause I'm sure there
should be a way to do this - otherwise *all* browser plugins would be
unscriptable.
The main problem I have is I'm trying to write this as XHTML
compatible, so I can't add the <embed /> instead I have to use
(nested) <object /> nodes, which are DOM HTMLObjectElements.
In fact, I'm not clear exactly which model Firefox *does* implement
for embedded object scripting : After adding a correctly specified and
interpreted <object /> node, neither the document.embeds nor
document.applets collections are populated.
Makes you wonder - if you do find anything out, regarding scripting
embedded WM or even Real or Quicktime in Firefox, be sure to post it.
Cheers - Neil |
|
| Back to top |
|
 |
Sebastian Gottschalk
Guest
|
Posted:
Thu Jun 30, 2005 12:30 am Post subject:
Re: Video, captions and Pictures |
|
|
Neil Smith [MVP Digital Media] wrote:
| Quote: | In fact, I'm not clear exactly which model Firefox *does* implement
for embedded object scripting : After adding a correctly specified and
interpreted <object /> node, neither the document.embeds nor
document.applets collections are populated.
|
That's absolutely correct behaviour, according to W3C specs. Anything
within the Object node is just alternative content if no plugin or module
can be found for handling the Object node's content - if so, then anything
else in this node should be ignored.
That's also why <object><embed></embed></object> can become quite
misleading.
--
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:
Thu Jun 30, 2005 12:30 am Post subject:
Re: Video, captions and Pictures |
|
|
On Wed, 29 Jun 2005 22:18:26 +0200, Sebastian Gottschalk
<seppi@seppig.de> wrote:
| Quote: | Neil Smith [MVP Digital Media] wrote:
In fact, I'm not clear exactly which model Firefox *does* implement
for embedded object scripting : After adding a correctly specified and
interpreted <object /> node, neither the document.embeds nor
document.applets collections are populated.
That's absolutely correct behaviour, according to W3C specs. Anything
within the Object node is just alternative content if no plugin or module
can be found for handling the Object node's content - if so, then anything
else in this node should be ignored.
|
You're most probably correct, however I note that Firefox on PC will
render WM content within this object. I can't yet find a clear reason
why the DOMObjectNode isn't scriptable in FF given this finding.
My current investigation is focused on testing for event support on
the object (using attachEventHandler) to see if I can derive the
parent object from the event itself, which might provide a way in.
The same consideration applies to RealPlayer and Quicktime, and most
probably, Flash too.
| Quote: | That's also why <object><embed></embed></object> can become quite
misleading.
|
That's a different thread (you remember, I'm discussing XHTML DOM here
not HTML4 DOM which *does* support <embed />)
Cheers - Neil |
|
| Back to top |
|
 |
Neil Smith [MVP Digital M
Guest
|
Posted:
Thu Jun 30, 2005 12:30 am Post subject:
Re: Video, captions and Pictures |
|
|
On Wed, 29 Jun 2005 14:12:02 -0700, "wayne"
<wayne@discussions.microsoft.com> wrote:
| Quote: | What about getting an embedded player with SAMI to work in IE on a MAC?
Does anyone have any luck with this?
|
That browser culture is currently so far below my horizon (compared to
Firefox) I'm not too worried. Consider that almost 95% or Mac users
use Camino or Safari. So I'm not chasing after the 5% of the 10%.
/me : Draws-Line-In-Sand
Cheers - Neil |
|
| Back to top |
|
 |
wayne
Guest
|
Posted:
Thu Jun 30, 2005 12:30 am Post subject:
Re: Video, captions and Pictures |
|
|
What about getting an embedded player with SAMI to work in IE on a MAC?
Does anyone have any luck with this? |
|
| Back to top |
|
 |
Neil Smith [MVP Digital M
Guest
|
Posted:
Thu Jun 30, 2005 12:30 am Post subject:
Re: Video, captions and Pictures |
|
|
On Wed, 29 Jun 2005 11:25:06 -0700, "wayne"
<wayne@discussions.microsoft.com> wrote:
| Quote: | We CAN play an embedded video
- pushing script commands to throw pictures into a frame
- pushing a transcript into a DIV with a SAMI
But we can only do it with IE on a PC.
We cannot get IE on a Mac or Firefox to work with transcripts & SAMI
We cannot get Firefox to throw script commands into multiple frames.
|
*If* you can make the SAMI XML-compatible (for example , your document
is well formed at least) then it's possible to read the XML file into
an XMLHTTP object, and deal with this though scripting, varying a
setTimeout() by reading the SYNC values. One possible way.
I can demonstrate that the broken examples on MSDN with unclosed SYNC
and P tags *can* be parsed by media player without failure - as long
as the document is saved as US-ASCII and not UTF-8. Most XML DOM
parsers will cope with US-ASCII as input.
| Quote: | I there a cross platform (PC and MAC) and cross browser (IE & Firefox)
solution to using video with synchronized images and captions?
|
Yes, pop the player out of the page and let the player handle it
natively. Not AFAIK *with* embedding currently. It's a mess.
Cheers - Neil |
|
| Back to top |
|
 |
Bill Burns
Guest
|
Posted:
Thu Jun 30, 2005 8:30 am Post subject:
Re: Video, captions and Pictures |
|
|
"wayne" <wayne@discussions.microsoft.com> wrote in message
news:C8C2FF7B-F84B-4DFE-AC64-634B4CAE1C79@microsoft.com...
| Quote: | We CAN play an embedded video
- pushing script commands to throw pictures into a frame
- pushing a transcript into a DIV with a SAMI
But we can only do it with IE on a PC.
We cannot get IE on a Mac or Firefox to work with transcripts & SAMI
We cannot get Firefox to throw script commands into multiple frames.
I there a cross platform (PC and MAC) and cross browser (IE & Firefox)
solution to using video with synchronized images and captions?
|
Wayne, the only way I know of to do this is the way our archives are set up.
Firefox isn't good at capturing/responding to events from embedding objects,
in my experience. Our archives are a jumble of javascript with an array of
event times that trigger the change of slides/pictures. In other words, the
javascript watches the time value of the player, and when it reaches a
certain value, it looks in an array to find the url of the picture it should
display. This is hardly elegant, as you have to load a javascript file
specific to the video/audio you are listening to - but this is one way to
get it to work cross browser.
Thanks,
Bill |
|
| Back to top |
|
 |
Neil Smith [MVP Digital M
Guest
|
Posted:
Thu Jun 30, 2005 1:50 pm Post subject:
Re: Video, captions and Pictures |
|
|
On Wed, 29 Jun 2005 23:22:03 GMT, "Neil Smith [MVP Digital Media]"
<neil@nospam.com> wrote:
| Quote: | I can demonstrate that the broken examples on MSDN with unclosed SYNC
and P tags *can* be parsed by media player without failure -
|
I meant to say : "When they are subsequently corrected to use
well-formed (paired tag) markup" - sorry for any confusion.
Cheers - Neil |
|
| Back to top |
|
 |
Neil Smith [MVP Digital M
Guest
|
Posted:
Thu Jun 30, 2005 1:52 pm Post subject:
Re: Video, captions and Pictures |
|
|
On Wed, 29 Jun 2005 23:00:24 -0600, "Bill Burns"
<wilhelm_here@spamdotyahoodotcom> wrote:
| Quote: |
"wayne" <wayne@discussions.microsoft.com> wrote in message
news:C8C2FF7B-F84B-4DFE-AC64-634B4CAE1C79@microsoft.com...
We CAN play an embedded video
- pushing script commands to throw pictures into a frame
- pushing a transcript into a DIV with a SAMI
But we can only do it with IE on a PC.
We cannot get IE on a Mac or Firefox to work with transcripts & SAMI
We cannot get Firefox to throw script commands into multiple frames.
I there a cross platform (PC and MAC) and cross browser (IE & Firefox)
solution to using video with synchronized images and captions?
Wayne, the only way I know of to do this is the way our archives are set up.
Firefox isn't good at capturing/responding to events from embedding objects,
in my experience. Our archives are a jumble of javascript with an array of
event times that trigger the change of slides/pictures. In other words, the
javascript watches the time value of the player, and when it reaches a
certain value, it looks in an array to find the url of the picture it should
display. This is hardly elegant, as you have to load a javascript file
specific to the video/audio you are listening to - but this is one way to
get it to work cross browser.
|
Bill - I'll make something tonight as a proof of concept. IMO we
shouldn't have to manually do this, so I'll try it out with some of
the Captionkit SAMI output (which is well formed) and set up a way to
extract the script times from those.
HTH
Cheers - Neil |
|
| Back to top |
|
 |
|
|
|
|