"HTML5 비디오 video.js 자막 track 태그"의 두 판 사이의 차이

17번째 줄: 17번째 줄:


==vtt 파일==
==vtt 파일==
;pacman-en.vtt
;testvtt-en.vtt
<source lang='text'>
<source lang='text'>
WEBVTT FILE
WEBVTT FILE


1
1
00:00:00.000 --> 00:00:02.000
00:00:01,130 --> 00:00:05,570
Pacman Hello~
Hello. I am Kim Hyun Chul of Ulsan University Electrical Engineering.


2
2
00:00:02.000 --> 00:00:04.000
00:00:05,580 --> 00:00:11,570
Pacman World~
The theme of this lecture is the present and future of the Korean electronics industry.


3
3
00:00:05.000 --> 00:00:06.000
00:00:11,580 --> 00:00:21,930
Pacman The End
Lectures will introduce the main features and overview of the electronic industry
</source>
 
;pacman-ko.vtt
4
<source lang='text'>
00:00:21,940 --> 00:00:29,899
WEBVTT FILE
It describes the contents of the electronic industry with the classification table.
 
5
00:00:29,909 --> 00:00:33,079
It also explains the main productions of the electronic industry such as the semiconductor industry,
 
6
00:00:33,089 --> 00:00:44,649
the display industry, mobile devices and other electronic components.


1
7
00:00:00.000 --> 00:00:02.000
00:00:44,659 --> 00:00:52,119
팩맨 안녕~
At the end of this lecture, we will talk about the direction of future development of the electronic industry.


2
8
00:00:02.000 --> 00:00:04.000
00:00:52,129 --> 00:00:57,129
팩맨 친구들~
&nbsp


3
00:00:05.000 --> 00:00:06.000
팩맨 The End
</source>
</source>



2016년 3월 28일 (월) 18:25 판

HTML5 비디오 track 태그
HTML5 비디오 자막넣기

1 예시

<link href="http://vjs.zencdn.net/5.4.4/video-js.css" rel="stylesheet">
<script src="http://vjs.zencdn.net/5.4.4/video.js"></script>

<video class="video-js vjs-default-skin" controls preload="auto" width="400" height="300" data-setup="{}">
	<source src='https://upload.wikimedia.org/wikipedia/en/d/dc/Pac-Man_Atari_2600_footage.ogv' type='video/ogg' />
	<track kind="subtitles" srclang="en" label="English" src="pacman-en.vtt" />
	<track kind="subtitles" srclang="ko" label="Korean" src="pacman-ko.vtt" default />
</video>

2 vtt 파일

testvtt-en.vtt
WEBVTT FILE

1
00:00:01,130 --> 00:00:05,570
Hello. I am Kim Hyun Chul of Ulsan University Electrical Engineering.

2
00:00:05,580 --> 00:00:11,570
The theme of this lecture is the present and future of the Korean electronics industry.

3
00:00:11,580 --> 00:00:21,930
Lectures will introduce the main features and overview of the electronic industry

4
00:00:21,940 --> 00:00:29,899
It describes the contents of the electronic industry with the classification table.

5
00:00:29,909 --> 00:00:33,079
It also explains the main productions of the electronic industry such as the semiconductor industry,

6
00:00:33,089 --> 00:00:44,649
the display industry, mobile devices and other electronic components.

7
00:00:44,659 --> 00:00:52,119
At the end of this lecture, we will talk about the direction of future development of the electronic industry.

8
00:00:52,129 --> 00:00:57,129
&nbsp

3 같이 보기

4 참고 자료

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}