Answer the question
In order to leave comments, you need to log in
How to get video debugging data from youtube - playbackQuality?
On each youtube video there is an opportunity to get debug data by right-clicking the mouse and selecting the desired item in the " Copy data for debugging " menu.
The value of the debug_playbackQuality field is important to me.
How can I get this data using the youtube api or in another way?
Or how to immediately get the value of debug_playbackQuality ?
Heard about player.getPlaybackQuality():String function but it seems to work with js, i need it in php
When working with youtube api, I need to get the value of the debug_playbackQuality parameter for each video (similar to privacyStatus, embeddable) and then, based on the data, make a decision about further work with the video. I don't know how to check the debug_playbackQuality value.
Help to understand, please.
ps
Try to run this video https://www.youtube.com/embed/1fO1HmgBHaE
It won't run if it's on the youtube.com domain but will work at https://www.youtube.com/watch?v= 1fO1HmgBHaE
This video is available in the youtube api and has the status privacyStatus = public , embeddable = true
Because of this, the video is embedded on the site, but does not work on it.
I found a solution, such videos have the status "debug_playbackQuality": " unknown "!
It looks like the only option to not add such videos to the site is to check the debug_playback quality for unknown status.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question