Skip to content

Commit 83f5fe3

Browse files
committed
Use video file in inlineVideo story
1 parent 92aa5cb commit 83f5fe3

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

entry_types/scrolled/lib/pageflow_scrolled/seeds.rb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,21 @@ def create_files(draft_entry, file_type, file_data_by_name, skip_encoding = fals
106106
if %i[audio video].include?(file_type)
107107
if skip_encoding
108108
file.update!(state: 'encoded')
109+
if file_type.eql?(:video)
110+
file.update!(output_presences: {
111+
"dash-playlist" => true,
112+
"hls-playlist" => true,
113+
"dash-medium"=> true,
114+
"hls-medium" => true,
115+
"dash-high" => true,
116+
"hls-high" => true,
117+
"dash-low" => true,
118+
"hls-low" => true,
119+
"medium" => true,
120+
"high" => true,
121+
"low" => true
122+
})
123+
end
109124
else
110125
file.publish!
111126
end

entry_types/scrolled/package/src/contentElements/inlineVideo/stories.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {storiesOfContentElement, filePermaId} from 'pageflow-scrolled/spec/suppo
44
storiesOfContentElement(module, {
55
typeName: 'inlineVideo',
66
baseConfiguration: {
7-
id: null,
7+
id: filePermaId('videoFiles', 'interview_toni'),
88
autoplay: false,
99
controls: false
1010
}

entry_types/scrolled/package/src/frontend/Video.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,5 @@ function VideoPlayer(props) {
8282

8383
Video.defaultProps = {
8484
interactive: false,
85-
controls: false
85+
controls: true
8686
};

0 commit comments

Comments
 (0)