Excel VBA embeding and STARTTIME property

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
Nooclear
New Cone
New Cone
Posts: 2
Joined: 24 Jul 2018 15:05

Excel VBA embeding and STARTTIME property

Postby Nooclear » 24 Jul 2018 15:31

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

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Excel VBA embeding and STARTTIME property

Postby Jean-Baptiste Kempf » 24 Jul 2018 19:50

You need to use the Option "start-time=xx"
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Nooclear
New Cone
New Cone
Posts: 2
Joined: 24 Jul 2018 15:05

Re: Excel VBA embeding and STARTTIME property

Postby Nooclear » 25 Jul 2018 07:54

How do i wirte it into VBA code.

da2424
Cone that earned his stripes
Cone that earned his stripes
Posts: 310
Joined: 16 Apr 2013 16:57

Re: Excel VBA embeding and STARTTIME property

Postby da2424 » 26 Jul 2018 10:50

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)


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 17 guests