Module: JPSClient::API::M3u8
- Included in:
- Client
- Defined in:
- lib/jpsclient/api/m3u8.rb
Overview
M3u8 相关 API 自动生成的模块,处理 m3u8 相关接口
Instance Method Summary collapse
-
#get_to_mp4(params: {}) ⇒ Hash
Get To Mp4.
Instance Method Details
#get_to_mp4(params: {}) ⇒ Hash
Get To Mp4
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/jpsclient/api/m3u8.rb', line 11 def get_to_mp4(params: {}) config = @request_config && @request_config["m3u8_to_mp4"] raise JPSClient::ExceptionError, "Missing config for m3u8_to_mp4" unless config && config["url"] path = config["url"] response = @http_client.get(path, params: params) result = JPSClient::Response.new(response) if result.need_login? do_login(force_login: true) response = @http_client.get(path, params: params) result = JPSClient::Response.new(response) end return result.to_h end |