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

本地预览播放视频 与 传输视频 分开 #95

Closed
hi-glenn opened this issue May 22, 2019 · 2 comments
Closed

本地预览播放视频 与 传输视频 分开 #95

hi-glenn opened this issue May 22, 2019 · 2 comments

Comments

@hi-glenn
Copy link

您好,
我想把本地预览播放的视频 与 传输给远程的视频分开,该怎么做 ?

比如:
我本地预览播放的视频是 1080p,但传输给远程是720p,两个视频源来自同一个摄像头。

@cloudwebrtc
Copy link
Member

我觉得可以通过修改底层代码来修改,公共API里面应该无法做到你的需求
https://github.com/cloudwebrtc/flutter-webrtc/blob/master/android/src/main/java/com/cloudwebrtc/webrtc/GetUserMediaImpl.java#L682
例如在上面的代码行,你可以设置采集分辨率为1080p, 但输出到pc里面的为720p,我不确定是否能正常工作,你可以自己尝试修改。

@hi-glenn
Copy link
Author

这个方法有效,非常感谢

evdokimovs added a commit to evdokimovs/flutter-webrtc that referenced this issue Jun 6, 2024
Co-authored-by: rogurotus <rogurotus@gmail.com>
Co-authored-by: alexlapa <lapa.alex@ex.ua>
Co-authored-by: Kai Ren <tyranron@gmail.com>
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

2 participants