Sha256: 086051ec23e9610bb57db3976cc7be43f6c2279fa4695ed827c0f7b1afa0301a
Contents?: true
Size: 979 Bytes
Versions: 11
Compression:
Stored size: 979 Bytes
Contents
module Zype # 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 https://docs.zype.com/v1.0/reference#subtitle-playlists # # @since 0.7.0 class SubtitlePlaylists < Zype::Base::Videos %i[all find update].each do |mtd| send(:define_method, mtd) do raise NoMethodError end end # Deletes an existing subtitle via the API # # @param language [String] language of the playlist - must be full name - not code # @param video_id [String] ID of the video the subtitle belongs to # @return [Hash] the deleted subtitle def delete(language:, video_id:) client.execute(method: :delete, path: "/videos/#{video_id}/subtitle_playlists/#{language}") end end end
Version data entries
11 entries across 11 versions & 1 rubygems