You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
String getYoutubeVideoId(String url) {
final RegExp regExp = RegExp(
r"(?:https?:\/\/)?(?:(?:www\.)?youtube\.com\/(?:(?:shorts\/)|(?:watch\?v=))|(?:youtu.be\/))([\-a-zA-Z0-9_]+)");
final match = regExp.firstMatch(url);
final result = match?.group(1) ?? "";
return result;
}
I get the invalid argument error whenever I attempt to play YouTube shorts
The text was updated successfully, but these errors were encountered: