dlna 0.0.5 copy "dlna: ^0.0.5" to clipboard
dlna: ^0.0.5 copied to clipboard

A simple DLNA DMC library implemented by Dart. It is tiny and only the basic network video casting function is supported.

example/main.dart

import 'package:dlna/dlna.dart';

Future<void> main() async {
  var dlnaService = DLNAManager();
  dlnaService.setRefresher(DeviceRefresher(onDeviceAdd: (dlnaDevice) {
    print('\n${DateTime.now()}\nadd ' + dlnaDevice.toString());
  }, onDeviceRemove: (dlnaDevice) {
    print('\n${DateTime.now()}\nremove ' + dlnaDevice.toString());
  }, onDeviceUpdate: (dlnaDevice) {
    print('\n${DateTime.now()}\nupdate ' + dlnaDevice.toString());
  }, onSearchError: (error) {
    print(error);
  }, onPlayProgress: (positionInfo) {
    print('current play progress ' + positionInfo.relTime);
  }));
  dlnaService.startSearch();
}
10
likes
30
pub points
46%
popularity

Publisher

unverified uploader

A simple DLNA DMC library implemented by Dart. It is tiny and only the basic network video casting function is supported.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

connectivity, flutter, shared_preferences, xml2json

More

Packages that depend on dlna