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: Wed, 18 Jun 2008 05:16:44 -0700 (PDT),    group: microsoft.public.windowsmedia.player.web        back       


controls.step does not work !   
Hi,
  I'm embedding Media Player in a web page, adding controls to move
fwd and reverse frame by frame.
The media is a wmv9 streaming from a W2003 Server host in my lan.

My need is select a specific frame, so I put the control in pause,
then I'd like move +-1 frame to choose the picture.

I try to use the step method of obj controls but it does not work (it
move the stream to begin)...
So I try to do it 'by hand' using the currentPosition (that is r/w),
but it does not refresh the video !
If I move to a specific location and then I go to play mode again, it
correctly runs from my position.

Reading on old posts, I checked that my file was created with
index.... as was...

Any idea ?

Regards,
  max
date: Wed, 18 Jun 2008 05:16:44 -0700 (PDT)   author:   unknown

Re: controls.step does not work !   
On Wed, 18 Jun 2008 05:16:44 -0700 (PDT), max.mazzeschi@gmail.com
wrote:

>Hi,
>  I'm embedding Media Player in a web page, adding controls to move
>fwd and reverse frame by frame.
>The media is a wmv9 streaming from a W2003 Server host in my lan.
>
>My need is select a specific frame, so I put the control in pause,
>then I'd like move +-1 frame to choose the picture.
>
>I try to use the step method of obj controls but it does not work (it
>move the stream to begin)...
>So I try to do it 'by hand' using the currentPosition (that is r/w),
>but it does not refresh the video !
>If I move to a specific location and then I go to play mode again, it
>correctly runs from my position.
>
>Reading on old posts, I checked that my file was created with
>index.... as was...


OK that's a good first step. 

However there are several more places where this can break down.

... If you're referencing your content using an ASX playlist on the
client side, and the playlist has an entry with the element

<entry clientSkip="no" />

... If the server side is running this content from a playlist, and
the element for the media you're playing has the noSkip attribute set

<media noSkip="true" />

... then your viewer won't be able to seek or skip past the content
until it's played


If your problem is specifically frame level access, WMP doesn't
guarantee you can pause on a particular frame. This can be affected by
keyframe spacing and content type (though from WMS the only content
type usefully available is ASF / WMV, so it should work).

You may also have embedded the player without using
player.settings.setMode("showFrame", true);

In addition, your description of stream content moving to the
beginning (and presumably, stopping playback) sounds like your
javascript is returning boolean "true".

Depending on how the page is authored (eg by using an <a
href="javascript:" /> link) , this could be forcing a page unload and
of course restarting the player when it does so, if it's set to
autoPlay.

You can check using client side script if the player is able to do the
Step feature, by querying 

player.settings.isAvailable("setMode");

then you can check if the actual step command is available with

player.controls.isAvailable("step");


HTH
Cheers - Neil



------------------------------------------------
Digital Media MVP : 2004-2008
http://mvp.support.microsoft.com/mvpfaqs
date: Wed, 18 Jun 2008 19:12:19 GMT   author:   Neil Smith [MVP Digital Media]

Re: controls.step does not work !   
Thanks Neil,
  for all the details !
I've two different needs, so I use the mms:// for a single file to
select the segment, then I create a ASX file to show the segments in
sequence.
Is not a problem about skip/noskip...
   I've done some more test, using different configuration in the
media encoder, but I was not able to generate a content with frame
access available.
In all my tests the setMode settings is available, but the 'step'
feature no....
Do you known where I can get a .wme (windows media encoder session
file) example to try to understand what's is missing ?
Regards
  Massimiliano

On 18 Jun, 21:12, "Neil Smith [MVP Digital Media]" 
wrote:
> On Wed, 18 Jun 2008 05:16:44 -0700 (PDT), max.mazzes...@gmail.com
> wrote:
>
>
>
>
>
> >Hi,
> >  I'm embedding Media Player in a web page, adding controls to move
> >fwd and reverse frame by frame.
> >The media is a wmv9 streaming from a W2003 Server host in my lan.
>
> >My need is select a specific frame, so I put the control in pause,
> >then I'd like move +1 frame to choose the picture.
>
> >I try to use the step method of obj controls but it does not work (it
> >move the stream to begin)...
> >So I try to do it 'by hand' using the currentPosition (that is r/w),
> >but it does not refresh the video !
> >If I move to a specific location and then I go to play mode again, it
> >correctly runs from my position.
>
> >Reading on old posts, I checked that my file was created with
> >index.... as was...
>
> OK that's a good first step.
>
> However there are several more places where this can break down.
>
> ... If you're referencing your content using an ASX playlist on the
> client side, and the playlist has an entry with the element
>
> <entry clientSkip="no" />
>
> ... If the server side is running this content from a playlist, and
> the element for the media you're playing has the noSkip attribute set
>
> <media noSkip="true" />
>
> ... then your viewer won't be able to seek or skip past the content
> until it's played
>
> If your problem is specifically frame level access, WMP doesn't
> guarantee you can pause on a particular frame. This can be affected by
> keyframe spacing and content type (though from WMS the only content
> type usefully available is ASF / WMV, so it should work).
>
> You may also have embedded the player without using
> player.settings.setMode("showFrame", true);
>
> In addition, your description of stream content moving to the
> beginning (and presumably, stopping playback) sounds like your
> javascript is returning boolean "true".
>
> Depending on how the page is authored (eg by using an <a
> href="javascript:" /> link) , this could be forcing a page unload and
> of course restarting the player when it does so, if it's set to
> autoPlay.
>
> You can check using client side script if the player is able to do the
> Step feature, by querying
>
> player.settings.isAvailable("setMode");
>
> then you can check if the actual step command is available with
>
> player.controls.isAvailable("step");
>
> HTH
> Cheers - Neil
>
> ------------------------------------------------
> Digital Media MVP : 2004-2008http://mvp.support.microsoft.com/mvpfaqs- Hide quoted text -
>
> - Show quoted text -
date: Mon, 23 Jun 2008 02:39:20 -0700 (PDT)   author:   unknown

Re: controls.step does not work !   
I don't think the session file will help much other than to provide
the keyframe rate of the encoded file. You can just save the pfoeil
though - which is the encoding settings without hardware / file source
information.

In WM Encoder, open your profile (skipping the Wizard interface),
click the properties button, then Compression tab, and click the Edit
button. 

From there, click Export... which will save the compression profile
settings as a .prx file : You would normally see some of the
predefined ones listed at that point, which should be installed in the
WMEncoder/Profiles directory wherever WME has been installed.

Alternatively, you can save the whole session from WME as a .wme file
type, by going to the usual File -> Save As dialog from the encoder
menu

If you need to actually inspect a previously encoded file to see where
the keyframes sit, and where the I (intermediate) / B (backward)
frames are, install and run Sliq WMSnoop and drag the WMV file onto
the snoop tool : http://www.sliq.com/default.asp?view=wmsnoop

HTH
Cheers - Neil


On Mon, 23 Jun 2008 02:39:20 -0700 (PDT), max.mazzeschi@gmail.com
wrote:

>Thanks Neil,
>  for all the details !
>I've two different needs, so I use the mms:// for a single file to
>select the segment, then I create a ASX file to show the segments in
>sequence.
>Is not a problem about skip/noskip...
>   I've done some more test, using different configuration in the
>media encoder, but I was not able to generate a content with frame
>access available.
>In all my tests the setMode settings is available, but the 'step'
>feature no....
>Do you known where I can get a .wme (windows media encoder session
>file) example to try to understand what's is missing ?
>Regards
>  Massimiliano
>
>On 18 Jun, 21:12, "Neil Smith [MVP Digital Media]" 
>wrote:
>> On Wed, 18 Jun 2008 05:16:44 -0700 (PDT), max.mazzes...@gmail.com
>> wrote:
>>
>>
>>
>>
>>
>> >Hi,
>> >  I'm embedding Media Player in a web page, adding controls to move
>> >fwd and reverse frame by frame.
>> >The media is a wmv9 streaming from a W2003 Server host in my lan.
>>
>> >My need is select a specific frame, so I put the control in pause,
>> >then I'd like move +-1 frame to choose the picture.
>>
>> >I try to use the step method of obj controls but it does not work (it
>> >move the stream to begin)...
>> >So I try to do it 'by hand' using the currentPosition (that is r/w),
>> >but it does not refresh the video !
>> >If I move to a specific location and then I go to play mode again, it
>> >correctly runs from my position.
>>
>> >Reading on old posts, I checked that my file was created with
>> >index.... as was...
>>
>> OK that's a good first step.
>>
>> However there are several more places where this can break down.
>>
>> ... If you're referencing your content using an ASX playlist on the
>> client side, and the playlist has an entry with the element
>>
>> <entry clientSkip="no" />
>>
>> ... If the server side is running this content from a playlist, and
>> the element for the media you're playing has the noSkip attribute set
>>
>> <media noSkip="true" />
>>
>> ... then your viewer won't be able to seek or skip past the content
>> until it's played
>>
>> If your problem is specifically frame level access, WMP doesn't
>> guarantee you can pause on a particular frame. This can be affected by
>> keyframe spacing and content type (though from WMS the only content
>> type usefully available is ASF / WMV, so it should work).
>>
>> You may also have embedded the player without using
>> player.settings.setMode("showFrame", true);
>>
>> In addition, your description of stream content moving to the
>> beginning (and presumably, stopping playback) sounds like your
>> javascript is returning boolean "true".
>>
>> Depending on how the page is authored (eg by using an <a
>> href="javascript:" /> link) , this could be forcing a page unload and
>> of course restarting the player when it does so, if it's set to
>> autoPlay.
>>
>> You can check using client side script if the player is able to do the
>> Step feature, by querying
>>
>> player.settings.isAvailable("setMode");
>>
>> then you can check if the actual step command is available with
>>
>> player.controls.isAvailable("step");
>>
>> HTH
>> Cheers - Neil
>>
>> ------------------------------------------------
>> Digital Media MVP : 2004-2008http://mvp.support.microsoft.com/mvpfaqs- Hide quoted text -
>>
>> - Show quoted text -
------------------------------------------------
Digital Media MVP : 2004-2008
http://mvp.support.microsoft.com/mvpfaqs
date: Mon, 23 Jun 2008 21:16:02 GMT   author:   Neil Smith [MVP Digital Media]

Re: controls.step does not work !   
Hi !
  first: I found a bug in my javascript... after using the step()
function I was setting the player.controls.currentPosition to a wrong
pos... I remove it...
  second: using the mms:// protocol the step is never available (for
me...), but if I use the http:// protocol step() is available and
works correctly... same file

mms://MyTest/file1.wmv does not work
http://localhost/MyTest/file1.wmv IT WORKS...

I'd like to understand better this behaviour...

max


On 23 Jun, 23:16, "Neil Smith [MVP Digital Media]" 
wrote:
> I don't think the session file will help much other than to provide
> the keyframe rate of the encoded file. You can just save the pfoeil
> though - which is the encoding settings without hardware / file source
> information.
>
> In WM Encoder, open your profile (skipping the Wizard interface),
> click the properties button, then Compression tab, and click the Edit
> button.
>
> From there, click Export... which will save the compression profile
> settings as a .prx file : You would normally see some of the
> predefined ones listed at that point, which should be installed in the
> WMEncoder/Profiles directory wherever WME has been installed.
>
> Alternatively, you can save the whole session from WME as a .wme file
> type, by going to the usual File -> Save As dialog from the encoder
> menu
>
> If you need to actually inspect a previously encoded file to see where
> the keyframes sit, and where the I (intermediate) / B (backward)
> frames are, install and run Sliq WMSnoop and drag the WMV file onto
> the snoop tool :http://www.sliq.com/default.asp?view=wmsnoop
>
> HTH
> Cheers - Neil
>
> On Mon, 23 Jun 2008 02:39:20 -0700 (PDT), max.mazzes...@gmail.com
> wrote:
>
>
>
>
>
> >Thanks Neil,
> >  for all the details !
> >I've two different needs, so I use the mms:// for a single file to
> >select the segment, then I create a ASX file to show the segments in
> >sequence.
> >Is not a problem about skip/noskip...
> >   I've done some more test, using different configuration in the
> >media encoder, but I was not able to generate a content with frame
> >access available.
> >In all my tests the setMode settings is available, but the 'step'
> >feature no....
> >Do you known where I can get a .wme (windows media encoder session
> >file) example to try to understand what's is missing ?
> >Regards
> >  Massimiliano
>
> >On 18 Jun, 21:12, "Neil Smith [MVP Digital Media]" 
> >wrote:
> >> On Wed, 18 Jun 2008 05:16:44 -0700 (PDT), max.mazzes...@gmail.com
> >> wrote:
>
> >> >Hi,
> >> >  I'm embedding Media Player in a web page, adding controls to move
> >> >fwd and reverse frame by frame.
> >> >The media is a wmv9 streaming from a W2003 Server host in my lan.
>
> >> >My need is select a specific frame, so I put the control in pause,
> >> >then I'd like move +1 frame to choose the picture.
>
> >> >I try to use the step method of obj controls but it does not work (it
> >> >move the stream to begin)...
> >> >So I try to do it 'by hand' using the currentPosition (that is r/w),
> >> >but it does not refresh the video !
> >> >If I move to a specific location and then I go to play mode again, it
> >> >correctly runs from my position.
>
> >> >Reading on old posts, I checked that my file was created with
> >> >index.... as was...
>
> >> OK that's a good first step.
>
> >> However there are several more places where this can break down.
>
> >> ... If you're referencing your content using an ASX playlist on the
> >> client side, and the playlist has an entry with the element
>
> >> <entry clientSkip="no" />
>
> >> ... If the server side is running this content from a playlist, and
> >> the element for the media you're playing has the noSkip attribute set
>
> >> <media noSkip="true" />
>
> >> ... then your viewer won't be able to seek or skip past the content
> >> until it's played
>
> >> If your problem is specifically frame level access, WMP doesn't
> >> guarantee you can pause on a particular frame. This can be affected by
> >> keyframe spacing and content type (though from WMS the only content
> >> type usefully available is ASF / WMV, so it should work).
>
> >> You may also have embedded the player without using
> >> player.settings.setMode("showFrame", true);
>
> >> In addition, your description of stream content moving to the
> >> beginning (and presumably, stopping playback) sounds like your
> >> javascript is returning boolean "true".
>
> >> Depending on how the page is authored (eg by using an <a
> >> href="javascript:" /> link) , this could be forcing a page unload and
> >> of course restarting the player when it does so, if it's set to
> >> autoPlay.
>
> >> You can check using client side script if the player is able to do the
> >> Step feature, by querying
>
> >> player.settings.isAvailable("setMode");
>
> >> then you can check if the actual step command is available with
>
> >> player.controls.isAvailable("step");
>
> >> HTH
> >> Cheers - Neil
>
> >> ------------------------------------------------
> >> Digital Media MVP : 2004-2008http://mvp.support.microsoft.com/mvpfaqs-Hide quoted text -
>
> >> - Show quoted text -
>
> ------------------------------------------------
> Digital Media MVP : 2004-2008http://mvp.support.microsoft.com/mvpfaqs- Hide quoted text -
>
> - Show quoted text -
date: Tue, 24 Jun 2008 08:30:24 -0700 (PDT)   author:   unknown

Re: controls.step does not work !   
Vary the file from your HTTP server (e.g. by adding a query string) or
delete the browser cache every time you load the page (or, set the web
server to expireByType for WMV files immediately). 

It's probably playing back from the local hard drive, where you should
always be able to use step(), rather than from the web server - the
steps above would isolate that case.

Alternatively, if you pull up player advanced statistics, you'd be
able to see Protocol:CACHE rather than Protocol:HTTP 

HTH
Cheers - Neil


On Tue, 24 Jun 2008 08:30:24 -0700 (PDT), max.mazzeschi@gmail.com
wrote:

>Hi !
>  first: I found a bug in my javascript... after using the step()
>function I was setting the player.controls.currentPosition to a wrong
>pos... I remove it...
>  second: using the mms:// protocol the step is never available (for
>me...), but if I use the http:// protocol step() is available and
>works correctly... same file
>
>mms://MyTest/file1.wmv does not work
>http://localhost/MyTest/file1.wmv IT WORKS...
>
>I'd like to understand better this behaviour...
>
>max
>
>
>On 23 Jun, 23:16, "Neil Smith [MVP Digital Media]" 
>wrote:
>> I don't think the session file will help much other than to provide
>> the keyframe rate of the encoded file. You can just save the pfoeil
>> though - which is the encoding settings without hardware / file source
>> information.
>>
>> In WM Encoder, open your profile (skipping the Wizard interface),
>> click the properties button, then Compression tab, and click the Edit
>> button.
>>
>> From there, click Export... which will save the compression profile
>> settings as a .prx file : You would normally see some of the
>> predefined ones listed at that point, which should be installed in the
>> WMEncoder/Profiles directory wherever WME has been installed.
>>
>> Alternatively, you can save the whole session from WME as a .wme file
>> type, by going to the usual File -> Save As dialog from the encoder
>> menu
>>
>> If you need to actually inspect a previously encoded file to see where
>> the keyframes sit, and where the I (intermediate) / B (backward)
>> frames are, install and run Sliq WMSnoop and drag the WMV file onto
>> the snoop tool :http://www.sliq.com/default.asp?view=wmsnoop
>>
>> HTH
>> Cheers - Neil
>>
>> On Mon, 23 Jun 2008 02:39:20 -0700 (PDT), max.mazzes...@gmail.com
>> wrote:
>>
>>
>>
>>
>>
>> >Thanks Neil,
>> >  for all the details !
>> >I've two different needs, so I use the mms:// for a single file to
>> >select the segment, then I create a ASX file to show the segments in
>> >sequence.
>> >Is not a problem about skip/noskip...
>> >   I've done some more test, using different configuration in the
>> >media encoder, but I was not able to generate a content with frame
>> >access available.
>> >In all my tests the setMode settings is available, but the 'step'
>> >feature no....
>> >Do you known where I can get a .wme (windows media encoder session
>> >file) example to try to understand what's is missing ?
>> >Regards
>> >  Massimiliano
>>
>> >On 18 Jun, 21:12, "Neil Smith [MVP Digital Media]" 
>> >wrote:
>> >> On Wed, 18 Jun 2008 05:16:44 -0700 (PDT), max.mazzes...@gmail.com
>> >> wrote:
>>
>> >> >Hi,
>> >> >  I'm embedding Media Player in a web page, adding controls to move
>> >> >fwd and reverse frame by frame.
>> >> >The media is a wmv9 streaming from a W2003 Server host in my lan.
>>
>> >> >My need is select a specific frame, so I put the control in pause,
>> >> >then I'd like move +-1 frame to choose the picture.
>>
>> >> >I try to use the step method of obj controls but it does not work (it
>> >> >move the stream to begin)...
>> >> >So I try to do it 'by hand' using the currentPosition (that is r/w),
>> >> >but it does not refresh the video !
>> >> >If I move to a specific location and then I go to play mode again, it
>> >> >correctly runs from my position.
>>
>> >> >Reading on old posts, I checked that my file was created with
>> >> >index.... as was...
>>
>> >> OK that's a good first step.
>>
>> >> However there are several more places where this can break down.
>>
>> >> ... If you're referencing your content using an ASX playlist on the
>> >> client side, and the playlist has an entry with the element
>>
>> >> <entry clientSkip="no" />
>>
>> >> ... If the server side is running this content from a playlist, and
>> >> the element for the media you're playing has the noSkip attribute set
>>
>> >> <media noSkip="true" />
>>
>> >> ... then your viewer won't be able to seek or skip past the content
>> >> until it's played
>>
>> >> If your problem is specifically frame level access, WMP doesn't
>> >> guarantee you can pause on a particular frame. This can be affected by
>> >> keyframe spacing and content type (though from WMS the only content
>> >> type usefully available is ASF / WMV, so it should work).
>>
>> >> You may also have embedded the player without using
>> >> player.settings.setMode("showFrame", true);
>>
>> >> In addition, your description of stream content moving to the
>> >> beginning (and presumably, stopping playback) sounds like your
>> >> javascript is returning boolean "true".
>>
>> >> Depending on how the page is authored (eg by using an <a
>> >> href="javascript:" /> link) , this could be forcing a page unload and
>> >> of course restarting the player when it does so, if it's set to
>> >> autoPlay.
>>
>> >> You can check using client side script if the player is able to do the
>> >> Step feature, by querying
>>
>> >> player.settings.isAvailable("setMode");
>>
>> >> then you can check if the actual step command is available with
>>
>> >> player.controls.isAvailable("step");
>>
>> >> HTH
>> >> Cheers - Neil
>>
>> >> ------------------------------------------------
>> >> Digital Media MVP : 2004-2008http://mvp.support.microsoft.com/mvpfaqs-Hide quoted text -
>>
>> >> - Show quoted text -
>>
>> ------------------------------------------------
>> Digital Media MVP : 2004-2008http://mvp.support.microsoft.com/mvpfaqs- Hide quoted text -
>>
>> - Show quoted text -
------------------------------------------------
Digital Media MVP : 2004-2008
http://mvp.support.microsoft.com/mvpfaqs
date: Tue, 24 Jun 2008 19:34:47 GMT   author:   Neil Smith [MVP Digital Media]

Google
 
Web ureader.com


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