Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't seek. #78

Open
ahknight opened this issue Mar 10, 2014 · 0 comments
Open

Can't seek. #78

ahknight opened this issue Mar 10, 2014 · 0 comments

Comments

@ahknight
Copy link

Attempts to use player.seek fail horribly for me.

/var/lib/gems/1.9.1/gems/celluloid-0.15.2/lib/celluloid/calls.rb:25:in `public_send': undefined method `seek' for #<Airplay::Player:0x000000033af720> (NoMethodError)
from /var/lib/gems/1.9.1/gems/celluloid-0.15.2/lib/celluloid/calls.rb:25:in `dispatch'
from /var/lib/gems/1.9.1/gems/celluloid-0.15.2/lib/celluloid/calls.rb:67:in `dispatch'
from /var/lib/gems/1.9.1/gems/celluloid-0.15.2/lib/celluloid/actor.rb:322:in `block in handle_message'
from /var/lib/gems/1.9.1/gems/celluloid-0.15.2/lib/celluloid/actor.rb:416:in `block in task'
from /var/lib/gems/1.9.1/gems/celluloid-0.15.2/lib/celluloid/tasks.rb:55:in `block in initialize'
from /var/lib/gems/1.9.1/gems/celluloid-0.15.2/lib/celluloid/tasks/task_fiber.rb:13:in `block in create'
from (celluloid):0:in `remote procedure call'
from /var/lib/gems/1.9.1/gems/celluloid-0.15.2/lib/celluloid/calls.rb:92:in `value'
from /var/lib/gems/1.9.1/gems/celluloid-0.15.2/lib/celluloid/proxies/sync_proxy.rb:33:in `method_missing'
from playair.rb:8:in `<main>'

The short-and-sweet example code I'm playing with:

require "airplay"
atv = Airplay.devices.first
player = atv.play("http://server.local/Media/my-video.m4v")
sleep 1 while not player.playing?
player.seek(10)
player.wait

The movie plays fine, but when I try to use seek the whole thing comes down with that odd error about not seeing the method (while other methods on Player appear to be callable).

$ ruby --version
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]

 $ gem list

*** LOCAL GEMS ***

 airplay (1.0.2)
 airplay-cli (1.0.1)
 celluloid (0.15.2)
 celluloid-io (0.15.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant