Method: Muzak::Player::MPV#activate!

Defined in:
lib/muzak/player/mpv.rb

#activate!void

This method returns an undefined value.

Activate mpv by executing it and preparing for event processing.



33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/muzak/player/mpv.rb', line 33

def activate!
  return if running?

  debug "activating #{self.class}"

  args = DEFAULT_MPV_ARGS + configured_mpv_args

  @mpv = ::MPV::Session.new(user_args: args)
  @mpv.callbacks << method(:dispatch_event!)

  instance.event :player_activated
end