forked from 0x2620/pandora
add subtitles offset, fixes #2732
This commit is contained in:
parent
589959886b
commit
ae55130f47
8 changed files with 9 additions and 0 deletions
|
@ -969,6 +969,7 @@
|
||||||
"videoScale": "fit",
|
"videoScale": "fit",
|
||||||
"videoSize": "small",
|
"videoSize": "small",
|
||||||
"videoSubtitles": true,
|
"videoSubtitles": true,
|
||||||
|
"videoSubtitlesOffset": 0,
|
||||||
"videoTimeline": "antialias",
|
"videoTimeline": "antialias",
|
||||||
"videoView": "player",
|
"videoView": "player",
|
||||||
"videoVolume": 1
|
"videoVolume": 1
|
||||||
|
|
|
@ -984,6 +984,7 @@
|
||||||
"videoScale": "fit",
|
"videoScale": "fit",
|
||||||
"videoSize": "small",
|
"videoSize": "small",
|
||||||
"videoSubtitles": true,
|
"videoSubtitles": true,
|
||||||
|
"videoSubtitlesOffset": 0,
|
||||||
"videoTimeline": "slitscan",
|
"videoTimeline": "slitscan",
|
||||||
"videoView": "player",
|
"videoView": "player",
|
||||||
"videoVolume": 1
|
"videoVolume": 1
|
||||||
|
|
|
@ -618,6 +618,7 @@
|
||||||
"id": "transcripts",
|
"id": "transcripts",
|
||||||
"title": "Transcripts",
|
"title": "Transcripts",
|
||||||
"canAddAnnotations": {"member": true, "staff": true, "admin": true},
|
"canAddAnnotations": {"member": true, "staff": true, "admin": true},
|
||||||
|
"isSubtitles": true,
|
||||||
"item": "Transcript",
|
"item": "Transcript",
|
||||||
"showInfo": true,
|
"showInfo": true,
|
||||||
"type": "text"
|
"type": "text"
|
||||||
|
@ -868,6 +869,7 @@
|
||||||
"videoScale": "fit",
|
"videoScale": "fit",
|
||||||
"videoSize": "large",
|
"videoSize": "large",
|
||||||
"videoSubtitles": false,
|
"videoSubtitles": false,
|
||||||
|
"videoSubtitlesOffset": 0,
|
||||||
"videoTimeline": "antialias",
|
"videoTimeline": "antialias",
|
||||||
"videoView": "player",
|
"videoView": "player",
|
||||||
"videoVolume": 1
|
"videoVolume": 1
|
||||||
|
|
|
@ -911,6 +911,7 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
|
||||||
"videoScale": "fit",
|
"videoScale": "fit",
|
||||||
"videoSize": "small",
|
"videoSize": "small",
|
||||||
"videoSubtitles": true,
|
"videoSubtitles": true,
|
||||||
|
"videoSubtitlesOffset": 0,
|
||||||
"videoTimeline": "antialias",
|
"videoTimeline": "antialias",
|
||||||
"videoView": "player",
|
"videoView": "player",
|
||||||
"videoVolume": 1
|
"videoVolume": 1
|
||||||
|
|
|
@ -147,6 +147,7 @@ pandora.ui.editPanel = function(isEmbed) {
|
||||||
})
|
})
|
||||||
),
|
),
|
||||||
subtitles: getSubtitles(edit.clips),
|
subtitles: getSubtitles(edit.clips),
|
||||||
|
subtitlesOffset: ui.videoSubtitlesOffset,
|
||||||
timeline: ui.videoTimeline,
|
timeline: ui.videoTimeline,
|
||||||
timelineTooltip: Ox._('timeline') + ' <span class="OxBright">' + Ox.SYMBOLS.shift + 'T</span>',
|
timelineTooltip: Ox._('timeline') + ' <span class="OxBright">' + Ox.SYMBOLS.shift + 'T</span>',
|
||||||
video: getVideos(),
|
video: getVideos(),
|
||||||
|
|
|
@ -74,6 +74,7 @@ pandora.ui.editor = function(data) {
|
||||||
subtitles: data.subtitles,
|
subtitles: data.subtitles,
|
||||||
subtitlesDefaultTrack: Ox.getLanguageNameByCode(pandora.site.language),
|
subtitlesDefaultTrack: Ox.getLanguageNameByCode(pandora.site.language),
|
||||||
subtitlesLayer: data.subtitlesLayer,
|
subtitlesLayer: data.subtitlesLayer,
|
||||||
|
subtitlesOffset: ui.videoSubtitlesOffset,
|
||||||
subtitlesTrack: Ox.getLanguageNameByCode(pandora.site.language),
|
subtitlesTrack: Ox.getLanguageNameByCode(pandora.site.language),
|
||||||
timeline: ui.videoTimeline,
|
timeline: ui.videoTimeline,
|
||||||
timelines: pandora.site.timelines,
|
timelines: pandora.site.timelines,
|
||||||
|
|
|
@ -104,6 +104,7 @@ pandora.ui.embedPlayer = function() {
|
||||||
scaleToFill: ui.videoScale == 'fill',
|
scaleToFill: ui.videoScale == 'fill',
|
||||||
showIconOnLoad: true,
|
showIconOnLoad: true,
|
||||||
subtitles: video.subtitles,
|
subtitles: video.subtitles,
|
||||||
|
subtitlesOffset: ui.videoSubtitlesOffset,
|
||||||
timeline: options.playInToOut ? function(size, i) {
|
timeline: options.playInToOut ? function(size, i) {
|
||||||
return pandora.getMediaURL('/' + options.item
|
return pandora.getMediaURL('/' + options.item
|
||||||
+ '/timelineantialias'
|
+ '/timelineantialias'
|
||||||
|
|
|
@ -51,6 +51,7 @@ pandora.ui.player = function(data) {
|
||||||
smallTimelineURL: pandora.getMediaURL('/' + ui.item + '/timeline16p.jpg'),
|
smallTimelineURL: pandora.getMediaURL('/' + ui.item + '/timeline16p.jpg'),
|
||||||
subtitlesDefaultTrack: Ox.getLanguageNameByCode(pandora.site.language),
|
subtitlesDefaultTrack: Ox.getLanguageNameByCode(pandora.site.language),
|
||||||
subtitlesLayer: data.subtitlesLayer,
|
subtitlesLayer: data.subtitlesLayer,
|
||||||
|
subtitlesOffset: ui.videoSubtitlesOffset,
|
||||||
subtitlesTrack: Ox.getLanguageNameByCode(pandora.site.language),
|
subtitlesTrack: Ox.getLanguageNameByCode(pandora.site.language),
|
||||||
timeline: ui.videoTimeline,
|
timeline: ui.videoTimeline,
|
||||||
timelineTooltip: Ox._('timeline') + ' <span class="OxBright">' + Ox.SYMBOLS.shift + 'T</span>',
|
timelineTooltip: Ox._('timeline') + ' <span class="OxBright">' + Ox.SYMBOLS.shift + 'T</span>',
|
||||||
|
|
Loading…
Reference in a new issue