Class: Zype::SubtitlePlaylists
- Inherits:
-
Base::Videos
- Object
- BaseModel
- Base::Videos
- Zype::SubtitlePlaylists
- Defined in:
- lib/zype/models/subtitle_playlists.rb
Overview
The Subtitle Playlists API allows users to integrate subtitles with HLS manifests from a Zype video source. It’s a simple way to add subtitles which will be supported in all platforms that implement the Apple HLS specification. This class does not support all, find and update methods. Read more at docs.zype.com/v1.0/reference#subtitle-playlists
Constant Summary
Constants inherited from BaseModel
Instance Attribute Summary
Attributes inherited from BaseModel
Instance Method Summary collapse
-
#delete(language:, video_id:) ⇒ Hash
Deletes an existing subtitle via the API.
Methods inherited from Base::Videos
Methods inherited from BaseModel
#all, #auth=, #create, #find, #initialize, #update
Constructor Details
This class inherits a constructor from Zype::BaseModel
Instance Method Details
#delete(language:, video_id:) ⇒ Hash
Deletes an existing subtitle via the API
20 21 22 |
# File 'lib/zype/models/subtitle_playlists.rb', line 20 def delete(language:, video_id:) client.execute(method: :delete, path: "/videos/#{video_id}/subtitle_playlists/#{language}") end |