Class: AccessPage
- Inherits:
-
ServiceCall
- Object
- ServiceCall
- AccessPage
- Defined in:
- lib/etvnet_seek/core/access_page.rb
Constant Summary collapse
Instance Attribute Summary
Attributes inherited from ServiceCall
Instance Method Summary collapse
-
#initialize ⇒ AccessPage
constructor
A new instance of AccessPage.
- #request_media_info(media_file, cookie) ⇒ Object
Methods inherited from ServiceCall
Constructor Details
#initialize ⇒ AccessPage
Returns a new instance of AccessPage.
4 5 6 |
# File 'lib/etvnet_seek/core/access_page.rb', line 4 def initialize super(ACCESS_URL) end |
Instance Method Details
#request_media_info(media_file, cookie) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/etvnet_seek/core/access_page.rb', line 8 def request_media_info media_file, params = { 'action' => 'start_video', 'bitrate' => '600', 'media_file'=> media_file, 'replay' => '1', 'skin' => 'JSON' } headers = { 'Cookie' => } response = post(params, headers) MediaInfo.new JSON.parse(response.body)["PARAMETERS"] end |