SetInput Filename with Loop
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
SetInput Filename with Loop

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





Posted: Fri Nov 18, 2005 5:30 pm    Post subject: SetInput Filename with Loop Reply with quote

Is it possible to encode from a video filename (.avi or .mpg) in a
loop?
I'm currently broadcasting the contents from my webcamera, from a
screencapture or from a movie filename... and I would like to know if
it's possible to get the encoder loop the movie when it reaches the
end.

-----------------------------------------------------------------
Here's my sample code:
//Identify the source files to encode
if(sourceVideoIndex==0)SrcVid.SetInput("Default_Video_Device","Device","");
else
if(sourceVideoIndex==1)SrcVid.SetInput("ScreenCapture1","ScreenCap","");
else SrcVid.SetInput(inputFilename,"",""); <----- Is it possible to
loop?
//SrcAud.SetInput("Default_Audio_Device","Device","");

Back to top
Chris P. [MVP]
Guest





Posted: Fri Nov 18, 2005 9:30 pm    Post subject: Re: SetInput Filename with Loop Reply with quote

On 18 Nov 2005 07:19:49 -0800, Nuno Magalhaes wrote:

Quote:
Is it possible to encode from a video filename (.avi or .mpg) in a
loop?
I'm currently broadcasting the contents from my webcamera, from a
screencapture or from a movie filename... and I would like to know if
it's possible to get the encoder loop the movie when it reaches the
end.

IWMEncSource::put_Repeat() in code.
From the GUI just select At End: "Loop".
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