v0.1.3
dlna_dart
simple dlna client in pure dart,works fine in flutter,do all the job less than 500 lines
29Likes 15.8K30-day downloads140Pub points
AndroidiOSmacOSWindowsLinux
simple dlna client in pure dart | Dart 编写的DLNA投屏客户端
English project snapshot. Visit GitHub for the latest content.
simple dlna client
import 'dart:async';
import 'package:dlna_dart/dlna.dart';
main(List<String> args) async {
final searcher = DLNAManager();
final m = await searcher.start();
m.devices.stream.listen((deviceList) {
deviceList.forEach((key, value) async {
print(key);
if (value.info.friendlyName.contains('Wireless')) return;
print(value.info.friendlyName);
print(value.activeTime);
print('\r\n');
// final text = await value.position();
// final r = await value.seekByCurrent(text, 10);
// print(r);
});
});
// close the server,the closed server can be start by call searcher.start()
Timer(Duration(seconds: 30), () {
searcher.stop();
print('server closed');
});
// if you new DLNAManager() many times , you must use start(reusePort:true)
}
python version
https://github.com/suconghou/dlna-python
app example
https://github.com/suconghou/u2flutter
Dependency list 1 items
^6.5.0Start with your use case, compare repository activity, and check the original project before adopting it.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗