Comments (5)
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.
from flutter_janus_client.
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.
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.
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)
- hard decoding HOT 3
- Failing to build for web HOT 4
- Problem with microphone HOT 2
- In Android call directly run on a Speaker mode. HOT 1
- Bump http version to 1.0.0 HOT 2
- android exception HOT 10
- How to check session's status in text room plugin HOT 2
- Switch audio Route HOT 2
- Re-joining a call not working for videoroom plugin HOT 15
- Can't mute or use speaker HOT 7
- Audio Output on IOS HOT 2
- RTCVideoRenderer Video rendering and steaming issue HOT 3
- Cannot capture screen whith no media devices HOT 3
- isUnifiedPlan = true is not working HOT 7
- Error When try to create an answer HOT 16
- IOS device not publishing their own video in video room HOT 11
- [Linux] Error when disposing VideoRoomPlugin HOT 2
- join google meet only as audience not publishing anything HOT 9
- Cant use RTCIceServer without credential/password HOT 2
- full_trickle crashes videoroom
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_janus_client.