YoutubeHelper class
Helper class for YouTube related operations
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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 Methods
-
extractVideoId(
String url) → String? - Extracts video ID from various YouTube URL formats
-
getEmbedUrl(
String videoId, {bool autoPlay = false, bool showControls = true, bool enableJavaScript = true, bool mute = false, int startSeconds = 0}) → String - Generates the YouTube embed URL
-
getThumbnailUrl(
String videoId, {ThumbnailQuality quality = ThumbnailQuality.high}) → String - Generates thumbnail URL for a video
-
isValidVideoId(
String? videoId) → bool - Validates if a string is a valid YouTube video ID