Fix seeking (#3096)

* Update apikey when generating/clearing
* Fix seeking on systems with api key
This commit is contained in:
WithoutPants
2022-11-08 13:45:54 +11:00
committed by GitHub
parent 962bc7df4e
commit b9e07ade92
3 changed files with 24 additions and 7 deletions

View File

@@ -397,8 +397,10 @@ export const ScenePlayer: React.FC<IScenePlayerProps> = ({
const sourceSelector = player.sourceSelector();
sourceSelector.setSources(
scene.sceneStreams.map((stream) => {
const src = new URL(stream.url);
const isDirect =
stream.url.endsWith("/stream") || stream.url.endsWith("/stream.m3u8");
src.pathname.endsWith("/stream") ||
src.pathname.endsWith("/stream.m3u8");
return {
src: stream.url,