Simplify subtitles code

This commit is contained in:
DC
2016-05-15 23:59:56 -07:00
parent 98f7ba8931
commit 9731d85ca3
5 changed files with 69 additions and 48 deletions

View File

@@ -75,8 +75,9 @@ function getDefaultPlayState () {
lastTimeUpdate: 0, /* Unix time in ms */
mouseStationarySince: 0, /* Unix time in ms */
subtitles: {
tracks: [], /* subtitles file (Buffer) */
enabled: false
tracks: [], /* subtitle tracks, each {label, language, ...} */
selectedIndex: -1, /* current subtitle track */
showMenu: false /* popover menu, above the video */
},
aspectRatio: 0 /* aspect ratio of the video */
}