input.Time
Posted: 31 Mar 2009 03:11
I'm currently developing in VB .Net and have a timer event set to iterate to the next item in the play list after a given time. I'd like to specify a random point in the video being played to start at after it changes to the next item in the play list. My code from inside the event is as follows:
(vlcplugin is the name of my object. This event is set to fire every second, time is initially set to 0 on form load)
The event does trigger and the next item is played when the proper condition is met, however the input.Time command is never executed. Each video always starts at the beginning. If I use input.Time = somenumber after the vlcplugin.playlist.play() command, it will work. Any suggestions? And yes, all of my videos are longer than 20 seconds so I'm not trying to go outside of the bounds of my file.
Code: Select all
time += 1
If time = 30 Then
vlcplugin.playlist.next()
vlcplugin.input.Time = 20000
time = 0
End If
The event does trigger and the next item is played when the proper condition is met, however the input.Time command is never executed. Each video always starts at the beginning. If I use input.Time = somenumber after the vlcplugin.playlist.play() command, it will work. Any suggestions? And yes, all of my videos are longer than 20 seconds so I'm not trying to go outside of the bounds of my file.