Skip to content

nvalid YouTube Live Stream URL Handling #253

@Ab-Aayan

Description

@Ab-Aayan

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

  1. Initialize PodPlayerController with a YouTube live stream URL:
    _podController = PodPlayerController(
      playVideoFrom: PlayVideoFrom.youtube(
        "https://youtube.com/live/MQKBJBi1v-MM"
      ),
    )..initialise();
  2. 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 PodPlayerController to properly extract video IDs from live stream URLs (https://youtube.com/live/VIDEO_ID).
  • Provide an option in PodPlayerConfig to 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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions