Re: Odd behavior with controls.current position in WMP 10 and 11 (



Neil,

Thanks for responding with the links and suggestions.

The files I am trying to work with are local files produced by WM Encoder 9
and I believe that they are automatically indexed and now I have added
timecodes.

I have used the snoop tool (neat tool) to look at the files and can seek
through the file. There are four attributes that could indicate that the
file is or is not indexed.

CanSkipForwards (and backwards) which are false
Seekable which is true
Strideable which is true.

I assume that the last two mean that it is indexed.

Looking at the other posts , they seem to confirm that there is a problem
from v10 onwards, but don't help with a fix.

Summary of my experience is .. Processes and files that worked well in WMP9
(and still work with that version) don't work with WMP 10 or 11.

Feels like a bug has been introduced in the WMP10 roll-out and not corrected
in WMP11.

I have changed my software to recognise that the seek may be to a keyframe
ahead of the time I want, but this change slows down the editting process.

If it is indeed a bug can you tell me how I get this into the microsoft
change system?

Thanks

Jim

"Neil Smith [MVP Digital Media]" wrote:

On Tue, 27 Feb 2007 01:46:10 -0800, Jim
<Jim@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

We have a system in which WMP is embedded as a control in an EXcel VBA form.
We then have code that seeks to points in videos to enable us to synchronise
videos to transcripts etc.


Is the video file held locally on the playback machine's hard disk ?
Or are you referencing a live stream from a media server ?


Controls("windowsmediaplayer2").controls.currentposition=newpos
to do this and has been working perfectly for years with WMP7 and 9. >
I upgraded this week to WMP11 and have not been able to get it to work since.

The file must be indexed in order to do these seeks. If you view the
file in WMSnoop, is it ? http://www.sliq.com/default.asp?view=wmsnoop


Using the simple controls.currentposition with a local file the video seeks
to a point between 1 and 5 seconds before the time requested. I am guessing
that it is seeking to teh key frame before the time.

I re-encoded the video using the latest WMP9 Codecs .. no difference in
result so ...


In fact it went titsup somewhere about WMP10.
Here are some previous references to this issue to read :

http://tinyurl.com/2z6wsz , http://tinyurl.com/yqxdq6

I Re-encoded the file and included timecodes and ..
using controls.currentPositionTimeCode I can report the current position
accuratly but cannot seek to a timecode. I have a line that is the
equiovalent of


It seems as a gross generalisation that the embedded (ActiveX) player
doesn't support currentPositionTimecode (SMPTE timecodes). You can
check this by using isAvailable("currentPosition") in the application
context.


newpos="[00000]00:08:53.07"
Controls("windowsmediaplayer2").controls.currentPositionTimecode=newpos

I have tested the availability of the control using
control.isAvailable("currentPositionTimeCode") and this generates an error
..Invalid procedure call or argument.


Yup, as noted. I can check the regression behaviour some day when I
have a few hours spare to create an SMTPE indexed file and reboot
several machines into different environments ;-)

It might not happen this side of the MVP summit mid March, sorry.

HTH
Cheers - Neil
------------------------------------------------
Digital Media MVP : 2004-2007
http://mvp.support.microsoft.com/mvpfaqs

.



Relevant Pages

  • Re: Playing videos online with media player
    ... What Zach said is if you have Vista, you may now find that when trying ... been trying to view these videos say that they require WMP and that I have ... It's not obvious these videos *must* be media player from your ... Digital Media MVP: 2004-2008 ...
    (microsoft.public.windowsmedia.player.web)
  • Re: DV to mpeg application?
    ... When connected to an external monitor, ... GeForce Fx Go5200) can be set to play videos full screen on the external ... Digital Media MVP: 2004-2006 ...
    (rec.video.production)
  • Re: windows media player wont open videos
    ... It doesn't play here, either, although it uses standard WMA and WMV ... However that returns a HTML and the player is expecting ... I don't have time to search the site for whicever videos page you're ... Digital Media MVP: 2004-2007 ...
    (microsoft.public.windowsmedia)
  • Re: Instant Web Publishing Problem FMP9v3- No photos showing.
    ... Now they work fine, as does IWP. ... exploring storing the videos on my ISP and referencing them from my ... redirect the users browser to the ISP site. ...
    (comp.databases.filemaker)
  • Re: Odd behavior with controls.current position in WMP 10 and 11 (not
    ... We then have code that seeks to points in videos to enable us to synchronise ... doesn't support currentPositionTimecode (SMPTE timecodes). ... have a few hours spare to create an SMTPE indexed file and reboot ... Digital Media MVP: 2004-2007 ...
    (microsoft.public.windowsmedia.player)