Jump to markers
WMPTalk.com Forum Index WMPTalk.com
Discuss Windows Media Player
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web wmptalk.com
Jump to markers

 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> Encoders
Author Message
dougyfish@yahoo.com
Guest





Posted: Wed Oct 06, 2004 2:30 am    Post subject: Jump to markers Reply with quote

I can use the markers and script commands to trigger HTML
in a different frame but how do I use links in one frame
to make a video playing in another frame to jump to
different markers or timecodes?

Thanks,
Doug

Back to top
Neil Smith [MVP Digital M
Guest





Posted: Wed Oct 06, 2004 4:06 pm    Post subject: Re: Jump to markers Reply with quote

I think you're going to need to write some javascript to do this.

All it has to do is to pass the marker name or timecode to the
embedded player object. To do this, you need to be comfortable with
cross-frame scripting or to use javascript which is global for your
frameset. www.irt.org has lots of tutorials on this, so I won't
duplicate their work. You might need the following though :

Lets assume you called the media player's object ID 'MediaPlayer'

function setNewMarker(whichMarker) {
if (isNaN(parseInt(whichMarker)) {
alert("Markers may only be numeric");
return false;
}
var media=document.getElementById("MediaPlayer");
media.controls.currentMarker=whichMarker;
}

function setNewPlayerPosition(whichPosition) {
if(isNaN(parseInt(whichPosition)) {
alert("Position must be in milliseconds");
return false;
}
var media=document.getElementById("MediaPlayer");
media.controls.currentPosition=whichPosition;
}

So now, as the action of the links in the 'other' frame, you need to
call the javascript functions available to the frame with media player
in it. I'll leave this as an exercise for you, shall I ;-))

Hope that helps,
Cheers - Neil

On Tue, 5 Oct 2004 15:30:31 -0700, "dougyfish@yahoo.com"
<anonymous@discussions.microsoft.com> wrote:

Quote:
I can use the markers and script commands to trigger HTML
in a different frame but how do I use links in one frame
to make a video playing in another frame to jump to
different markers or timecodes?

Thanks,
Doug
Back to top
Guest






Posted: Thu Oct 07, 2004 12:28 am    Post subject: Re: Jump to markers Reply with quote

Thanks for this. It gives me a good path to start
experimenting with.

Doug


Quote:
-----Original Message-----
I think you're going to need to write some javascript to
do this.

All it has to do is to pass the marker name or timecode
to the
embedded player object. To do this, you need to be
comfortable with
cross-frame scripting or to use javascript which is
global for your
frameset. www.irt.org has lots of tutorials on this, so
I won't
duplicate their work. You might need the following
though :

Lets assume you called the media player's object
ID 'MediaPlayer'

function setNewMarker(whichMarker) {
if (isNaN(parseInt(whichMarker)) {
alert("Markers may only be numeric");
return false;
}
var media=document.getElementById("MediaPlayer");

media.controls.currentMarker=whichMarker;
}

function setNewPlayerPosition(whichPosition) {
if(isNaN(parseInt(whichPosition)) {
alert("Position must be in milliseconds");
return false;
}
var media=document.getElementById("MediaPlayer");

media.controls.currentPosition=whichPosition;
}

So now, as the action of the links in the 'other' frame,
you need to
call the javascript functions available to the frame
with media player
in it. I'll leave this as an exercise for you, shall I ;-
))

Hope that helps,
Cheers - Neil

On Tue, 5 Oct 2004 15:30:31 -0700, "dougyfish@yahoo.com"
anonymous@discussions.microsoft.com> wrote:

I can use the markers and script commands to trigger
HTML
in a different frame but how do I use links in one
frame
to make a video playing in another frame to jump to
different markers or timecodes?

Thanks,
Doug

.


Back to top
Neil Smith [MVP Digital M
Guest





Posted: Thu Oct 07, 2004 10:10 pm    Post subject: Re: Jump to markers Reply with quote

Cool.

Did you spot the missing end-bracket on both lines
if (isNaN(parseInt(whichMarker)) ?

Cheers - Neil

On Wed, 6 Oct 2004 13:28:07 -0700,
<anonymous@discussions.microsoft.com> wrote:

Quote:
Thanks for this. It gives me a good path to start
experimenting with.

Doug


-----Original Message-----
I think you're going to need to write some javascript to
do this.

All it has to do is to pass the marker name or timecode
to the
embedded player object. To do this, you need to be
comfortable with
cross-frame scripting or to use javascript which is
global for your
frameset. www.irt.org has lots of tutorials on this, so
I won't
duplicate their work. You might need the following
though :

Lets assume you called the media player's object
ID 'MediaPlayer'

function setNewMarker(whichMarker) {
if (isNaN(parseInt(whichMarker)) {
alert("Markers may only be numeric");
return false;
}
var media=document.getElementById("MediaPlayer");

media.controls.currentMarker=whichMarker;
}

function setNewPlayerPosition(whichPosition) {
if(isNaN(parseInt(whichPosition)) {
alert("Position must be in milliseconds");
return false;
}
var media=document.getElementById("MediaPlayer");

media.controls.currentPosition=whichPosition;
}

So now, as the action of the links in the 'other' frame,
you need to
call the javascript functions available to the frame
with media player
in it. I'll leave this as an exercise for you, shall I ;-
))

Hope that helps,
Cheers - Neil

On Tue, 5 Oct 2004 15:30:31 -0700, "dougyfish@yahoo.com"
anonymous@discussions.microsoft.com> wrote:

I can use the markers and script commands to trigger
HTML
in a different frame but how do I use links in one
frame
to make a video playing in another frame to jump to
different markers or timecodes?

Thanks,
Doug

.
Back to top
 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> Encoders All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Microsoft Office Forum New Topics
Powered by phpBB