Class: Rapid::Baps::Responses::Handlers::Load

Inherits:
LoaderHandler show all
Defined in:
lib/ury_rapid/baps/responses/handlers/playback.rb

Overview

Handler for BAPS2 channel loads

Instance Method Summary collapse

Methods inherited from LoaderHandler

#run

Methods inherited from Services::Responses::Handler

#initialize, #kill_if_exists

Methods inherited from Services::Handler

def_targets, #initialize, register_into, #targets, targets?, use_poster

Constructor Details

This class inherits a constructor from Rapid::Services::Responses::Handler

Instance Method Details

#idObject


110
111
112
# File 'lib/ury_rapid/baps/responses/handlers/playback.rb', line 110

def id
  :item
end

#originObject


121
122
123
# File 'lib/ury_rapid/baps/responses/handlers/playback.rb', line 121

def origin
  "playlist://#{@response.subcode}/#{@response.index}"
end

#urlsObject


114
115
116
117
118
119
# File 'lib/ury_rapid/baps/responses/handlers/playback.rb', line 114

def urls
  { insert:     player_url,
    kill:       player_url(:item),
    load_state: player_url(:load_state)
  }
end