YoutubePlayer class

Constructors

YoutubePlayer(YoutubeUri uri, {String errorMessage = youtubePlayerErrorMessage, bool forceFullscreen = true, Set<Factory<OneSequenceGestureRecognizer>>? gestureRecognizers})
YoutubePlayer parses uri and provides various ways to run a video with uri in a player.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uri → YoutubeUri
final

Methods

inAndroidApp() Future<bool>
Parses uri and opens Youtube's android app if installed, else platform handles it.
inApp(BuildContext context) Future<Object?>
Parses and opens uri in Youtube app if possible, else platform handles it.
inIOS() Future<bool>
Parses uri and opens Youtube's IOS app if possible, else platform handles it.
inWebview(BuildContext context) Future<Object?>
Opens youtube player using Youtube's API for iframe in webview_flutter
launchWithHttpScheme() Future<bool>
Parses the youtube uri URL with scheme https:// and delegates handling of it to the underlying platform.
launchWithYoutubeScheme() Future<bool>
Parses the youtube uri URL with youtube's scheme youtube:// and delegates handling of it to the underlying platform.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

enableFallback bool
When inApp is called, upon any failures if this is true then youtube iframe player in webview_flutter is opened using inWebview.
getter/setter pair