OpenPeriscope icon indicating copy to clipboard operation
OpenPeriscope copied to clipboard

Mute and Unmute

Open kewalsk opened this issue 9 years ago • 7 comments

Did you consider to add the information if the user is muted (is_muted) and to add function buttons to mute/unmute?

kewalsk avatar Aug 23 '16 09:08 kewalsk

@kewalsk, I don't plan to add mute/unmute functions for now.

Pmmlabs avatar Aug 24 '16 13:08 Pmmlabs

Then I will do it myself. It seems to be pretty strightforward.

kewalsk avatar Aug 25 '16 13:08 kewalsk

There will be not only API call, because notifications in OpenPeriscope are implemented by periodical checking new broadcasts. If you call mute API method, you will stop receiving push notifications on mobile devices, but not in OpenPeriscope. i.e. you need to store list of muted users, and to exclude them from followingBroadcastFeed response.

Pmmlabs avatar Aug 25 '16 14:08 Pmmlabs

So the notifications in OpenPeriscope will be sent even if the user is muted from mobile device? Checking is_muted just before creating Notification object could be solution but it requires additional api call.

kewalsk avatar Aug 25 '16 14:08 kewalsk

Yes, it's flaw, I initially wanted to implement it in the right way - using Push API (which is experimental technology and supported by newest Chrome and Firefox only), but didn't find out this, and used periodical ajax. Therefore can be some difficulties.

Pmmlabs avatar Aug 25 '16 20:08 Pmmlabs

I don't have experience with push messaging but maybe FCM or GCM could be solution, or is this the same?

kewalsk avatar Sep 04 '16 19:09 kewalsk

Yes, Periscope uses GCM but I don't know how to implement it on JS for now

Pmmlabs avatar Sep 05 '16 14:09 Pmmlabs