8000 Merge pull request #298 from wer-mathurin/bug/#295 · model-lib/flutter-webrtc@f39894a · GitHub
[go: up one dir, main page]

Skip to content

Commit f39894a

Browse files
authored
Merge pull request flutter-webrtc#298 from wer-mathurin/bug/flutter-webrtc#295
FIX - flutter-webrtc#295
2 parents 0759225 + 685137d commit f39894a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ example/android/gradle*
1313
WorkspaceSettings.xcsettings
1414
example/.flutter-plugins
1515
example/android/local.properties
16+
.dart_tool/package_config.json

lib/web/rtc_video_view.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class RTCVideoRenderer {
8181
ui.platformViewRegistry.registerViewFactory(stream.id, (int viewId) {
8282
final x = HTML.VideoElement();
8383
x.autoplay = true;
84-
x.muted = false;
84+
x.muted = _srcObject.ownerTag == 'local';
8585
x.srcObject = stream.jsStream;
8686
x.id = stream.id;
8787
_htmlVideoElement = x;
@@ -149,6 +149,7 @@ class RTCVideoRenderer {
149149

150150
Future<Null> dispose() async {
151151
//TODO?
152+
//https://stackoverflow.com/questions/3258587/how-to-properly-unload-destroy-a-video-element/28060352
152153
}
153154
}
154155

0 commit comments

Comments
 (0)
0