| Author |
Message |
Craig
Guest
|
Posted:
Sun Aug 21, 2005 8:30 am Post subject:
access to script events? |
|
|
I've got an embedded player and I want to read the markers and script events
without having to play through the movie. The movies I'm doing this to have
the scripts moved to the header.
I'm getting the markers with the Player.currentMedia.getMarkerName(i)
command and want to basically do the same with the script events. Is there
something similar to the getMarkerName function for getting script events?
If not, my plan is to set the play speed to fastforward (as fast as I can
get it) and then catch the script events I'm interested in that way.
I'm going to build a web page for future display of the movie that involves
knowing about the markers and script events contained within the movie. The
movie will be parsed once for this info then used for any further display.
Thanks - Craig
|
|
| Back to top |
|
 |
Neil Smith [MVP Digital M
Guest
|
Posted:
Mon Aug 22, 2005 12:30 pm Post subject:
Re: access to script events? |
|
|
On Sun, 21 Aug 2005 01:07:02 -0700, "Craig"
<Craig@discussions.microsoft.com> wrote:
| Quote: | I've got an embedded player and I want to read the markers and script events
without having to play through the movie. The movies I'm doing this to have
the scripts moved to the header.
I'm getting the markers with the Player.currentMedia.getMarkerName(i)
command and want to basically do the same with the script events. Is there
something similar to the getMarkerName function for getting script events?
|
No, unfortunately I think the only way to extract those is through the
encoder SDK, not through the player SDK. Is there any way you can
extract those script commands at the time you encode the files - say
drop them into an XML file for reading client-side ?
Q : Why do you need to read the Script Commands from the media file ?
| Quote: | If not, my plan is to set the play speed to fastforward (as fast as I can
get it) and then catch the script events I'm interested in that way.
|
I guess that'd work but of course the viewer would have to download
the entire file to get the command list. It would be rather a waste of
*their* bandwidth, I don't think I'd be too happy if I had to use that
solution.
| Quote: | I'm going to build a web page for future display of the movie that involves
knowing about the markers and script events contained within the movie. The
movie will be parsed once for this info then used for any further display.
|
If it's parsed once, I'd do that at the time it's created.
Cheers - Neil |
|
| Back to top |
|
 |
Craig
Guest
|
Posted:
Wed Aug 24, 2005 12:30 pm Post subject:
Re: access to script events? |
|
|
Hi Neil
| Quote: | No, unfortunately I think the only way to extract those is through the
encoder SDK, not through the player SDK. Is there any way you can
extract those script commands at the time you encode the files - say
drop them into an XML file for reading client-side ?
|
I figured as much - the problem is that I'm aiming to do this with movies
that I'm not encoding. Where I do encode them I have the info about the
script commands but the movies of most interest here are those created by
other applications..
| Quote: | Q : Why do you need to read the Script Commands from the media file ?
|
They are custom script commands and I want to setup the wrapper around the
movie differently based on the parameters within these custom script commands.
| Quote: |
If not, my plan is to set the play speed to fastforward (as fast as I can
get it) and then catch the script events I'm interested in that way.
I guess that'd work but of course the viewer would have to download
the entire file to get the command list. It would be rather a waste of
*their* bandwidth, I don't think I'd be too happy if I had to use that
solution.
|
This would only need to be done once - when setting up the movie for
display. After that I have the info I need. These movies aren't too large
in size so bandwidth shouldn't be an issue.
Thanks - Craig.
|
|
| Back to top |
|
 |
Craig
Guest
|
Posted:
Wed Aug 24, 2005 12:30 pm Post subject:
Re: access to script events? |
|
|
Hi Neil
| Quote: | No, unfortunately I think the only way to extract those is through the
encoder SDK, not through the player SDK. Is there any way you can
extract those script commands at the time you encode the files - say
drop them into an XML file for reading client-side ?
|
I figured as much - the problem is that I'm aiming to do this with movies
that I'm not encoding. Where I do encode them I have the info about the
script commands but the movies of most interest here are those created by
other applications..
| Quote: | Q : Why do you need to read the Script Commands from the media file ?
|
They are custom script commands and I want to setup the wrapper around the
movie differently based on the parameters within these custom script commands.
| Quote: |
If not, my plan is to set the play speed to fastforward (as fast as I can
get it) and then catch the script events I'm interested in that way.
I guess that'd work but of course the viewer would have to download
the entire file to get the command list. It would be rather a waste of
*their* bandwidth, I don't think I'd be too happy if I had to use that
solution.
|
This would only need to be done once - when setting up the movie for
display. After that I have the info I need. These movies aren't too large
in size so bandwidth shouldn't be an issue.
Thanks - Craig. |
|
| Back to top |
|
 |
|
|
|
|