Make the video load bar work properly

ElementalAlchemist 2 weeks ago
parent 0aed412ccb
commit 9a8be2f875

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

Loading…
Cancel
Save