getStreamingProperty method

Future<String> getStreamingProperty(
  1. StreamingPropertyType type
)

Retrieves a specific property value obtained by the streaming engine (Smooth Streaming, HLS, DASH, or Widevine).

Implementation

Future<String> getStreamingProperty(StreamingPropertyType type) async {
  if (_isDisposedOrNotInitialized) {
    return '';
  }

  final Future<String> streamingProperty =
      _videoPlayerPlatform.getStreamingProperty(_playerId, type);
  await streamingProperty.then((String result) {
    // ignore: avoid_print
    print('[getStreamingProperty()] type: $type, result: $result');
  });

  return streamingProperty;
}