Loopcast / beta

1 stars 0 forks source link

Show "confirm" question when user try to leave the room while it's live #190

Closed hems closed 9 years ago

hems commented 9 years ago

If the user tries to navigate away, and also on body.unload we should have a "Confirm" box telling the user about leaving the page and letting the stream live.

Something like this on body.unload would work:

body.unload= ->
confirm( "If you leave the room your stream will still be live, would you like to close this tab anyway?" )

And for now on navigation change i believe the confirm might be OK although in the future we will probably replace for a designed pop up?

@stefanoortisi / @thomas1602 what you guys think?

stefanoortisi commented 9 years ago

Yes, it's fine for me

thomas1602 commented 9 years ago

Cool, I think the message could be something like "If you leave the room your stream will still be live until you click "Stop broadcast", would you like to exit the room anyway?

stefanoortisi commented 9 years ago

@hems It looks like when I press the button GO OFFLINE, and i refresh the room page, the live flag is still set to true. Is it possible?

stefanoortisi commented 9 years ago

I was joking, it's working :dancer:

thomas1602 commented 9 years ago

What if you close your tab or browser? You don't get any message but you're still live

thomas1602 commented 9 years ago

I think we should also add a very simple style to the alert box. Could be the same style as the modal for publishing your recording