pass SDK and version number to server, v0.5.0 (#14)
* pass SDK and version number to server, v0.5.0 * missing files and formatting * make format * line length comment for VSCode
This commit is contained in:
@@ -1,5 +1,15 @@
|
|||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
|
## 0.5.0
|
||||||
|
|
||||||
|
* major update with new event system
|
||||||
|
* supports simulcast for iOS
|
||||||
|
* support for background audio for iOS
|
||||||
|
* support for protocol 3, subscriber as primary connection
|
||||||
|
* improved audio management for iOS, mic indicator only when audio tracks published
|
||||||
|
* fires TrackUnpublished for local tracks
|
||||||
|
* fixed occasional crashes during publishing
|
||||||
|
|
||||||
## 0.4.1
|
## 0.4.1
|
||||||
|
|
||||||
* fixed video rendering blank after widget changes
|
* fixed video rendering blank after widget changes
|
||||||
|
|||||||
@@ -10,4 +10,7 @@ proto:
|
|||||||
fi \
|
fi \
|
||||||
}
|
}
|
||||||
|
|
||||||
.PHONY: proto
|
format:
|
||||||
|
flutter format --set-exit-if-changed -l 100 .
|
||||||
|
|
||||||
|
.PHONY: proto format
|
||||||
|
|||||||
@@ -277,6 +277,19 @@ These controls are accessible on the `RemoteTrackPublication` object.
|
|||||||
|
|
||||||
For more info, see [Subscriber controls](https://docs.livekit.io/guides/room/receive#subscriber-controls).
|
For more info, see [Subscriber controls](https://docs.livekit.io/guides/room/receive#subscriber-controls).
|
||||||
|
|
||||||
|
## Development
|
||||||
|
|
||||||
|
The project is configured to lint with line length of 100. If using VS Code, set the following in your `settings.json`
|
||||||
|
|
||||||
|
```json
|
||||||
|
"dart.lineLength": 100,
|
||||||
|
"[dart]": {
|
||||||
|
"editor.rulers": [
|
||||||
|
100
|
||||||
|
]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
Apache License 2.0
|
Apache License 2.0
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ packages:
|
|||||||
name: flutter_webrtc
|
name: flutter_webrtc
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.6.9"
|
version: "0.6.10"
|
||||||
google_fonts:
|
google_fonts:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@@ -155,7 +155,7 @@ packages:
|
|||||||
path: ".."
|
path: ".."
|
||||||
relative: true
|
relative: true
|
||||||
source: path
|
source: path
|
||||||
version: "0.4.1"
|
version: "0.5.0"
|
||||||
logging:
|
logging:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
|
|||||||
+6
-1
@@ -6,6 +6,7 @@ import 'extensions.dart';
|
|||||||
import 'options.dart';
|
import 'options.dart';
|
||||||
import 'track/options.dart';
|
import 'track/options.dart';
|
||||||
import 'types.dart';
|
import 'types.dart';
|
||||||
|
import 'version.dart';
|
||||||
|
|
||||||
extension UriExt on Uri {
|
extension UriExt on Uri {
|
||||||
bool get isSecureScheme => ['https', 'wss'].contains(scheme);
|
bool get isSecureScheme => ['https', 'wss'].contains(scheme);
|
||||||
@@ -36,6 +37,8 @@ class Utils {
|
|||||||
if (options != null) 'auto_subscribe': options.autoSubscribe ? '1' : '0',
|
if (options != null) 'auto_subscribe': options.autoSubscribe ? '1' : '0',
|
||||||
if (reconnect) 'reconnect': '1',
|
if (reconnect) 'reconnect': '1',
|
||||||
'protocol': protocol.toStringValue(),
|
'protocol': protocol.toStringValue(),
|
||||||
|
'sdk': 'flutter',
|
||||||
|
'version': clientVersion,
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -45,7 +48,9 @@ class Utils {
|
|||||||
int height,
|
int height,
|
||||||
) {
|
) {
|
||||||
final double aspect = width / height;
|
final double aspect = width / height;
|
||||||
if ((aspect - 16.0 / 9.0).abs() < (aspect - 4.0 / 3.0).abs()) return VideoParameters.presets169;
|
if ((aspect - 16.0 / 9.0).abs() < (aspect - 4.0 / 3.0).abs()) {
|
||||||
|
return VideoParameters.presets169;
|
||||||
|
}
|
||||||
return VideoParameters.presets43;
|
return VideoParameters.presets43;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
const clientVersion = '0.5.0';
|
||||||
+1
-1
@@ -101,7 +101,7 @@ packages:
|
|||||||
name: flutter_webrtc
|
name: flutter_webrtc
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.6.9"
|
version: "0.6.10"
|
||||||
http:
|
http:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
|
|||||||
+4
-4
@@ -1,6 +1,6 @@
|
|||||||
name: livekit_client
|
name: livekit_client
|
||||||
description: Flutter Client SDK for LiveKit
|
description: Flutter Client SDK for LiveKit
|
||||||
version: 0.4.1
|
version: 0.5.0
|
||||||
homepage: https://livekit.io
|
homepage: https://livekit.io
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
@@ -10,13 +10,13 @@ environment:
|
|||||||
dependencies:
|
dependencies:
|
||||||
flutter:
|
flutter:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
|
|
||||||
http: ^0.13.3
|
http: ^0.13.3
|
||||||
logging: ^1.0.2
|
logging: ^1.0.2
|
||||||
uuid: ^3.0.4
|
uuid: ^3.0.4
|
||||||
synchronized: ^3.0.0
|
synchronized: ^3.0.0
|
||||||
protobuf: ^2.0.0
|
protobuf: ^2.0.0
|
||||||
flutter_webrtc: ^0.6.9
|
flutter_webrtc: ^0.6.10
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
|
|||||||
Reference in New Issue
Block a user