Giter Club home page Giter Club logo

Comments (5)

shivanshtalwar0 avatar shivanshtalwar0 commented on September 2, 2024

it is already dynamic and you can provide your own offer in offer property if you want to otherwise it will assume you want to send audio and video

from flutter_janus_client.

shivanshtalwar0 avatar shivanshtalwar0 commented on September 2, 2024

from flutter_janus_client.

UserSense avatar UserSense commented on September 2, 2024

offer = await this.createOffer(audioRecv: false, audioSend: true, videoRecv: false, videoSend: true);

The above line is fixed, resulting in janus waiting for audio track.

Example:

 final mediaConstraints = <String, dynamic>{'audio': false, 'video': true};
 MediaStream? ms = await _janusPluginHandle[kind]!.initializeMediaDevices(useDisplayMediaDevices: true, mediaConstraints: mediaConstraints);

afterwards I call publishMedia

stream fails to start flowing, waiting for audio track (which will never arrive)

Changing

offer = await this.createOffer(audioRecv: false, audioSend: true, videoRecv: false, videoSend: true);
to
offer = await this.createOffer(audioRecv: false, audioSend: false, videoRecv: false, videoSend: true);

Results in the expected behaviour, and the stream starts to flow.

from flutter_janus_client.

UserSense avatar UserSense commented on September 2, 2024

Never mind. I get the idea about providing an Offer. My expectations were different based on janus client js. I expected options audioRecv, audioSend, videoRecv, videoSend as parameters of publishMedia instead of offer.

from flutter_janus_client.

shivanshtalwar0 avatar shivanshtalwar0 commented on September 2, 2024

please note:-janus_client is similar to Janus Js in some senses but not exactly like janusjs as it encapsulates all webrtc related stack but janusclient exposes both encapsulated methods and direct webRTCHandle(which contains peerConnection object, if they want to play arround with underlying apis for different scenarior) to let developers freely use whichever API is suited for their use case

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.