I
I
Ivan2020-12-29 15:45:34
YouTube
Ivan, 2020-12-29 15:45:34

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.

c9216f9c027a455f0e0d6d16207f7d6c.png
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 "!

NCNWC.png

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

1 answer(s)
A
Anatoly Medvedev, 2017-03-04
@balamyt92

b1b4a481a951456eb032f96d25ab11bb.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question