Sha256: 0fd1ab00856dc8c7985831b7d2bcf49e91782fbd712937fd3b5a01b5d1ce22a5

Contents?: true

Size: 517 Bytes

Versions: 3

Compression:

Stored size: 517 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}"

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

3 entries across 3 versions & 1 rubygems

Version Path
flickvimeo-1.0.2 bin/flickvimeo
flickvimeo-1.0.1 bin/flickvimeo
flickvimeo-1.0.0 bin/flickvimeo