Do I have to modify or install a new script?The format of 'http://vimeo.com/moogaloop.swf?clip_id=10369592' cannot be detected. Have a look at the log for details.
Do I have to modify or install a new script?The format of 'http://vimeo.com/moogaloop.swf?clip_id=10369592' cannot be detected. Have a look at the log for details.
Code: Select all
function probe()
if vlc.access ~= "http"
then
return false
end
if string.match(vlc.path, "vimeo.com/%d")
then
return true
else
return false
end
end
function parse()
while true do
line = vlc.readline()
if not line then break end
_,_,id = string.find(vlc.path, "vimeo.com/(.*)")
if string.match(line, "config:.*") then
_,_,sig = string.find(line, "signature\":\"(.*)\",\"timestamp")
_,_,timestamp = string.find(line, ",\"timestamp\":(.*),\"referrer")
_,_,name = string.find(line, "video\":.*\"title\":\"(.*)\",\"width")
_,_,artist = string.find(line, "owner\":{\"name\":\"(.*)\",\"portrait")
end
end
return {{path = "http://player.vimeo.com/play_redirect?quality=sd&codecs=h264&clip_id="..id.."&time="..timestamp.."&sig="..sig.."&type=html5_desktop_local"; name = name; artist = artist}}
end
actually the old script works as well and it's much better because it gets both hd and sd videos. i just didn't test the old one before writing a new one. the issue was that vimeo was blocking vlc from accessing the site, but i guess they stopped blocking it now that vlc doesn't come bundled with the vimeo script or something.lamosca,
Thanks x1000. It works and without and sort of choppy playback or lagging on my system. It's perfect.
Return to “Scripting VLC in lua”
Users browsing this forum: No registered users and 9 guests