Code: Select all
mytable = {}
mytable.path = { "file:///C:\\myvideo.avi" }
vlc.playlist.add(mytable)
Any ideas on how to get a local file loaded into a playlist via Lua?
Or how to load an entire playlist in from a .xspf file?
Thanks.
Code: Select all
mytable = {}
mytable.path = { "file:///C:\\myvideo.avi" }
vlc.playlist.add(mytable)
Code: Select all
mytable = {}
mytable.path = "file:///C:\\myvideo.avi"
vlc.playlist.add(mytable)
Code: Select all
mytable = {}
mytable.path = "file:///C:\\myvideo.avi"
vlc.playlist.add({mytable})
You are awesome ivoire. That totally works. I think I tried every other variation except for that one with the brackets moved.Code: Select all
mytable = {} mytable.path = "file:///C:\\myvideo.avi" vlc.playlist.add({mytable})
Return to “Scripting VLC in lua”
Users browsing this forum: No registered users and 13 guests