flutter_dlna

一款真正可以实现视频投屏的插件,基于DLNA。

Getting Started

创建管理器

 FlutterDlna manager = new FlutterDlna();

初始化管理器

manager.init();

设置设备搜索回调

 List deviceList = List();
 manager.setSearchCallback((devices){
      if (devices != null && devices.length > 0) {
        this.setState(() {
          this.deviceList = devices;
        });
      }
    });

搜索设备

  manager.search();

选择设备

  await this.manager.setDevice(e["id"]);

设置视频播放地址及名称(android系统会直接投屏)

await this.manager.setVideoUrlAndName("https://vod3.buycar5.cn/20201030/Fk3mpLH6/index.m3u8","不期而遇");

开始投屏

await this.manager.startAndPlay();

退出投屏

this.manager.stop();

Libraries

description_parser
device_capabilities
device_manager
didl
dlna
dlna_action_result
dlna_android
dlna_connectivity
dlna_device
dlna_interface
dlna_ios
dlna_manager
flutter_dlna
get_deivce_capabilities
get_media_info
get_mute
get_position_info
get_protocol_info
get_transport_acts
get_transport_info
get_volume
local_device_parser
media_info
next
pause
play
play_mode
position_info
previous
protocol_info
seek
set_mute
set_play_mode
set_url
set_volume
soap_action
soap_controller
ssdp_controller
stop
transport_actions
transport_info
upnp_message_parser