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
|
|
@ -147,6 +147,7 @@ pandora.ui.editPanel = function(isEmbed) {
|
|||
})
|
||||
),
|
||||
subtitles: getSubtitles(edit.clips),
|
||||
subtitlesOffset: ui.videoSubtitlesOffset,
|
||||
timeline: ui.videoTimeline,
|
||||
timelineTooltip: Ox._('timeline') + ' <span class="OxBright">' + Ox.SYMBOLS.shift + 'T</span>',
|
||||
video: getVideos(),
|
||||
|
|
|
|||
|
|
@ -74,6 +74,7 @@ pandora.ui.editor = function(data) {
|
|||
subtitles: data.subtitles,
|
||||
subtitlesDefaultTrack: Ox.getLanguageNameByCode(pandora.site.language),
|
||||
subtitlesLayer: data.subtitlesLayer,
|
||||
subtitlesOffset: ui.videoSubtitlesOffset,
|
||||
subtitlesTrack: Ox.getLanguageNameByCode(pandora.site.language),
|
||||
timeline: ui.videoTimeline,
|
||||
timelines: pandora.site.timelines,
|
||||
|
|
|
|||
|
|
@ -104,6 +104,7 @@ pandora.ui.embedPlayer = function() {
|
|||
scaleToFill: ui.videoScale == 'fill',
|
||||
showIconOnLoad: true,
|
||||
subtitles: video.subtitles,
|
||||
subtitlesOffset: ui.videoSubtitlesOffset,
|
||||
timeline: options.playInToOut ? function(size, i) {
|
||||
return pandora.getMediaURL('/' + options.item
|
||||
+ '/timelineantialias'
|
||||
|
|
|
|||
|
|
@ -51,6 +51,7 @@ pandora.ui.player = function(data) {
|
|||
smallTimelineURL: pandora.getMediaURL('/' + ui.item + '/timeline16p.jpg'),
|
||||
subtitlesDefaultTrack: Ox.getLanguageNameByCode(pandora.site.language),
|
||||
subtitlesLayer: data.subtitlesLayer,
|
||||
subtitlesOffset: ui.videoSubtitlesOffset,
|
||||
subtitlesTrack: Ox.getLanguageNameByCode(pandora.site.language),
|
||||
timeline: ui.videoTimeline,
|
||||
timelineTooltip: Ox._('timeline') + ' <span class="OxBright">' + Ox.SYMBOLS.shift + 'T</span>',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue