Vegas 11 - Player

NicoM wrote on 1/21/2014, 3:18 AM
Hello,

I need to start play back from an application extension.
vegas.Transport.Play();

It works well but if I stop playback from main GUI, I can not start play back that way again.
Video player push button appear checked, timeline is moved to '00:00:00,000', and play back never starts.

I don't use:
vegas.Transport.PlayFromStart();


Did you ever get this behavior ?

Thanks

Comments

NicoM wrote on 1/28/2014, 11:13 AM
Hello,

Really need help.
In practice I pilot the player with a 'System.Windows.Forms.Timer'.

I have a communication system which tells if playback start or stop are requested.
At each Tick I check this. It looks like that:

private void Tick(object sender, EventArgs e)
{
if (_isPlayRequested)
{
_vegas.Transport.Play();
_isPlayRequested = false;
}
if (_isStopRequested)
{
_vegas.Transport.Stop();
_isStopRequested = false;
}
}


This code works well most of the time; BUT, if end user has pressed stop button in player UI before, I cannot start playback that way.
Timeline cursor moves to '00:00:00,000' and playback never starts.

I tried to start playback with other ways, calling scripts, send space press key, even tried send windows messages.
I didn't find the correct way.

What should I do ?
Thanks
NicoM wrote on 1/29/2014, 12:17 PM
Hello,

I found the origin of the problem, we must ensure that Vegas has focus, and so it works all the time.

Thanks