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

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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: Odd behavior with controls.current position in WMP 10 and 11 (
    ... We then have code that seeks to points in videos to enable us to synchronise ... Or are you referencing a live stream from a media server? ... doesn't support currentPositionTimecode (SMPTE timecodes). ... Digital Media MVP: 2004-2007 ...
    (microsoft.public.windowsmedia.player)
  • 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)