Click here to Skip to main content
15,886,780 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Basically what I'm trying to accomplish is. I want to be able to type a particular time into an input box and for the vlc media player within VB.NET to play from that point, but I don't know how.

Code so far:

VB
Public Class Form1
        Dim Paused As Boolean = False
        Dim Started As Boolean = False
        Dim PlayedSecond As Boolean = True
        Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
            PlayedSecond = False
            AxVLCPlugin21.playlist.items.clear()
            AxVLCPlugin21.playlist.add("https://vula.uct.ac.za/access/content/group/fe879ca4-927a-4fca-9cc9-33b12c348b37/vids/Lessig-ItIsAboutTimeGettingOurValuesAroundCopyright522.flv")
            AxVLCPlugin21.playlist.play()
            Started = True
        End Sub

        Sub playsecond()
                AxVLCPlugin21.playlist.items.clear()
                AxVLCPlugin21.playlist.add("http://lsta2011.wikispaces.com/file/view/Rogue%20Waves.mp4")
                AxVLCPlugin21.playlist.play()
                PlayedSecond = True
                Started = False
        End Sub

        Private Sub AxVLCPlugin21_pause(sender As Object, e As EventArgs) Handles AxVLCPlugin21.pause
                Paused = True
        End Sub

        Private Sub IsFinished_Tick(sender As Object, e As EventArgs) Handles IsFinished.Tick
            If Not AxVLCPlugin21.playlist.isPlaying And Paused = False And Started = True And PlayedSecond = False Then
                playsecond()
                Started = True
            End If
        End Sub

        Private Sub AxVLCPlugin21_play(sender As Object, e As EventArgs) Handles AxVLCPlugin21.play
            Paused = False
        End Sub
    End Class
Posted
Updated 27-Jan-13 7:49am
v3
Comments
Andreas Gieriet 27-Jan-13 14:39pm    
You have posted that very same code with a slightly similar question in another post just a few hours ago.
Seems that your question is not appealing enough to attract enough CP experts. If you want to improve your original question, please do it there and refrain from posting the question a second time. This is just annoying.
Thanks
Andi
Andrew Smith 27-Jan-13 15:35pm    
Same code but different questions.

1 solution

Hello

Have you tried that:
VB
AxVLCPlugin21.shuttle(seconds)


The documentation is here:
http://wiki.videolan.org/ActiveX_Controls[^]

Valery.
 
Share this answer
 
Comments
Andrew Smith 27-Jan-13 17:39pm    
That won't work
Error 1 'shuttle' is not a member of 'AxAXVLC.AxVLCPlugin2'.
Valery Possoz 27-Jan-13 18:56pm    
Oops! Sorry... My answer was for the now deprecated V1 ActiveX. I did not realise you are using the V2 of the ActiveX.
With Version2 all you need to do is

AxVLCPlugin21.input.Time = milliseconds

Documentation is here: http://wiki.videolan.org/Documentation:WebPlugin
Andrew Smith 27-Jan-13 19:39pm    
Thanks :-)
Member 14771296 13-Mar-20 13:51pm    
thnks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900