Search found 23 matches

Go to advanced search

by spark90
06 May 2021 07:09
Forum: Scripting VLC in lua
Topic: Adding a SD from an extension
Replies: 4
Views: 9546

Re: Adding a SD from an extension

Thank's for your reply. I'm going to be mad :D Whith a little dump function on the vlc object, I've the following results: from SD: ["sd"] = Table(4)= { ["add_node"] = function: 000001BD5353E430, ["add_item"] = function: 000001BD5353E610, ["remove_item"] = fun...
by spark90
10 Apr 2021 08:42
Forum: Scripting VLC in lua
Topic: Adding a SD from an extension
Replies: 4
Views: 9546

vlc.sd.add("lua{sd='TTTTT'}") main debug: looking for services_discovery module matching "lua": 9 candidates main debug: set config option: lua-sd to TTTTT lua error: Couldn't find lua services discovery script "TTTTT". main debug: no services_discovery modules matched...
by spark90
09 Apr 2021 22:45
Forum: Scripting VLC in lua
Topic: LUA networking disabled ?
Replies: 17
Views: 29897

Re: LUA networking disabled ?

Problem solved ! 50f is a chunk hexadecimal length from HTTP/1.1 standard when "Transfer-Encoding: chunked" HTTP HEADER is used.

my HTTP parser is now finished and handle trunks. My retreived content is clean :)
by spark90
08 Apr 2021 22:03
Forum: Scripting VLC in lua
Topic: Adding a SD from an extension
Replies: 4
Views: 9546

Adding a SD from an extension

Hello ! I need to add rtsp streams on a custom SD on the left panel under "Podcasts", "Jamendo Selections", "Icecast Radio Directory" from an extension (not a sd script !) I've tried : t = vlc.sd.add('Test') vlc.msg.dbg(t) But il fails :evil: logs : main debug: looking ...
by spark90
08 Apr 2021 21:34
Forum: Scripting VLC in lua
Topic: LUA networking disabled ?
Replies: 17
Views: 29897

Re: LUA networking disabled ?

I found the problem, this is due to chunked HTTP1.1 transfert mode
Sending HTTP/1.0 returns the playlist content without parasites characters.

I've now a pure lua/vlc implementation of vlc.stream() wich works well (and use vlc.net within an extension)
by spark90
08 Apr 2021 04:59
Forum: Scripting VLC in lua
Topic: LUA networking disabled ?
Replies: 17
Views: 29897

Re: LUA networking disabled ?

It seems that the web server is the problem ! HTTP headers : HTTP/1.1 200 OK Server: nginx Date: Thu, 08 Apr 2021 02:45:15 GMT Content-Type: text/plain; charset=utf-8 Transfer-Encoding: chunked Connection: close 50f #EXTM3U #EXTINF:0,1 50f ??? WTF ?? I think it's why vlc.stream() can't parse the pla...
by spark90
08 Apr 2021 00:54
Forum: Scripting VLC in lua
Topic: vlc.net.recv() not working !!
Replies: 1
Views: 2539

Re: vlc.net.recv() not working !!

OK...... The documentation is not up to date... vlc.net.poll is available for windows ! I tried -- 3. Send GET request local http_request = "GET "..path.." HTTP/1.1\r\n".. "Host: "..host.."\r\n".. "\r\n" local count = vlc.net.send(tcp, http_request) ...
by spark90
08 Apr 2021 00:45
Forum: Scripting VLC in lua
Topic: vlc.net.recv() not working !!
Replies: 1
Views: 2539

vlc.net.recv() not working !!

Here is my extension, I want to get the html index code from www.google.fr : Everything works fine, but not data retreiving with vlc.net.recv() function descriptor() return { title = "Net Test" } end function activate() -- 1. Variable from webpage to fetch host = "www.google.fr" ...
by spark90
07 Apr 2021 23:00
Forum: Scripting VLC in lua
Topic: Simple message not working !
Replies: 5
Views: 3111

Re: Simple message not working !

problem solved, you should open CTRL-M console BEFORE calling the lua script
by spark90
07 Apr 2021 19:38
Forum: Scripting VLC in lua
Topic: LUA networking disabled ?
Replies: 17
Views: 29897

Re: LUA networking disabled ?

I'm in touch with a VLC dev, it seems to be a BUG in VLC 3.0.12 (and previous). vlc.stream() seams broken for m3u
by spark90
07 Apr 2021 17:06
Forum: Scripting VLC in lua
Topic: LUA networking disabled ?
Replies: 17
Views: 29897

Re: LUA networking disabled ?

There is a hack : https://www.triades.net/9-blog/20-plugin-freebox-pour-vlc-3-0-x.html wich provide an adapted script, but the playlist retrieving is disabled ! It's a static list. You can see it a the end of : http://www.triades.net/downloads/freebox-static.lua And in this static file, the TNT stre...
by spark90
07 Apr 2021 17:01
Forum: Scripting VLC in lua
Topic: LUA networking disabled ?
Replies: 17
Views: 29897

Re: LUA networking disabled ?

The http://mafreebox.freebox.fr/freeboxtv/playlist.m3u link does not work for me. The old "freebox.lua" script: https://code.videolan.org/videolan/vlc-2.0/-/blob/master/share/lua/sd/freebox.lua The old freebox.lua script doesn't work anymore for 2 reasons : - vlc.stream() is broken - logo...
by spark90
07 Apr 2021 16:57
Forum: Scripting VLC in lua
Topic: LUA networking disabled ?
Replies: 17
Views: 29897

Re: LUA networking disabled ?

The link works only if your ISP is "Free ('www.free.fr)" in France ! This is a special url wich returns iptv (and TNT streams if the TV player is connected to an antenna) urls to watch TV on PC. You've just to open a network stream http://mafreebox.freebox.fr/freeboxtv/playlist.m3u and her...
by spark90
06 Apr 2021 23:21
Forum: Scripting VLC in lua
Topic: LUA networking disabled ?
Replies: 17
Views: 29897

Re: LUA networking disabled ?

The playlist url http://mafreebox.freebox.fr/freeboxtv/playlist.m3u returns : #EXTM3U #EXTINF:0,1 - TF1 (TNT) rtsp://192.168.0.31/fbxdvb/stream?tsid=6&nid=8442&sid=1537&frontend=1 #EXTINF:0,2 - France 2 (auto) rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=201 #EXTI...
by spark90
06 Apr 2021 22:58
Forum: Scripting VLC in lua
Topic: LUA networking disabled ?
Replies: 17
Views: 29897

Re: LUA networking disabled ?

Hello ! More informations about my stream problem : function main local m3ustream = vlc.stream('http://mafreebox.freebox.fr/freeboxtv/playlist.m3u') -- NOT WORKING ??? if m3ustream then vlc.msg.dbg("stream OK") else vlc.msg.dbg("stream KO") end local m3u_line = m3ustream:readline...
by spark90
05 Apr 2021 18:02
Forum: Scripting VLC in lua
Topic: LUA networking disabled ?
Replies: 17
Views: 29897

Re: LUA networking disabled ?

can you link me the REAL readme.txt please ?

https://www.videolan.org/developers/vlc ... README.txt is broken

Thx !!
by spark90
05 Apr 2021 15:40
Forum: Scripting VLC in lua
Topic: LUA networking disabled ?
Replies: 17
Views: 29897

Re: LUA networking disabled ?

The "stream" I want to open is "http://mafreebox.freebox.fr/freeboxtv/playlist.m3u", this link works great (if your ISP is "Free" in France www.free.fr)
by spark90
05 Apr 2021 15:15
Forum: Scripting VLC in lua
Topic: LUA networking disabled ?
Replies: 17
Views: 29897

Re: LUA networking disabled ?

Here more informations: -- Extension description function descriptor() return { title = "Test" } end function main() local conn = vlc.net.connect_tcp("http://wwww.google.fr", 80) if conn then vlc.msg.info("Conn OK") else vlc.msg.info("Conn KO") end end Log: lu...
by spark90
05 Apr 2021 00:32
Forum: Scripting VLC in lua
Topic: LUA networking disabled ?
Replies: 17
Views: 29897

LUA networking disabled ?

Since a while, freebox.luac doesn't works anymore for french Free ISP tv broadcast.

This is relative to vlc.stream() which returns nil

I'v try to find a workaround with vlc.net.connect_tcp(), vlc.net is nil


Is this normal, since when have things been going like this ?

Thx
Spark
by spark90
04 Apr 2021 22:50
Forum: Scripting VLC in lua
Topic: Simple message not working !
Replies: 5
Views: 3111

Re: Simple message not working !

even the script

-- "extension.lua"
-- VLC Extension basic structure (template): ----------------

from the wiki is broken.

for me, lua is broken in 3.0.x !
by spark90
01 Apr 2021 21:49
Forum: Scripting VLC in lua
Topic: Simple message not working !
Replies: 5
Views: 3111

Re: Simple message not working !

Thx, I'll take a look ! :)
by spark90
31 Mar 2021 07:00
Forum: Scripting VLC in lua
Topic: Simple message not working !
Replies: 5
Views: 3111

Simple message not working !

Here is my script : function descriptor() return { title = "Test" } end function main() vlc.msg.info("Message de test !") end It appears on the VLC interface, I click on "Test", it seems to do nothing. I go to Tools->Messages (CTRL-M) => Empty !! Any ideas ? Thx

Go to advanced search