Chinasuconghou/dlna-dart
simple dlna client in pure dart | Dart 编写的DLNA投屏客户端
dlna_dart
simple dlna client
Getting Started
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
Similar Projects
Discover other similar projects and AI models.
High performance self-hosted photo and video management solution.
Flutter 超完整的开源项目,功能丰富,适合学习和日常使用。GSYGithubApp 系列的优势:我们目前已经拥有 Flutter、Weex、ReactNative、Kotlin View、Kotlin Jetpack Compose ,Compose MultiPlatform,Harmony ArkUI 七个版本,功能齐全,项目框架内技术涉及面广,完成度高,持续维护,配套文章,适合全面学习,对比参考。
A powerful HTTP client for Dart and Flutter, which supports global settings, Interceptors, FormData, aborting and canceling a request, files uploading and downloading, requests timeout, custom adapters, etc.
Featuring powerful AI capabilities and supporting various e-book formats, it makes reading smarter and more focused.