dlna_dart
0.1.3, released 6 days ago by an unverified publisher
A simple DLNA client in pure Dart for discovering and interacting with media devices.
What it does
It provides a DLNA client implementation in pure Dart that allows applications to search for DLNA devices on the network, listen to device discovery streams, and control playback parameters like streaming media to compatible devices.
AI-written summary of version 0.1.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to discover and interact with DLNA media renderers or servers from a Dart or Flutter application.
- You want a lightweight, pure-Dart DLNA client implementation.
Skip it when
- You require a full-fledged UPnP control point framework beyond basic DLNA media client operations.
- You need platform-specific media casting APIs like Chromecast or AirPlay.
Strengths
- Written in pure Dart and works fine in Flutter across multiple platforms.
- Small codebase under 500 lines.
- Supports device streaming, active time tracking, and SSDP handling.
Weaknesses
- Limited documentation and examples.
- Relies entirely on community maintenance with minimal built-in advanced features.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
not documented
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(value.info.friendlyName);
});
});
}Works with
Packages commonly used together with dlna_dart: ones it builds on, ones built on it, and its own family.