Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET media player
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:
 
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 27-Jan-13 8:42am
Edited 27-Jan-13 8:49am
v3
Comments
Andreas Gieriet at 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 at 27-Jan-13 15:35pm
   
Same code but different questions.

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Hello
 
Have you tried that:
AxVLCPlugin21.shuttle(seconds)
 
The documentation is here:
http://wiki.videolan.org/ActiveX_Controls[^]
 
Valery.
  Permalink  
Comments
Andrew Smith at 27-Jan-13 17:39pm
   
That won't work
Error 1 'shuttle' is not a member of 'AxAXVLC.AxVLCPlugin2'.
valery possoz at 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 at 27-Jan-13 19:39pm
   
Thanks :-)

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

  Print Answers RSS
0 OriginalGriff 6,803
1 Sergey Alexandrovich Kryukov 6,377
2 DamithSL 5,421
3 Manas Bhardwaj 4,841
4 Maciej Los 4,330


Advertise | Privacy | Mobile
Web03 | 2.8.1411023.1 | Last Updated 27 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100