RepositoryDartCNChina
suconghou

suconghou/dlna-dart

simple dlna client in pure dart | Dart 编写的DLNA投屏客户端

53stars
16forks
8issues
0views

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

https://github.com/suconghou/u2flutter

Similar Projects

Discover other similar projects and AI models.

RepositoryDart
localsend/localsend

An open-source cross-platform alternative to AirDrop

101.9k
Dec 2, 2026
RepositoryGo
alexballas/go2tv

Cast media files to Smart TVs and Chromecast devices.

1.2k
Nov 28, 2026
RepositoryTypeScript
immich-app/immich

High performance self-hosted photo and video management solution.

120.6k
Dec 1, 2026
RepositoryDart
iampawan/FlutterExampleApps

[Example APPS] Basic Flutter apps, for flutter devs.

21.5k
Aug 9, 2024
RepositoryDart
CarGuo/gsy_github_app_flutter

Flutter 超完整的开源项目,功能丰富,适合学习和日常使用。GSYGithubApp 系列的优势:我们目前已经拥有 Flutter、Weex、ReactNative、Kotlin View、Kotlin Jetpack Compose ,Compose MultiPlatform,Harmony ArkUI 七个版本,功能齐全,项目框架内技术涉及面广,完成度高,持续维护,配套文章,适合全面学习,对比参考。

15.5k
Oct 25, 2026
RepositoryDart
cfug/dio

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.

12.8k
Nov 22, 2026
RepositoryDart
felangel/bloc

A predictable state management library for Dart

12.5k
Dec 1, 2026
RepositoryDart
flame-engine/flame

A Flutter based game engine.

10.8k
Dec 2, 2026
RepositoryDart
Anxcye/anx-reader

Featuring powerful AI capabilities and supporting various e-book formats, it makes reading smarter and more focused.

9.3k
Oct 17, 2026