Giter Club home page Giter Club logo

Comments (7)

shivanshtalwar0 avatar shivanshtalwar0 commented on July 28, 2024 2

I am working on video room example optimization to illustrate all possible functionality with v2 api stay tuned

from flutter_janus_client.

shivanshtalwar0 avatar shivanshtalwar0 commented on July 28, 2024 1

@Osamaegy Janus server emits unpublished events you can use that event to set null for that particular remoterender and update the ui accordingly

from flutter_janus_client.

kzawadi avatar kzawadi commented on July 28, 2024

i have no good experience on video room but this is a Janus server event ....so if Janus does not receive video feed it will notify all the through server events ...within a time you specify in Janus config file (default is 1 second)

from flutter_janus_client.

CoMatu avatar CoMatu commented on July 28, 2024

I have some question: how can I track, when some turns off his video/audio ?

from flutter_janus_client.

kzawadi avatar kzawadi commented on July 28, 2024

@CoMatu janus server emit different event according to the state of webrtc of the device ... listen these event either by HTTP, websockets or MQTT (https://janus.conf.meetecho.com/docs/eventhandlers.html)
here is a good article from the main developers of the Janus webrtc server on events https://www.meetecho.com/blog/event-handlers-a-practical-example/

from flutter_janus_client.

CoMatu avatar CoMatu commented on July 28, 2024

@kzawadi Thanks for the answer! Have yoy some expamles for mute/unmute microphone?

from flutter_janus_client.

kzawadi avatar kzawadi commented on July 28, 2024

Hello, @CoMatu ... muting and unmuting the mic is flutter side and you have to handle it I mean it's not Janus related or even webrtc related directly.... those are just media controllers ...The following is my ideal implementation... I have a button on flutter is has two states e.g mute and unmuting... when this button is used it creates an event that can be listened to by all devices on that audio session here am using a pubsub server (PubNub or google pubsub) as you can see up to this point no webrtc related stuff so far ... and so all devices on that conference call when they get a certain notification from that pubsub server they know what it means e.g the sender of this message we just got has muted his/her mic ... and other stuff like kicking a misbehaving user from the session... an admin can send a pubsub notification to all devices on that session and the client when getting the notification it executes a required function like leaving the session. another use case a user raises a hand ..what happens logically is they send a pubsub notification and an admin side gets a notification that a user has raised his/her hand and if an admin is okay letting you talk he will just click allow but logical again it's a pubsub notification transmitted with an allow notifications... So what about Janus Server ...Janus server automatically measures decibel levels and emit events according to the decibel level of the devices... events here are "talking" and "stop talking"... and you can adjust the level of the session when starting the client on creating a session/room or joining.
{"audio_level_average": <average value of audio level (127=muted, 0='too loud', default=25)>, "audiolevel_event" : <true|false (whether to emit event to other users or not)>,}

Thanks

from flutter_janus_client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.