[go: up one dir, main page]

Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch stream #6669

Closed
flex23sky opened this issue Sep 25, 2024 · 2 comments
Closed

Switch stream #6669

flex23sky opened this issue Sep 25, 2024 · 2 comments

Comments

@flex23sky
Copy link

I have 3 ip cameras and i would like fast switch between stream

How to implement switch stream without (minimal) latency in webapp?

Current my implementation is not fast

useEffect(() => {
    webrtcStreamStore.play(data.streamId) // >> adaptor.play

    return () => {
      webrtcStreamStore.stop(data.streamId) // >> adaptor.stop
    }
  }, [roomId])
@SelimEmre
Copy link
Contributor

Hi @flex23sky,

If you only have 3 IP cameras and data transfer cost is not a major concern, I would recommend playing all 3 simultaneously. You can show or hide them as needed, and switch between them using the HTML video tag to control their visibility.

@burak-58
Copy link
Contributor

Hi @flex23sky for the question and @SelimEmre for the contribution.

@flex23sky can you give more info for the scenario? Are you playing with WebRTC or HLS?
If it is WebRTC you may check multitrack playback.

Also let me convert this to a github discussions.

@ant-media ant-media locked and limited conversation to collaborators Sep 30, 2024
@burak-58 burak-58 converted this issue into discussion #6679 Sep 30, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants