I'm developing an extension for vlc 1.1

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
marcoscarpetta
New Cone
New Cone
Posts: 5
Joined: 28 May 2010 16:18

I'm developing an extension for vlc 1.1

Postby marcoscarpetta » 28 May 2010 16:21

https://sourceforge.net/projects/vlc-videos-down/
What do you think about?
this is the code:

Code: Select all

url = nil function descriptor() return { title = "Download videos from the web" ; version = "0.0.1" ; author = "Marco Scarpetta" ; url = 'http://vlc-videos-down.sourceforge.net'; shortdesc = "Download videos"; description = "<center><b>Download videos from the web</b></center><br />"; capabilities = { "input-listener" } } end function create_dialog() dlg = vlc.dialog("vlc download videos") dlg:add_label("Enter the URL of the video you want to download.", 1, 1, 4, 1) dlg:add_label("<b>URL:</b>", 1, 2, 1, 1) local item = vlc.input.item() url = dlg:add_text_input(item and item:name() or "", 2, 2, 1, 1) dlg:add_button("Download", download, 3, 2, 1, 1) --This will help to choose which format to save the video, but I do not know how it works --formato = dlg:add_dropdown() end function activate() create_dialog() end function close() vlc.deactivate() end --this is the most important function function download() --from the url it will download and save rhe video end
Last edited by marcoscarpetta on 04 Jun 2010 18:22, edited 1 time in total.

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: I'm developing an extension for vlc 1.1

Postby Jean-Baptiste Kempf » 29 May 2010 18:58

Show more ! :D
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.

marcoscarpetta
New Cone
New Cone
Posts: 5
Joined: 28 May 2010 16:18

Re: I'm developing an extension for vlc 1.1

Postby marcoscarpetta » 30 May 2010 12:26

Show more ! :D
the problem is that there isn't more

dashdanw
New Cone
New Cone
Posts: 3
Joined: 01 Jun 2010 18:47

Re: I'm developing an extension for vlc 1.1

Postby dashdanw » 01 Jun 2010 20:04

gasp!

marcoscarpetta
New Cone
New Cone
Posts: 5
Joined: 28 May 2010 16:18

Re: I'm developing an extension for vlc 1.1

Postby marcoscarpetta » 04 Jun 2010 18:26

I have a question: the function vlc.playlist.add() requires the mrl of a file, but I can not understand the syntax of the mrl. Can you show me an example?

Ilasir
Cone that earned his stripes
Cone that earned his stripes
Posts: 139
Joined: 14 Apr 2010 18:57

Re: I'm developing an extension for vlc 1.1

Postby Ilasir » 04 Jun 2010 19:45

It's just the file path. "../video.ext"

marcoscarpetta
New Cone
New Cone
Posts: 5
Joined: 28 May 2010 16:18

Re: I'm developing an extension for vlc 1.1

Postby marcoscarpetta » 06 Jun 2010 10:38

Yes but I tried doing so:

Code: Select all

url = nil function create_dialog() dlg = vlc.dialog("vlc download videos") dlg:add_label("Enter the URL of the video you want to download.", 1, 1, 4, 1) dlg:add_label("<b>URL:</b>", 1, 2, 1, 1) local item = vlc.input.item() url = dlg:add_text_input(item and item:name() or "", 2, 2, 1, 1) dlg:add_button("Download", download, 3, 2, 1, 1) end function activate() create_dialog() end function close() vlc.deactivate() end function download() vlc.playlist.add(url:get_text()) end
and it doesn't work.
Is this a valid mrl "http://www.linuxqualityhelp.it/video/prova3.webm"

Ilasir
Cone that earned his stripes
Cone that earned his stripes
Posts: 139
Joined: 14 Apr 2010 18:57

Re: I'm developing an extension for vlc 1.1

Postby Ilasir » 07 Jun 2010 21:24

".webm"?


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 2 guests