Make the video load bar work properly

thrimbletrimmer-solid
ElementalAlchemist 2 weeks ago
parent d0640bf5c8
commit 15d4a4e3cf

@ -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