Skip to content Skip to sidebar Skip to footer

Getting Error "there Was A Issue With Network [400]" While Playing You Tube Video

I am playing you Tube video using Android You tube API. Some of the URL are working fine but in some URL i found error message on screen saying 'There was a problem with network [

Solution 1:

This link, Your solution.

I think Give ONLY the YouTube ID and not the entire YouTube URL to the loadVideo() function.

UPDATE:

if you want jump to a specific time in the video.

The API provides two methods to jump playback:

seekToMillis() – Seeks to the specified time in the video.

seekRelativeMillis() – Seeks forward or backwards by the specified number of seconds.

More info here

Solution 2:

Just remove the **https://www.youtube.com/watch?v=**gNRN7lUU3tM from the url and only give gNRN7lUU3tM as url to the youtube player. It will work fine

Post a Comment for "Getting Error "there Was A Issue With Network [400]" While Playing You Tube Video"