-
Notifications
You must be signed in to change notification settings - Fork 232
Open
Description
Sure! Below is a well-structured GitHub issue report that you can post in the Pod Player GitHub repository:
📌 Issue: Invalid YouTube Live Stream URL Handling
Description
I am trying to play a YouTube live stream using PodPlayerController, but I keep getting the following error:
flutter: Invalid argument (idOrUrl): Invalid YouTube video ID or URL: "https://youtube.com/live/MQKBJBi1v-MMQKBJBi1v-M"
This URL works perfectly in the browser, but PodPlayer fails to parse and play the video.
Steps to Reproduce
- Initialize
PodPlayerControllerwith a YouTube live stream URL:_podController = PodPlayerController( playVideoFrom: PlayVideoFrom.youtube( "https://youtube.com/live/MQKBJBi1v-MM" ), )..initialise();
- The app throws an Invalid YouTube video ID or URL error.
Actual Behavior
- PodPlayer does not recognize YouTube Live URLs, even though they work in a browser.
- The package throws an error: "Invalid argument (idOrUrl): Invalid YouTube video ID or URL."
Possible Solution (Suggestion)
🔹 Enhance YouTube URL Parsing in PodPlayer
- Currently, PodPlayer does not seem to recognize YouTube Live Stream URLs.
- Modify
PodPlayerControllerto properly extract video IDs from live stream URLs (https://youtube.com/live/VIDEO_ID). - Provide an option in
PodPlayerConfigto explicitly enable live stream mode.
Additional Context
This issue does not happen with standard YouTube videos, only with live streams. If live streams are unsupported, please confirm in the documentation whether PodPlayer officially supports them.
Metadata
Metadata
Assignees
Labels
No labels