I'm trying to get VLC media player to work in Access 2016, I'm coverting an application from using media player to VLC (or at least trying to) and I cannot for the life of me get VLC to play anything.
I have added the VideoLAN VLC ActiveX plugin to the references.
I have created a test form with a VLC OLE Class VLC ActiveX Plugin and IE Web Plugin v2 and it shows fine on the form with their cone logo.
I have a button and a text box (the text box to show the output as I step through the code as you can see.
I can control every aspect of VLC with the code except I cannot make it play a video. It shows the correct number of items in the playlist, the correct item for currentItem as I step through but isPlaying is always false
I have tried the following code to try to make it work, I have a debug on on so I can step through line by line, it was built up as each version failed.
The play button on the control does nothing. I can make it full screen/control size and all other methods etc from "https://wiki.videolan.org/Documentation:WebPlugin/#Playlist_items_object[" work fine. All the test videos play fine when used in the player direct (from windows not Access)
There must be something simple I'm missing but I cannot for the life of me see what.... so....HELP PLEASE!
Private Sub LoadFn_B_Click()
Dim VLC_Player As VLCPlugin2
Set VLC_Player = Forms!form1!VLCPlugin20.Object
VLC_Player.PlayList.items.Clear
VLC_Player.PlayList.Add ("File:///G:\videos\test01.AVI")
VLC_Player.PlayList.Add ("File:///G:\videos\test01.mpg")
VLC_Player.PlayList.Add ("File:///G:\videos\test01.wmv")
VLC_Player.PlayList.Add ("File:///G:\videos\test01.mov")
VLC_Player.PlayList.Add ("File:///G:\videos\test01.ts")
VLC_Player.PlayList.Add ("File:///G:/videos/test01.AVI")
VLC_Player.PlayList.Add ("File:///G:/videos/\test01.mpg")
VLC_Player.PlayList.Add ("File:///G:/videos/test01.wmv")
VLC_Player.PlayList.Add ("File:///G:/videos/test01.mov")
VLC_Player.PlayList.Add ("File:///G:/videos/test01.ts")
VLC_Player.PlayList.Add ("G:\videos\test01.AVI")
VLC_Player.PlayList.Add ("G:\videos\test01.mpg")
VLC_Player.PlayList.Add ("G:\videos\test01.wmv")
VLC_Player.PlayList.Add ("G:\videos\test01.mov")
VLC_Player.PlayList.Add ("G:\videos\test01.ts")
VLC_Player.PlayList.playItem (1)
Me.TestInfo_T = VLC_Player.PlayList.items.Count & ", " & VLC_Player.PlayList.currentItem & ", " & VLC_Player.PlayList.isPlaying
VLC_Player.PlayList.playItem (2)
Me.TestInfo_T = VLC_Player.PlayList.items.Count & ", " & VLC_Player.PlayList.currentItem & ", " & VLC_Player.PlayList.isPlaying
VLC_Player.PlayList.play
Me.TestInfo_T = VLC_Player.PlayList.items.Count & ", " & VLC_Player.PlayList.currentItem & ", " & VLC_Player.PlayList.isPlaying
VLC_Player.PlayList.play
VLC_Player.PlayList.playItem (7)
Me.TestInfo_T = VLC_Player.PlayList.items.Count & ", " & VLC_Player.PlayList.currentItem & ", " & VLC_Player.PlayList.isPlaying
VLC_Player.PlayList.playItem (8)
Me.TestInfo_T = VLC_Player.PlayList.items.Count & ", " & VLC_Player.PlayList.currentItem & ", " & VLC_Player.PlayList.isPlaying
VLC_Player.PlayList.playItem (13)
Me.TestInfo_T = VLC_Player.PlayList.items.Count & ", " & VLC_Player.PlayList.currentItem & ", " & VLC_Player.PlayList.isPlaying
VLC_Player.PlayList.playItem (14)
Me.TestInfo_T = VLC_Player.PlayList.items.Count & ", " & VLC_Player.PlayList.currentItem & ", " & VLC_Player.PlayList.isPlaying
End Sub
I have added the VideoLAN VLC ActiveX plugin to the references.
I have created a test form with a VLC OLE Class VLC ActiveX Plugin and IE Web Plugin v2 and it shows fine on the form with their cone logo.
I have a button and a text box (the text box to show the output as I step through the code as you can see.
I can control every aspect of VLC with the code except I cannot make it play a video. It shows the correct number of items in the playlist, the correct item for currentItem as I step through but isPlaying is always false
I have tried the following code to try to make it work, I have a debug on on so I can step through line by line, it was built up as each version failed.
The play button on the control does nothing. I can make it full screen/control size and all other methods etc from "https://wiki.videolan.org/Documentation:WebPlugin/#Playlist_items_object[" work fine. All the test videos play fine when used in the player direct (from windows not Access)
There must be something simple I'm missing but I cannot for the life of me see what.... so....HELP PLEASE!
Private Sub LoadFn_B_Click()
Dim VLC_Player As VLCPlugin2
Set VLC_Player = Forms!form1!VLCPlugin20.Object
VLC_Player.PlayList.items.Clear
VLC_Player.PlayList.Add ("File:///G:\videos\test01.AVI")
VLC_Player.PlayList.Add ("File:///G:\videos\test01.mpg")
VLC_Player.PlayList.Add ("File:///G:\videos\test01.wmv")
VLC_Player.PlayList.Add ("File:///G:\videos\test01.mov")
VLC_Player.PlayList.Add ("File:///G:\videos\test01.ts")
VLC_Player.PlayList.Add ("File:///G:/videos/test01.AVI")
VLC_Player.PlayList.Add ("File:///G:/videos/\test01.mpg")
VLC_Player.PlayList.Add ("File:///G:/videos/test01.wmv")
VLC_Player.PlayList.Add ("File:///G:/videos/test01.mov")
VLC_Player.PlayList.Add ("File:///G:/videos/test01.ts")
VLC_Player.PlayList.Add ("G:\videos\test01.AVI")
VLC_Player.PlayList.Add ("G:\videos\test01.mpg")
VLC_Player.PlayList.Add ("G:\videos\test01.wmv")
VLC_Player.PlayList.Add ("G:\videos\test01.mov")
VLC_Player.PlayList.Add ("G:\videos\test01.ts")
VLC_Player.PlayList.playItem (1)
Me.TestInfo_T = VLC_Player.PlayList.items.Count & ", " & VLC_Player.PlayList.currentItem & ", " & VLC_Player.PlayList.isPlaying
VLC_Player.PlayList.playItem (2)
Me.TestInfo_T = VLC_Player.PlayList.items.Count & ", " & VLC_Player.PlayList.currentItem & ", " & VLC_Player.PlayList.isPlaying
VLC_Player.PlayList.play
Me.TestInfo_T = VLC_Player.PlayList.items.Count & ", " & VLC_Player.PlayList.currentItem & ", " & VLC_Player.PlayList.isPlaying
VLC_Player.PlayList.play
VLC_Player.PlayList.playItem (7)
Me.TestInfo_T = VLC_Player.PlayList.items.Count & ", " & VLC_Player.PlayList.currentItem & ", " & VLC_Player.PlayList.isPlaying
VLC_Player.PlayList.playItem (8)
Me.TestInfo_T = VLC_Player.PlayList.items.Count & ", " & VLC_Player.PlayList.currentItem & ", " & VLC_Player.PlayList.isPlaying
VLC_Player.PlayList.playItem (13)
Me.TestInfo_T = VLC_Player.PlayList.items.Count & ", " & VLC_Player.PlayList.currentItem & ", " & VLC_Player.PlayList.isPlaying
VLC_Player.PlayList.playItem (14)
Me.TestInfo_T = VLC_Player.PlayList.items.Count & ", " & VLC_Player.PlayList.currentItem & ", " & VLC_Player.PlayList.isPlaying
End Sub