Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【web端】-【trtc-js-sdk 4.15.19】【请问如何正确的切换到前置/后置主摄摄像头】 #571

Open
wjfc opened this issue Dec 20, 2023 · 0 comments

Comments

@wjfc
Copy link

wjfc commented Dec 20, 2023

【当前现象】
调用,TRTC.getCameras() 方法,会返回多个摄像头信息,且不同手机返回的信息描述不一样。 具体打印信息可见附件两张图,第一张ios,第二张安卓,都是在微信内置浏览器中打开的。

问题1: ios 和 安卓的信息不一样, ios label 是中文,安卓 label 是英文
问题2: 返回的摄像头列表中,前置和后置都是多个的,无法确认切换的时候,应该切到哪一个

【集成包】
TRTC精简版

【机型】
如iPhone 13pro 、荣耀30pro

【相关附件】
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant