Closed Newcool1230 closed 1 month ago
I don't know how the actual YouTube engine is working with the network requests.
There is a property deviceIsAudioOnly
existing in YouTube coding. My script is to force it to true
only, plus some fixes for the live streaming.
There is a property
deviceIsAudioOnly
existing in YouTube coding. My script is to force it totrue
only, plus some fixes for the live streaming.
Oh interesting, this is a pretty cool find.
I looked around for a bit but can't seem to find the deviceIsAudioOnly
property. Is it located in the storage configs? or directly in the html5 video player itself?
No... This is not that simple You need to study the JavaScript code of the YouTube.
Anyway you can just use my script for this feature
deviceIsAudioOnly
I could not go through all the coding I wrote to tell you how to implement this. You can use my userscript directly or deeply analyse YouTube's JavaScript by yourself.
Hey there,
I was wondering if you could possible walk through how you are achieving audio only after the recent youtube update, where they are merging both audio and video into one
https://*.googlevideo.com/videoplayback/*
request.Previously audio only was achieved by blocking
mime=video
requests and only allowingmime=audio
requests. After the update this doesn't seem to work as they are merged into one request.Looking at your code it seems like you are updating some flags, but I can't seem to get a grasp on it. Would love to learn more about this.