miércoles, 19 de noviembre de 2014

sábado, 4 de enero de 2014

Insertar reproductor VLC en proyecto Windows form Visual Studio vb.net



Hay que añadir el control VLC en el tabulador de herramientas por componentes COM, elegir los 2 plugins del VLC




Ejemplo del boton 1 que me reproduce un archivo ubicado en determinada ruta


Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        'boton play 1
        AxVLCPlugin21.playlist.items.clear()
        AxVLCPlugin21.playlist.add("file:///J:\COTAIBPROJECT\FLV\01_Video_1.flv")
        AxVLCPlugin21.playlist.play()

    End Sub


Boton 2 que  me reproduce otro archivo
    Private Sub Button2_Click_1(sender As Object, e As EventArgs) Handles Button2.Click
        'boton play 2
        AxVLCPlugin21.playlist.items.clear()
        AxVLCPlugin21.playlist.add("file:///E:/EnviarCorreo/TestimonioFerias.mp5")
        AxVLCPlugin21.playlist.play()
    End Sub