Skip to content

Conversation

@ogustavobelogb
Copy link

@ogustavobelogb ogustavobelogb commented Oct 27, 2025

Closes #1125:

Analyzing the correction of this same error in the native Android library, I noticed that when passing the origin and host fields as separate parameters, the error code 15 no longer occurs.

YoutubePlayerController.fromVideoId(
      videoId: widget.videoId,
      params: YoutubePlayerParams(
        origin: Uri.https(
          '${packageName}',
        ).toString(),
      ),
    )

Update (2025-11-05):
This solution is confirmed by this documentation

@LnrdRmj
Copy link

LnrdRmj commented Oct 28, 2025

I don't understand the fix for the first issue (#1125). You set the origin like this 'https://my.package.name' and it somehow works?

@ogustavobelogb
Copy link
Author

I don't understand the fix for the first issue (#1125). You set the origin like this 'https://my.package.name' and it somehow works?

The origin was sent as host as well, so I separate it in two different values. And, according to the native android library solution, there is some rate limit on youtube's api from the origin. Did you find any issues related it?

@vbuberen
Copy link

I would suggest to split the PR into 2 different ones to not mix contexts and help the maintainer deal with it faster (so that one topic doesn't block another one in case there is something wrong with one of changes).

@ogustavobelogb
Copy link
Author

I would suggest to split the PR into 2 different ones to not mix contexts and help the maintainer deal with it faster (so that one topic doesn't block another one in case there is something wrong with one of changes).

You're right, thats make sense.
I just created another PR to 1121 and I will maintain this one for the 1125

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

This video is unavailable Error code : 15

3 participants