Vimeo

Discuss your Lua playlist, album art and interface scripts.
EvanVolm
Blank Cone
Blank Cone
Posts: 13
Joined: 12 May 2009 20:31

Vimeo

Postby EvanVolm » 27 Mar 2010 20:56

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?

ivoire
Cone that earned his stripes
Cone that earned his stripes
Posts: 413
Joined: 20 Aug 2008 11:29
VLC version: trunk
Operating System: linux (debian sid)
Contact:

Re: Vimeo

Postby ivoire » 15 Jul 2010 11:12

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.

lamosca
New Cone
New Cone
Posts: 9
Joined: 01 Aug 2010 07:48

Re: Vimeo

Postby lamosca » 11 May 2011 11:43

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

lamosca
New Cone
New Cone
Posts: 9
Joined: 01 Aug 2010 07:48

Re: Vimeo

Postby lamosca » 29 May 2011 20:56

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.


Return to “Scripting VLC in lua”

Who is online

Users browsing this forum: No registered users and 8 guests