@drawbridge/components 0.0.58 → 0.0.59
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.
- package/dist/video.js +12 -0
- package/dist/video.mjs +12 -0
- package/package.json +1 -1
package/dist/video.js
CHANGED
|
@@ -128,6 +128,18 @@ var Video = ({
|
|
|
128
128
|
attributes: {
|
|
129
129
|
"aria-label": "Decorative Video",
|
|
130
130
|
poster
|
|
131
|
+
},
|
|
132
|
+
// Cap hls.js buffer-ahead. The default (~30s) makes a short
|
|
133
|
+
// looping hero eagerly pull most of the clip the instant
|
|
134
|
+
// playback starts — a big CDN-egress + mobile-data burst that
|
|
135
|
+
// multiplies under a viral spike. 10s buffers ~1-2 segments
|
|
136
|
+
// ahead and spreads the load across playback instead.
|
|
137
|
+
// IMPORTANT: do NOT set autoStartLoad:false here — a non-active
|
|
138
|
+
// gallery video must still load metadata so onDuration fires
|
|
139
|
+
// and its progress-bar duration is known before the carousel
|
|
140
|
+
// reaches it (see drawbridge-share template-subdomain-gallery).
|
|
141
|
+
hlsOptions: {
|
|
142
|
+
maxBufferLength: 10
|
|
131
143
|
}
|
|
132
144
|
}
|
|
133
145
|
},
|
package/dist/video.mjs
CHANGED
|
@@ -55,6 +55,18 @@ var Video = ({
|
|
|
55
55
|
attributes: {
|
|
56
56
|
"aria-label": "Decorative Video",
|
|
57
57
|
poster
|
|
58
|
+
},
|
|
59
|
+
// Cap hls.js buffer-ahead. The default (~30s) makes a short
|
|
60
|
+
// looping hero eagerly pull most of the clip the instant
|
|
61
|
+
// playback starts — a big CDN-egress + mobile-data burst that
|
|
62
|
+
// multiplies under a viral spike. 10s buffers ~1-2 segments
|
|
63
|
+
// ahead and spreads the load across playback instead.
|
|
64
|
+
// IMPORTANT: do NOT set autoStartLoad:false here — a non-active
|
|
65
|
+
// gallery video must still load metadata so onDuration fires
|
|
66
|
+
// and its progress-bar duration is known before the carousel
|
|
67
|
+
// reaches it (see drawbridge-share template-subdomain-gallery).
|
|
68
|
+
hlsOptions: {
|
|
69
|
+
maxBufferLength: 10
|
|
58
70
|
}
|
|
59
71
|
}
|
|
60
72
|
},
|