Comments (11)
not muted how? you can still hear audio from remote?
from api-examples-web.
@plutoless
I am testing with two computer close to each other, then both of them get feedback even if both the computer is muted.
from api-examples-web.
@ChurikiTenna please have you found a solution for this? cc @plutoless
from api-examples-web.
@laviedegeorge are you also having this issue? do you have a minimal reproducible project? i can't reproduce from my end.
from api-examples-web.
@plutoless I don't have a minimal reproducible project. I am integrating it into an existing product. Please if you have any minimal reproducible project with the mute buttons for audio and video working, can I have a look? Or if possible, I don't mind a call at your own time frame.
from api-examples-web.
@laviedegeorge you can find our demo here
https://webdemo.agora.io/
from api-examples-web.
@plutoless the demo codes are not in react. Also, I have tried using setMuted
and setEnabled
to mute audio and video but it only mutes on the clients' side but still streams on the remote users' end.
Please note that the remote user is using the Flutter SDK while the client (ME) is using the Web SDK.
from api-examples-web.
ok we have an internal react demo, let's see if i can find that
from api-examples-web.
@plutoless ok thank you. I think I have come across it. (Not sure if it is the correct one) but most of the demos I have seen, do not have the mute functionality.
Also here is a snippet of what I have.
`
const mute = async (type: "audio" | "video") => {
console.log("tracksss", tracks);
const [audio, video] = tracks;
try {
if (type === "audio") {
await audio.setMuted(!trackState.audio);
setTrackState((ps) => {
return { ...ps, audio: !ps.audio };
});
} else if (type === "video") {
await video.setMuted(!trackState.video);
console.log("is video muted:", video.muted);
setTrackState((ps) => {
return { ...ps, video: !ps.video };
});
}
} catch (error) {
console.error("Error from mute function", error);
}
};
`
from api-examples-web.
hello, when you call setEnabled api there will be sdk log in the console, you can check whether it is correct.
also ensure that the audioTrack is correctly created and usable.If you are interested, you can also refer to: https://github.com/AgoraIO-Community/Agora-RTC-React
from api-examples-web.
@QinZhen001 thank you for your suggestion. I forget to mention that I got headway yesterday with the React demo in the examples. Most likely I am doing something wrong but the only difference I can see for now is that the example is using a custom hook. I am currently refactoring my code, let's see if it works. Also, I noticed that https://github.com/AgoraIO-Community/Agora-RTC-React uses the react wrapper agora-rtc-react
and the React Demo uses agora-rtc-sdk-ng
. Please which of them is preferred for a React project? cc @plutoless
from api-examples-web.
Related Issues (20)
- 怎么建立通道 HOT 2
- Unable to set volume indicator interval HOT 3
- OpenLive在首次加入时,接口请求的参数不对,导致接口一直报502 HOT 1
- Local camera not shown after granting camera use on Chrome HOT 1
- OpenLive can't run HOT 3
- @iceshou 您的token是怎么生成的呢
- OPEN-LIVE的demo报错频道名未定义 HOT 1
- 请教一下,自定义视频源和自定义音视频采集两个demo有啥区别 HOT 1
- Invalid token, authorized failed HOT 9
- calling AgoraRTC.createMicrophoneAndCameraTracks() does not show prompt permission for audio and camera in chrome HOT 1
- web demo 提示 CAN_NOT_GET_GATEWAY_SERVER 错误 HOT 1
- AgoraRTCException: AgoraRTCError NOT_SUPPORTED: your browser does not support setting the audio output device HOT 5
- 报错 TypeError: e.AudioBuffer is not a constructor HOT 2
- user-info-updated emits wrong state about video audio initial two states HOT 1
- basicVideoCall项目中用户无法看到主播视频 HOT 2
- I want to build a twitch clone but i couldnt understand how to use obs with agora
- AgoraRTCError UNEXPECTED_RESPONSE: ERR_SUBSCRIBE_REQUEST_INVALID: no such stream id
- change audio source input on the fly!
- How to style the video player?
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 api-examples-web.