videoUrl property

  1. @override
Future<String> videoUrl

Returns the YouTube.com URL for the currently loaded/playing video.

Implementation

@override
Future<String> get videoUrl async {
  final videoUrl = await _runWithResult('getVideoUrl');

  if (videoUrl.startsWith('"')) {
    return videoUrl.substring(1, videoUrl.length - 1);
  }

  return videoUrl;
}