INNER CODE UNIT · Dart
Function
wang-bin/fvp · lib/src/controller.dart:49
static final int Function(VideoPlayerController c) _getId = () {
// prefer playerId when available(since video_player 2.10.0 to support platform view), fallback to textureId for older video_player versions
try {
// try to get playerId. static implies late, but can't access this
final _ = (VideoPlayerController.file(File('')) as dynamic).playerId;
return (dynamic c) => c.playerId as int;
} on NoSuchMethodError {
return (dynamic c) => c.textureId as int;
}
}();
/// Indicates whether current media is a live stream or not
bool isLive() {
return _platform.isLive(_getId(this));
}
/// Get current media info.
MediaInfo? getMediaInfo() {