Search packages, repositories and app categories

GitHub repositorysuconghou/dlna-dart

dlna-dart

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

dlna-dart project cover
Stars
52
Forks
15
Last push (UTC)
Aug 28, 2026
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

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

suconghou GitHub avatar
GitHub author

suconghou ↗

go php node python

LanguagesDart

Categories

Packages published by this repository

Dependencies used

Dependency list 1 items

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗