Page 1 of 1

[ActiveX] togglePause doesn't work anymore

Posted: 09 Jun 2010 16:10
by djsander
I've upgraded my .NET project to VLC 1.1.0 RC1 ActiveX, since this release togglePause doesn't work anymore.

player.AutoPlay = False
player.playlist.add(file, "", ":no-video-title-show :codec avcodec")
player.playlist.playItem(0) //Used for preloading the movie

While Not player.input.state.Equals(4)
writeToLog("Trying")
player.playlist.togglePause()
End While

When I run the code it will log "Trying" a couple of times (I assume that it really updates the play state) however, it doesn't pause the player. It does exit the while loop, but still with VLC playing.

It works in the current stable version of VLC, but I want to upgrade asap for using the deinterlace functionality.

Sander

Re: [ActiveX] togglePause doesn't work anymore

Posted: 09 Jun 2010 17:36
by Jean-Baptiste Kempf
why not directly pause?

Re: [ActiveX] togglePause doesn't work anymore

Posted: 09 Jun 2010 18:02
by djsander
How?

Re: [ActiveX] togglePause doesn't work anymore

Posted: 09 Jun 2010 20:51
by djsander
A big movie is still loading when togglePause immediately after play, then it fails.
That's why a while loop.