Use master playlist for videojs

This commit is contained in:
Justin Wong 2022-08-17 23:28:32 +08:00 committed by Blake Blackshear
parent 89c04acdff
commit 7c57c8c2da
3 changed files with 3 additions and 3 deletions

View File

@ -57,7 +57,7 @@ export const HistoryVideo = ({
}
video.src({
src: `${apiHost}/vod/event/${id}/index.m3u8`,
src: `${apiHost}/vod/event/${id}/master.m3u8`,
type: 'application/vnd.apple.mpegurl',
});
video.poster(`${apiHost}/api/events/${id}/snapshot.jpg`);

View File

@ -504,7 +504,7 @@ export default function Events({ path, ...props }) {
autoplay: true,
sources: [
{
src: `${apiHost}/vod/event/${event.id}/index.m3u8`,
src: `${apiHost}/vod/event/${event.id}/master.m3u8`,
type: 'application/vnd.apple.mpegurl',
},
],

View File

@ -62,7 +62,7 @@ export default function Recording({ camera, date, hour = '00', minute = '00', se
description: `${camera} recording @ ${h.hour}:00.`,
sources: [
{
src: `${apiHost}/vod/${year}-${month}/${day}/${h.hour}/${camera}/index.m3u8`,
src: `${apiHost}/vod/${year}-${month}/${day}/${h.hour}/${camera}/master.m3u8`,
type: 'application/vnd.apple.mpegurl',
},
],