[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

[ANN] HeyWatch library released - Video encoding web service

Bruno Celeste

8/8/2007 4:58:00 PM

Hi people,

I just released a library for the Hey!Watch web service. http://he...

Hey!Watch provides a simple and robust video encoding plateform for
both individuals (B2C) and companies (B2B).

The service allows developers to access a fast, scalable and
inexpensive web service to encode videos easier. The API can be easily
integrated in any web or desktop applications.

Here is an example:

require 'heywatch'
include HeyWatch

Base::establish_connection! :login => 'login', :password => 'password'

raw_video = Download.create(:url => 'http://host.com/vide...,
:download => true) do |percent, total_size, received|
puts "#{percent}%"
end

ipod_format = Format.find_by_name('iPod 4:3')
encoded_video = Job.create(:video_id => raw_video.id, :format_id =>
ipod_format.id) do |percent|
puts "#{percent}%"
end

puts "downloading #{encoded_video.title}"
path = encoded_video.download
puts "video saved in #{path}"


Install: gem install heywatch
Website: http://he...
RDoc: http://heywatch.rub...
API doc: http://wiki.heywatch.com/API_Doc...


--
Hey!Watch: http://he...
Hey!Spread: http://hey...
Blog: http://part...
Twitter: http://twitter.co...