Open quoc-huynh-cosee opened 1 year ago
Fix
String? getYoutubeVideoIdByURL(String url) {
final regex = RegExp(r'.*\?v=(.+?)($|[\&])', caseSensitive: false);
try {
if (regex.hasMatch(url)) {
return regex.firstMatch(url)!.group(1);
}
} catch (e) {
return null;
}
}
This PR fixes the issue https://github.com/sarbagyastha/youtube_player_flutter/pull/868#issue-1889119772
use the changes like this :
git:
url: https://github.com/Add00w/youtube_player_flutter.git
ref: master
path: packages/youtube_player_flutter
for temporary
I am also facing same issue. please suggest some workaround.
Describe the bug Using the YoutubePlayerController.convertUrlToId on a shared llive URL returns null. The format of the shared URL is
https://www.youtube.com/live/{videoId}?feature=share
.To Reproduce Steps to reproduce the behavior:
Expected behavior The ID should be extracted instead of returning null.