MediaPlayer2Player constructor

MediaPlayer2Player(
  1. DBusClient client,
  2. String destination, {
  3. DBusObjectPath path = const DBusObjectPath.unchecked('/org/mpris/MediaPlayer2'),
})

Implementation

MediaPlayer2Player(DBusClient client, String destination,
    {DBusObjectPath path =
        const DBusObjectPath.unchecked('/org/mpris/MediaPlayer2')})
    : super(client, name: destination, path: path) {
  seeked = DBusRemoteObjectSignalStream(
          object: this,
          interface: 'org.mpris.MediaPlayer2.Player',
          name: 'Seeked',
          signature: DBusSignature('x'))
      .asBroadcastStream()
      .map((signal) => MediaPlayer2PlayerSeeked(signal));
}