streaming

Media streaming and broadcast systems in Go
Log | Files | Refs | README | LICENSE

commit d09853b19071422bdbbbc45d334e9960e62bfbfb
parent 1167eb1902f51eeb6038d954134362e81e4224bf
Author: blackfalcon <blackfalcon.ru@gmail.com>
Date:   Fri,  7 Jun 2024 04:46:05 -0300

m3u8: Document Rendition

Resolves: https://github.com/untangledco/streaming/issues/21

Diffstat:
Mm3u8/master.go | 17++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/m3u8/master.go b/m3u8/master.go @@ -6,19 +6,34 @@ import ( ) // Rendition represents a unique rendition as described by a single -// EXT-X-MEDIA tag. +// EXT-X-MEDIA tag specified in RFC 8216 section 4.3.4.1. type Rendition struct { + // Type identifies type of media in the rendition. Type MediaType + // Points to a media playlist carrying a rendition of this stream. URI string + // Group specifies the group to which the rendition belongs. Group string + // Language identifies the primary language used in the rendition. Language string + // AssocLanguage identifies a language that is associated with the rendition. AssocLanguage string + // Name represents the description of the rendition. Name string + // Defaults specifies whether client SHOULD play this Rendition of the content in + // the absence of information from the user indicating a different choice. Default bool + // AutoSelect specifies to play this rendition in the absence of explicit user preference. AutoSelect bool + // Forced specifies whether the rendition contains content that is considered essential to play. Forced bool + // InstreamID contains a Line 21 Data Services channel [CEA608] or + // Digital Television Closed Captioning [CEA708] service block number. InstreamID *CCInfo + // Characteristics contains one or more Uniform Type Identifiers [UTI] + // For example: []string{"public.accessibility.transcribes-spoken-dialog","public.easy-to-read"} Characteristics []string + // Channels presents a list audio channels expressed as a decimal-integer. Channels []string }