change vttFieldName to ChapterVttFieldName in configuration

This commit is contained in:
aynsix
2020-01-23 16:28:27 +03:00
parent a41a87d7d0
commit a6e5e504ca
3 changed files with 16 additions and 1 deletions

View File

@@ -225,6 +225,14 @@ embed_bundle:
document: document:
player: flexpaper player: flexpaper
enable_pdfjs: true enable_pdfjs: true
video-editor:
ChapterVttFieldName: VideoTextTrackChapters
seekBackwardStep: 500 # in ms
seekForwardStep: 500 # in ms
playbackRates:
- 1
- '1.5'
- 3
geocoding-providers: geocoding-providers:
- -
map-provider: mapboxWebGL map-provider: mapboxWebGL

View File

@@ -84,6 +84,13 @@ class patch_410alpha20a implements patchInterface
$app['conf']->set(['geocoding-providers', 0, 'map-provider'], $geocodingName); $app['conf']->set(['geocoding-providers', 0, 'map-provider'], $geocodingName);
} }
// video-editor section change, replace 'vttFieldName' to 'ChapterVttFieldName'
if ($app['conf']->has(['video-editor', 'vttFieldName'])) {
$chapterVttFieldName = $app['conf']->get(['video-editor', 'vttFieldName']);
$app['conf']->remove(['video-editor', 'vttFieldName']);
$app['conf']->set(['video-editor', 'ChapterVttFieldName'], $chapterVttFieldName);
}
// remove registry classic section if exist // remove registry classic section if exist
if ($app['conf']->has(['registry', 'classic'])) { if ($app['conf']->has(['registry', 'classic'])) {
$app['conf']->remove(['registry', 'classic']); $app['conf']->remove(['registry', 'classic']);

View File

@@ -285,7 +285,7 @@ geocoding-providers:
provincefields: Province provincefields: Province
countryfields: 'Country, Pays' countryfields: 'Country, Pays'
video-editor: video-editor:
vttFieldName: VideoTextTrackChapters ChapterVttFieldName: VideoTextTrackChapters
seekBackwardStep: 500 # in ms seekBackwardStep: 500 # in ms
seekForwardStep: 500 # in ms seekForwardStep: 500 # in ms
playbackRates: playbackRates: