Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use it please ? #14

Open
Thomas-D-C opened this issue Feb 28, 2024 · 8 comments
Open

How to use it please ? #14

Thomas-D-C opened this issue Feb 28, 2024 · 8 comments

Comments

@Thomas-D-C
Copy link

Hi :-)

Could you explain how to use it, please ?
It doesn't work if I do nothing.

@craftwar
Copy link
Owner

Click extension icon to toggle enable/disable. screenshot is available in firefox addon page
If it it doesn't work, you are unlucky. I think youtube may be testing new changes, it delivers different pages to user randomly. That's why extension is not working on every user's environment.

It you have good solution, I can merge into this extension.

@JVD66
Copy link

JVD66 commented Jul 29, 2024

I second this request for some documentation on how the extension is meant to work .

I cannot get this extension to work at all with Firefox Developer Edition v129.b9 for Linux (Fedora-40) x86_64 .

No version of the extension works with Live Videos from the YouTube page - you must right-click on the video,
click on "Copy Embed Link", and create a little HTML file, like, for example my test page :

  ``` <!DOCTYPE html>
       <html>
       <head>
       <title>Neutrality Studies, Pascal Lottaz</title>
        <style type="text/css">
          .centered { display:block; margin-left:auto; margin-right:auto; }
       </style>
    </head>
    <body>
    <iframe width="1280" height="720" src="https://www.youtube.com/embed/i6RY3If2ex8" title="The Neocon&#39;s WORST Nightmare Is Coming True: A United Asia | J. Pang and Naoko Kumada" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen  class="centered"></iframe>
   </body>
   </html>

The "<iframe> ... </iframe>" is the "Embed Link" I got from YouTube player page .

I have to NOT watch any video or audio on the YouTube Player page anyway, since
the Live Chat and persistant attempts to diplay AdWare from sites I redirect the DNS
lookups to '0.0.0.0' for, with ISC BIND named Response Policy Zones (RPZ),
this consumes too much CPU already and I always create little HTML pages with the
Embed Link pasted as above anyway . I usuually DO NOT want to sit watching such
videos, I like to listen to news / current affairs discussions in the background.

I was able to install the Chrome Extension "Audio Only YouTube" v0.10.0 in google-chrome-unstable
(Chrome version "129.0.6614.3 (Official Build) dev (64-bit)") .
This works perfectly - a banner title appears above the Video Title :
"Audio Only . To watch video, click on Extensions Icon above and refresh the page."
and no video appears ! Great !
I am investigating with WireShark / TCP Dump as to whether the extension's claims NOT to actually download the video
at all are true - is this actually possible with a normal YouTube MP4 video ?

Why doesn't your extension work similarly under Firefox ?

@JVD66
Copy link

JVD66 commented Jul 29, 2024

Anyway, the above Page loads a /videoplayback? URL :

 	ire: 1722302020
ei: 5OmnZvixG7WchcIPrZKByQI
ip: 80.233.33.59
id: o-AAxPsoOEl-7RBXjatGc81SBxeEcAS9zBIxZHOLqqDIIY
itag: 251
source: youtube
requiressl: yes
xpc: EgVo2aDSNQ==
siu: 1
bui: AXc671IvBYiRYsyiZVSHV36PEcOry7vnuMfOn_-_5iolG_q0opFapcJD0U1V4a-7tvBKzPpGSQ
spc: NO7bAU2xBPrVKrEdQcl5sKUKbhwUnHCB-_a_nzIOHvW3g-m6eFYktNact5rMbxezAXU_-zTL0A
vprv: 1
svpuc: 1
xtags: drc=1
mime: audio/webm
ns: rZPp0rHhPepir7EHjZg8S3oQ
rqh: 1
gir: yes
clen: 26010859
dur: 1890.121
lmt: 1721834975732073
keepalive: yes
c: WEB_EMBEDDED_PLAYER
sefc: 1
txp: 4432434
n: KG1WDQ26UitqYA
sparams: expire,ei,ip,id,itag,source,requiressl,xpc,siu,bui,spc,vprv,svpuc,xtags,mime,ns,rqh,gir,clen,dur,lmt
sig: AJfQdSswRQIgUcKon30ggtxF8wsxhSDeRHSTRdPJTSebyIBdv1YFr6cCIQDRTjBxOtVkoCDhy5EW6HwdYK45ciHM1ujI2BArlafrDg==
alr: yes
cpn: wDv_-zT8EWTrn4Wj
cver: 1.20240724.01.00
cm2rm: sn-uigxxpx-q0cs7e
rrc: 80,104
fexp: 24350508,24350516,24350518,24350557
redirect_counter: 2
rm: sn-q0cee7z
cms_redirect: yes
cmsv: e
ipbypass: yes
mh: zM
mip: 80.233.39.156
mm: 29
mn: sn-q0c7rn7d
ms: rdu
mt: 1722280158
mv: m
mvi: 3
pl: 24
lsparams: ipbypass,mh,mip,mm,mn,ms,mv,mvi,pl
lsig: AGtxev0wRQIgM1TWxnj_5ypMKkfkw4SP5f71CmKWl95EnEjIMR9fuokCIQDzo2KhpSty9Uy3AtiCW7OfMuRMqEiMprBfGxOsyrjLcw==
pot: MpQB7l0i-VsLg8HuZfarBcBVN8ZzoU9ktBKM_ZohGJxhBVj97gFQ5S9UV6bQHRCxxw6vTby6uJnhDi5WX3CM1fHX3O1_Rhd8yNdSnOzKdapiqDwnd6TcfWsyOlmc4hecltP7oF5yifJZtiiM7aPuoXeJw6XP6b7ZIdLbkIKy9j6NZ0LMd0-tH6Wmm5LiK2FB0tWL_meMCw==
srfvp: 1

So the important part is that it requests :
mime: audio/webm
right ?

It would be most interesting if you could share any information / sources to documentation about the derivation
of the above videplayback URL parameters -- Thanks !

@craftwar
Copy link
Owner

@JVD66
This extension is chrome extension ported to Firefox. I make some changes only. I requested document from original author but no answer.
Live stream is not supported.
This extension tries to replace video element's url to first found audio not limited to webm. It will play video if it can't find any audio or it's live.

@Thomas-D-C
Copy link
Author

Thomas-D-C commented Jan 7, 2025

@craftwar :

Click extension icon to toggle enable/disable. screenshot is available in firefox addon page If it it doesn't work, you are unlucky. I think youtube may be testing new changes, it delivers different pages to user randomly. That's why extension is not working on every user's environment.

Thank you very much. :-)
It worked for a while.

Now, it does no longer work.
Is it the same for you? Do you know what has changed?

@Thomas-D-C
Copy link
Author

This extension is chrome extension ported to Firefox. I make some changes only.

Does that mean it's useless to request new features?

@craftwar
Copy link
Owner

This extension is chrome extension ported to Firefox. I make some changes only.

Does that mean it's useless to request new features?
Almost true

I think this extension is dead. Original chrome version is not working.
Youtube will prevent user to do this without premium, they want user watch ads.

@Thomas-D-C
Copy link
Author

Youtube will prevent user to do this without premium, they want user watch ads.

Do you know if they do that by joining audio and video into the same stream even when they are separate at origin?

If yes, then the network bandwidth is wasted, but we can still save CPU time. Firefox already does it when the tab is not open.

Tell me if the API doesn't allow that!

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

No branches or pull requests

3 participants