Go Back   Access World Forums > Apps and Windows > Other Software

 
Reply
 
Thread Tools Rate Thread Display Modes
Old 08-15-2019, 04:20 AM   #1
stevem9
Newly Registered User
 
Join Date: Aug 2019
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
stevem9 is on a distinguished road
Access and VLC, unable to play.

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

stevem9 is offline   Reply With Quote
Old 08-15-2019, 06:51 AM   #2
arnelgp
error reading drive A:
 
arnelgp's Avatar
 
Join Date: May 2009
Location: somewhere out there
Posts: 8,383
Thanks: 68
Thanked 2,698 Times in 2,583 Posts
arnelgp is just really nice arnelgp is just really nice arnelgp is just really nice arnelgp is just really nice arnelgp is just really nice
Re: Access and VLC, unable to play.

there is a simple one, media player control.
search jukebox on this forum.
__________________
"Never stop learning, because life never stops teaching"
arnelgp is offline   Reply With Quote
Old 08-15-2019, 09:24 AM   #3
stevem9
Newly Registered User
 
Join Date: Aug 2019
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
stevem9 is on a distinguished road
Re: Access and VLC, unable to play.

Quote:
Originally Posted by arnelgp View Post
there is a simple one, media player control.
search jukebox on this forum.
Done so and have looked at all the results and cannot find any that refer to VLC Player so if you can point me in the right direction it would be a great help.

The application is already fully functional with Windows Media Player BTW and has been for some time but WMP is clunky (eg it will not allow proper control over play speeds) and keeps on needing its codecs updating as windows updates keep removing functionality (yes I have rolled back after something has disappeared and it has come back hence the need for change, for example uninstalling and re-installing Shark Codecs after a windows update to get certain files to play is not ideal.

stevem9 is offline   Reply With Quote
Old 08-16-2019, 02:20 AM   #4
stevem9
Newly Registered User
 
Join Date: Aug 2019
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
stevem9 is on a distinguished road
Re: Access and VLC, unable to play.

Well Well, Windows and Office updated themselves last night and lo and behold it's working fine! Absolutely no idea what was going on but I can't fault it now. It has also confirmed the format "File:///G:\videos\test01.wmv".

Access however insists on now opening the code window in the top left of the top left screen and shrunk to a tiny size and restarts without saving if I try to save a form which is open but has changed code or controls - it saves fine if in design mode.

I have run SFC Scannow and there are no errors found so I'm going to roll back to last night's backup and see what happens
stevem9 is offline   Reply With Quote
Old 08-16-2019, 03:58 AM   #5
arnelgp
error reading drive A:
 
arnelgp's Avatar
 
Join Date: May 2009
Location: somewhere out there
Posts: 8,383
Thanks: 68
Thanked 2,698 Times in 2,583 Posts
arnelgp is just really nice arnelgp is just really nice arnelgp is just really nice arnelgp is just really nice arnelgp is just really nice
Re: Access and VLC, unable to play.

I experimented building a VLC form.
you need to add reference to Microsoft Office Xx.X object library (for the FileDialog). must have VLC installed.
Attached Files
File Type: zip VLCplayer.zip (42.0 KB, 15 views)
__________________
"Never stop learning, because life never stops teaching"
arnelgp is offline   Reply With Quote
Old 08-16-2019, 08:51 AM   #6
stevem9
Newly Registered User
 
Join Date: Aug 2019
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
stevem9 is on a distinguished road
Re: Access and VLC, unable to play.

many thanks and very useful, the one thing I'm now trying to do is find the filepath\filename of the playing item and of all the files in the playlist. I'm sure I'll find it somewhere as I'm just starting with VLC being already very familiar with WMP.

On another note the restore of last night's backup once again rendered VLC unable to play anything, even re-installing the latest version did not help so out of interest I rolled back a month and would you believe it, this time VLC worked perfectly playing things from my form in Access. Restored last night again and again no playing, went back to this morning and all fine again. Weird. At some point if I get time I'll roll back and find out which update screwed it by manually installing them until it fails but this is just for my personal satisfaction as all is working now.

stevem9 is offline   Reply With Quote
Reply

Tags
vba , video player , vlc

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question Visio 2007 Doesn't Play nice with Access ALewis06 General 1 01-15-2013 09:46 AM
unable to delete, cut, paste Access objects in Access 2010 Bilbo_Baggins_Esq General 6 11-27-2012 02:25 PM
Play sound file in Ms Access 2007. veasna Queries 0 01-12-2010 02:10 AM
Access 97 won't play with .xls files visacrum General 15 09-23-2008 10:09 AM
How to Play a Flash Movie in Access. mohammadagul Modules & VBA 1 11-13-2004 04:22 PM




All times are GMT -8. The time now is 11:30 PM.


Microsoft Access Help
General
Tables
Queries
Forms
Reports
Macros
Modules & VBA
Theory & Practice
Access FAQs
Code Repository
Sample Databases
Video Tutorials

Featured Forum post


Sponsored Links


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
(c) copyright 2017 Access World