Sha256: 304c43198f873acc35727cdbb6081ce8fdf156bbd7b5377f4dc696bc90e7765d
Contents?: true
Size: 552 Bytes
Versions: 1
Compression:
Stored size: 552 Bytes
Contents
#!/usr/bin/env ruby require 'flickvimeo' unless ARGV[0] puts "Usage: #{File.basename($0)} <vimeo-id-or-url>" exit(1) end v = FlickVimeo::Video.new(ARGV[0]) puts "Video file for #{ARGV[0]}: #{v.video_file_url}" puts "Sending to AirFlick now..." require 'osx/cocoa' request = { 'RequestType' => 'play-media', 'MediaLocation' => v.video_file_url } notification_center = OSX::NSDistributedNotificationCenter.defaultCenter notification_center.postNotificationName_object_userInfo_deliverImmediately("com.sadun.airflick", nil, request, true)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flickvimeo-1.0.3 | bin/flickvimeo |