We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4e3ea0 commit 0e7c6fdCopy full SHA for 0e7c6fd
1 file changed
client/src/components/annotators/VideoAnnotator.vue
@@ -12,6 +12,10 @@ export default Vue.extend({
12
type: String,
13
required: true,
14
},
15
+ videoPlayerAttributes: {
16
+ type: Object,
17
+ default: () => ({}),
18
+ },
19
20
21
computed: {
@@ -25,6 +29,9 @@ export default Vue.extend({
25
29
this.video = video;
26
30
video.preload = 'auto';
27
31
video.src = this.videoUrl;
32
+ Object.entries(this.videoPlayerAttributes).forEach(([key, val]) => {
33
+ this.video[key] = val;
34
+ });
28
35
video.onloadedmetadata = () => {
36
video.onloadedmetadata = null;
37
this.width = video.videoWidth;
0 commit comments