barbican-reset 2.16.1 → 2.16.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,17 @@
1
1
  <template>
2
2
 
3
3
  <div>
4
- <br-alert v-if="data.isExpired" error center inline>Event has passed.</br-alert>
5
- <br-alert v-if="data.status === 'not_found'" error center inline>That video cannot be found.</br-alert>
6
4
  <div v-if="shouldPlayVideo">
7
5
  <video ref="videoPlayer" class="video-js margin-bottom-2"></video>
8
6
  </div>
7
+ <div v-else>
8
+ <br-alert v-if="data.status === 'pre-event'" center inline>This event has not started yet.</br-alert>
9
+ <br-alert v-if="data.status === 'starting'" center inline>This event is starting.</br-alert>
10
+ <br-alert v-if="data.status === 'not-found'" error center inline>That video cannot be found.</br-alert>
11
+ <br-alert v-if="data.isExpired" error center inline>This event has now passed.</br-alert>
12
+ <p v-if="updateInterval">This page updates every {{ updateInterval / 1000 }} seconds</p>
13
+ </div>
14
+
9
15
 
10
16
  <h2 v-html="data.title" class="margin-bottom-1"></h2>
11
17
 
@@ -37,12 +43,16 @@
37
43
  import BrAlert from './br_alert'
38
44
  import { DateTime } from 'luxon';
39
45
  import videojs from "video.js";
46
+ require('@silvermine/videojs-airplay')(videojs);
40
47
 
41
48
  export default {
42
49
  props: {
43
50
  data: {
44
51
  type: Object
45
52
  },
53
+ updateInterval: {
54
+ type: Number
55
+ }
46
56
  },
47
57
  data() {
48
58
  return {
@@ -67,7 +77,12 @@ export default {
67
77
  src: this.data.source,
68
78
  type: 'application/x-mpegURL'
69
79
  }
70
- ]
80
+ ],
81
+ plugins: {
82
+ airPlay: {
83
+ addButtonToControlBar: true
84
+ }
85
+ }
71
86
  }
72
87
  this.$nextTick(() => {
73
88
  this.player = videojs(this.$refs.videoPlayer, options, () => {
package/package.json CHANGED
@@ -3,6 +3,7 @@
3
3
  "name": "Paul Heading"
4
4
  },
5
5
  "dependencies": {
6
+ "@silvermine/videojs-airplay": "^1.3.0",
6
7
  "bootstrap-vue": "^2.21.2",
7
8
  "express": "^4.18.1",
8
9
  "focus-visible": "^5.2.0",
@@ -55,5 +56,5 @@
55
56
  "watch:patterns": "cd patterns && gulp watch"
56
57
  },
57
58
  "style": "dist/css/barbican-reset.css",
58
- "version": "2.16.1"
59
+ "version": "2.16.3"
59
60
  }