v0.1.1
dlna_dart
순수한 다트로 작성된 간단한 DLNA 클라이언트로, 플러터에서 잘 작동하며 500줄 미만의 코드로 모든 작업을 수행합니다.
29좋아요 1만30일 다운로드130Pub 점수
AndroidiOSmacOSWindowsLinux
순수한 다트로 작성된 간단한 DLNA 클라이언트 | 다트로 작성된 DLNA 스트리밍 클라이언트
^6.5.0아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
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