자막이 있는 경우
자막 파일은 textstream element 를 사용
textstream element 에 사용 되는 attribute
type
자막파일 종류 srt, vtt 가능
system-language
RFC5646에 정의된 language를 지정(한개의 값만 사용)
이 값은 smil 파일 내에서 unique 해야 한다.
예: kr, en
name
플레이어 선택 창에서 표시될 language
이 값은 smil 파일 내에서 unique 해야 한다.
예: Korean, English
src
자막파일 경로
textstream element 에는 name과 src가 필수 값이고 name attibute가 자막의 트랙을 구분하는 용도로 사용되기 때문에 smil 파일 내에서 unique 해야 한다.
<smil>
<body>
<playlist>
<videosrc="/adaptive/subtitle/Encanto_FEA_1080P23_STT_ko_KR_t31.mp4"
system-bitrate="450000"/>
<videosrc="/adaptive/subtitle/Encanto_FEA_1080P23_STT_ko_KR_t32.mp4"
system-bitrate="900000"/>
<videosrc="/adaptive/subtitle/Encanto_FEA_1080P23_STT_ko_KR_t33.mp4"
system-bitrate="1200000"/>
<videosrc="/adaptive/subtitle/Encanto_FEA_1080P23_STT_ko_KR_t34.mp4"
system-bitrate="2200000"/>
<videosrc="/adaptive/subtitle/Encanto_FEA_1080P23_STT_ko_KR_t35.mp4"
system-bitrate="5300000"/>
<textstreamsystem-language="ko"name="Korean"type="srt"src="
/adaptive/subtitle/Encanto_FEA_1080P23_STT_ko.srt"/>
</playlist>
</body>
</smil>
<smil>
<body>
<playlist>
<videosrc="/adaptive/subtitle/Encanto_FEA_1080P23_STT_ko_KR_t31.mp4"
system-bitrate="450000"/>
<videosrc="/adaptive/subtitle/Encanto_FEA_1080P23_STT_ko_KR_t32.mp4"
system-bitrate="900000"/>
<videosrc="/adaptive/subtitle/Encanto_FEA_1080P23_STT_ko_KR_t33.mp4"
system-bitrate="1200000"/>
<videosrc="/adaptive/subtitle/Encanto_FEA_1080P23_STT_ko_KR_t34.mp4"
system-bitrate="2200000"/>
<videosrc="/adaptive/subtitle/Encanto_FEA_1080P23_STT_ko_KR_t35.mp4"
system-bitrate="5300000"/>
<textstreamsystem-language="en"name="English"type="vtt"src="
/adaptive/subtitle/Encanto_FEA_1080P23_STT_en.vtt"/>
<textstreamsystem-language="ko"name="Korean"type="vtt"src="
/adaptive/subtitle/Encanto_FEA_1080P23_STT_ko.vtt"/>
</playlist>
</body>
</smil>
Last updated
Was this helpful?