Make the video load bar work properly

ElementalAlchemist 2 weeks ago
parent 0aed412ccb
commit 9a8be2f875

@ -1,6 +1,7 @@
import {
Accessor,
Component,
createEffect,
createResource,
createSignal,
For,
@ -94,6 +95,11 @@ const RestreamerWithDefaults: Component<RestreamerDefaultProps> = (props) => {
streamEndTime: null,
});
createEffect(() => {
const info = streamVideoInfo();
console.log(info);
});
const videoURL = () => {
const streamInfo = streamVideoInfo();
const startTime = wubloaderTimeFromDateTime(streamInfo.streamStartTime);
@ -117,6 +123,8 @@ const RestreamerWithDefaults: Component<RestreamerDefaultProps> = (props) => {
streamVideoInfo={streamVideoInfo}
setStreamVideoInfo={setStreamVideoInfo}
showTimeRangeLink={false}
errorList={props.errorList}
setErrorList={props.setErrorList}
/>
<media-player src={videoURL()} preload="auto">
<media-provider />

Loading…
Cancel
Save