Page 1 of 1

Vimeo

Posted: 27 Mar 2010 20:56
by EvanVolm
How exactly does the included Vimeo.lua script work? I've tried playing a feed from Vimeo(this) but it didn't work.
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?

Re: Vimeo

Posted: 15 Jul 2010 11:12
by ivoire
The lua script must be upgraded. But no one is working on actually. If you have some time and know how lua works, you can do it and then send a patch.

Re: Vimeo

Posted: 11 May 2011 11:43
by lamosca
this seems to work for now:

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

Re: Vimeo

Posted: 29 May 2011 20:56
by lamosca
lamosca,

Thanks x1000. It works and without and sort of choppy playback or lagging on my system. It's perfect.
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.