8000 Upgrade version to 0.6.4. · tmthecoder/flutter-webrtc@51e4621 · GitHub
[go: up one dir, main page]

Skip to content

Commit 51e4621

Browse files
committed
Upgrade version to 0.6.4.
1 parent c1b61b6 commit 51e4621

File tree

5 files changed

+22
-17
lines changed

5 files changed

+22
-17
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
# Changelog
22

33
--------------------------------------------
4+
[0.6.4] - 2021.05.02
5+
6+
* [Android] Fix getting screen capture on Huawei only successful in the first time. (#523)
7+
* [Android] Add configuration "cryptoOptions" in parseRTCConfiguration().
8+
* [Dart] Change getLocalDescription,getRemoteDescription,RTCRtpSenderWeb.track returns to nullable.
9+
* [Dart] Fixed bug in RTCPeerConnectionWeb.removeTrack.
10+
* [Dart] Change MediaStreamTrack.captureFrame returns to ByteBuffer to compatible with web API.
11+
* [Dart] Do null safety check in onRemoveStream,onRemoveTrack and MediaStream.getTrackById.
12+
* [Android] Add reStartCamera method when the camera is preempted by other apps.
13+
* [Web] Refactored RTCVideoRendererWeb and RTCVideoViewWeb, using video and audio HTML tags to render audio and video streams separately.
14+
415
[0.6.3] - 2021.04.03
516

617
* [Dart] Change RTCRtpSender.track to nullable.

example/lib/src/get_user_media_sample.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ class _GetUserMediaSampleState extends State<GetUserMediaSample> {
156156
content:
157157
Image.memory(frame.asUint8List(), height: 720, width: 1280),
158158
actions: <Widget>[
159-
FlatButton(
160-
child: Text('OK'),
159+
TextButton(
161160
onPressed: Navigator.of(context, rootNavigator: true).pop,
161+
child: Text('OK'),
162162
)
163163
],
164164
));

lib/src/native/utils.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class WebRTC {
2424
static bool get platformIsWeb => false;
2525

2626
static Future<T> invokeMethod<T, P>(String methodName,
27-
[dynamic? param]) async {
27+
[dynamic param]) async {
2828
var response = await _channel.invokeMethod<T>(
2929
methodName,
3030
param,

lib/src/web/rtc_video_renderer_impl.dart

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ const String _kDefaultErrorMessage =
3333
'No further diagnostic information can be determined or provided.';
3434

3535
class RTCVideoRendererWeb extends VideoRenderer {
36-
html.AudioElement? _audioElement;
37-
3836
RTCVideoRendererWeb() : _textureId = _textureCounter++;
3937

38+
html.AudioElement? _audioElement;
39+
4040
static int _textureCounter = 1;
4141

4242
html.MediaStream? _videoStream;
@@ -47,7 +47,7 @@ class RTCVideoRendererWeb extends VideoRenderer {
4747

4848
final int _textureId;
4949

50-
bool _mirror = false;
50+
bool mirror = false;
5151

5252
final _subscriptions = <StreamSubscription>[];
5353

@@ -56,13 +56,7 @@ class RTCVideoRendererWeb extends VideoRenderer {
5656
bool _muted = false;
5757

5858
set objectFit(String fit) =>
59-
findHtmlView()?.style?.objectFit = _objectFit = fit;
60-
61-
bool get mirror => _mirror;
62-
63-
set mirror(bool mirror) {
64-
_mirror = mirror;
65-
}
59+
findHtmlView()?.style.objectFit = _objectFit = fit;
6660

6761
@override
6862
int get videoWidth => value.width.toInt();
@@ -86,8 +80,8 @@ class RTCVideoRendererWeb extends VideoRenderer {
8680
var element = findHtmlView();
8781
value = value.copyWith(
8882
rotation: 0,
89-
width: element?.videoWidth?.toDouble() < 6D40 span class="pl-k">?? 0.0,
90-
height: element?.videoHeight?.toDouble() ?? 0.0,
83+
width: element?.videoWidth.toDouble() ?? 0.0,
84+
height: element?.videoHeight.toDouble() ?? 0.0,
9185
renderVideo: renderVideo,
9286
);
9387
}
@@ -204,7 +198,7 @@ class RTCVideoRendererWeb extends VideoRenderer {
204198
..style.objectFit = _objectFit
205199
..style.border = 'none'
206200
..srcObject = _videoStream
207-
..id = "video_$id"
201+
..id = 'video_$id'
208202
..setAttribute('playsinline', 'true');
209203

210204
_subscriptions.add(

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_webrtc
22
description: Flutter WebRTC plugin for iOS/Android/Destkop/Web, based on GoogleWebRTC.
3-
version: 0.6.3
3+
version: 0.6.4
44
homepage: https://github.com/cloudwebrtc/flutter-webrtc
55
environment:
66
sdk: '>=2.12.0 <3.0.0'

0 commit comments

Comments
 (0)
0