Jump to content
  • 0

Turn stream / broadcast on when link is cilcked


Kmax1940
 Share

Question

Can someone point me in the right direction?

I am going to have a list of links to pages with cameras embedded on them.
Like this:

Camera 1
Camera 2
Camera 3
Camera 4

When the user clicks the link I need it to take them to the page where that camera is embedded BUT I also need to automatically turn on the broadcast.

I know how to start the broadcast like this:
curl -X POST http://localhost:5080/LiveApp/rest/v2/broadcasts/broadcast-id/start

And I can figure out to do that with a link...

I guess the hard part is how to make the link do both things:
Start the broadcast AND go to the page with the camera embedded.

Thanks
 

 

Link to comment
Share on other sites

  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

2 answers to this question

Recommended Posts

  • 0

Hi @Kmax1940,

Have a good day. I have some ideas for that:

1. You may check status of broadcast in the player page. If it's offline, you can call CURL request in Camera 1.

2. You can check status of broadcasts in lists section. If it's offline, you can send a query/post parameter to Camera 1 page. So you can start in Camera 1. 

Both of these options can doable. You can show broadcast starting message before the playing.

Thanks you for the question. I think it's good idea for feature request. We may add an option for that. It will save a lot of bandwidth resources.

Best Regards,
Selim

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share


×
×
  • Create New...