Page 1 of 1

Excel VBA embeding and STARTTIME property

Posted: 24 Jul 2018 15:31
by Nooclear
Hello i have a code what works, if i manually insert VLC player activeX object and rename it to VLCPlugin21.
CAn you please advise how i can call this object and rename it with different name while keeping all playbakc methods functional.

As well may be somebodey can advise how to set up STARTTIME for VLC to play (i need videofile to be played from specififc timecode)

Code: Select all

Private Sub CommandButton1_Click() ''' Need a code to insert VLCplayerwindow VLCPlugin21.playlist.Add ("file:///c:/Users/savelser/Desktop/1.wmv") VLCPlugin21.Visible = True ''' If you are familiar with VLCplugin properties can you please advise how to run video file starting from 30th second VLCPlugin21.StartTime = 30 VLCPlugin21.playlist.Play End Sub

Re: Excel VBA embeding and STARTTIME property

Posted: 24 Jul 2018 19:50
by Jean-Baptiste Kempf
You need to use the Option "start-time=xx"

Re: Excel VBA embeding and STARTTIME property

Posted: 25 Jul 2018 07:54
by Nooclear
How do i wirte it into VBA code.

Re: Excel VBA embeding and STARTTIME property

Posted: 26 Jul 2018 10:50
by da2424
This should work:

Code: Select all

VLCPlugin21.playlist.Add ("file:///c:/Users/savelser/Desktop/1.wmv", "", ":start-time=xx")
Replace xx with your time (as float in seconds)