Encoder Automation Problem
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
Encoder Automation Problem

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





Posted: Wed Sep 08, 2004 3:21 pm    Post subject: Encoder Automation Problem Reply with quote

Hi,

I wrote some code in VB.NET using the encoder 9 SDK about a year ago to
encode an audio file at various bit rates. Recently I had to change the
way a few things work and I've hit upon an error which I can't seem to
resolve - The Encoder object doesn't Stop anymore.

It encodes a full file without problems but the runstate never changes to
STOPPED. The resulting file plays ok but there is no "length" to it, in
other words Media Player doesn't display the length and the progress bar
doesn't move while it's playing.

My code is:-

WME.AutoStop = True
WME.PrepareToEncode(True)
WME.Start()
Do

Loop While WME.RunState =
WMEncoderLib.WMENC_ENCODER_STATE.WMENC_ENCODER_RUNNING

VB.NET never exits the above loop, even when the encoder has completed
wrinting the output file. I seem to remember I hit upon this problem last
year when I first started developing it, but the above code has been working
for over a year now, and I can't think what I could have done to mess things
up.

Any ideas?

Thanks,
Russ

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