!yAXokUArOJxHEACeib:pussthecat.org

Invidious

653 Members
https://invidious.io/ | Instances: https://instances.invidious.io/ | Documentation: https://docs.invidious.io | SourceCode: https://git.invidious.io | Instances API: https://api.invidious.io/ | ToDo: https://todo.invidious.io/ | Bridged to #invidious on Libera.Chat134 Servers

Load older messages


SenderMessageTime
4 Apr 2024
@wardpearce:matrix.orgWard
In reply to @absidue:matrix.org
If you want to use the adaptive formats for anything other than audio-only playback, you'll need to use a javascript player e.g. shaka-player, video.js, dash.js anyway (as you'll want to stream both an audio and a video stream), so you can just tell whatever player that you decide to use to add the custom headers.
aside from most players using the video element at their root, what doesn't support custom headers
08:06:56
@wardpearce:matrix.orgWardwhat includes video.js i believe08:07:36
@absidue:matrix.orgabsidue
In reply to @wardpearce:matrix.org
aside from most players using the video element at their root, what doesn't support custom headers
While yes the wrap the video element, they fetch the data themselves, merge the audio and video streams and then pass the raw data directly to the video element.
08:07:46
@absidue:matrix.orgabsidue
In reply to @wardpearce:matrix.org
aside from most players using the video element at their root, what doesn't support custom headers
* While yes the wrap the video element, they fetch the data themselves, merge the audio and video streams and then pass the raw data directly to the video element with the Media Source APIs.
08:10:13
@wardpearce:matrix.orgWard*in some cases, videojs still uses the native video element sometimes 08:10:33
@absidue:matrix.orgabsidue
In reply to @wardpearce:matrix.org
*in some cases, videojs still uses the native video element sometimes
Yes if it only has to play one stream, so the non-adaptive formats or if you decide you want audio-only or video-only playback
08:11:04
@wardpearce:matrix.orgWardplus it seems easier to just have an option to pass auth via a url flag in the api too so it can work with native html08:11:10
@absidue:matrix.orgabsidue
In reply to @wardpearce:matrix.org
plus it seems easier to just have an option to pass auth via a url flag in the api too so it can work with native html
easier but makes auth completely pointless
08:12:07
@wardpearce:matrix.orgWardhow so?08:13:12
@wardpearce:matrix.orgWardhow often are users sharing API requests they don't see 08:13:31
@absidue:matrix.orgabsidue
In reply to @wardpearce:matrix.org
how often are users sharing API requests they don't see
They can easily see it though, all they need to do is right click the video element to copy the URL and then they have your token.
08:14:30
@wardpearce:matrix.orgWardwho's they?08:15:07
@wardpearce:matrix.orgWardif the share the watch url with it don't have their token08:15:24
@wardpearce:matrix.orgWard* if the share the watch url, it wont have their token08:15:44
@absidue:matrix.orgabsidue
In reply to @wardpearce:matrix.org
who's they?
Well you've clearly added restrictive auth to your instance for some reason, which means it's probably not just for personal use.
08:16:17
@absidue:matrix.orgabsidue
In reply to @wardpearce:matrix.org
who's they?
* Well you've clearly added restrictive auth to your instance for some reason, which means it's probably not just for personal use, otherwise you wouldn't have locked down the streaming URLs too.
08:17:23
@wardpearce:matrix.orgWardthe apdativeStream sources are locked down by default if your using Invidious as a proxy08:18:02
@wardpearce:matrix.orgWardI'm asking if its possible to auth the sources to them without headers, because native video element doesn't support that08:18:45
@wardpearce:matrix.orgWardif someone shares their watch url, e.g. /watch?v=123 they aren't gonna get the users auth token being used internally in the interface08:19:25
@absidue:matrix.orgabsidue
In reply to @wardpearce:matrix.org
the apdativeStream sources are locked down by default if your using Invidious as a proxy
How are you adding auth to your instance?
08:22:08
@wardpearce:matrix.orgWardmy instance of what? Invidious? I'm talking about Invidious' API not the instance itself08:23:46
@wardpearce:matrix.orgWardbecause I'm using the API for my own project08:24:00
@absidue:matrix.orgabsidue
In reply to @wardpearce:matrix.org
my instance of what? Invidious? I'm talking about Invidious' API not the instance itself
The API is part of the instance.
08:24:30
@wardpearce:matrix.orgWardsure but not sure how "how are you adding auth to your instance" is relavent 08:25:36
@absidue:matrix.orgabsidue
In reply to @wardpearce:matrix.org
sure but not sure how "how are you adding auth to your instance" is relavent
Because as far as I can tell from looking at the Invidious config file it doesn't support the kind of authentication you are talking about. Which means it's probably added by a server running in-between Invidious and the user, so you would have to ask the maintainer of the instance you are using how their auth is handled and if they can add support to their server in the middle to extract the token from the URL.
08:26:20
@wardpearce:matrix.orgWardWhy type of auth am i talking about?08:27:27
@absidue:matrix.orgabsidue
In reply to @wardpearce:matrix.org
Why type of auth am i talking about?
auth on the streaming URLs, which Invidious doesn't do by default
08:27:41
@absidue:matrix.orgabsiduethe streaming endpoints are unauthenticated08:27:50
@absidue:matrix.orgabsiduethe only ones that require authentication are the ones that access users data e.g. the subscriptions feed or the watch history08:28:17
@wardpearce:matrix.orgWarddoesnt appear to be correct, this is a instance im hosting locally with only caddy sitting in between docker. Making a request to a adaptive format video URL why proxying it gives a 403 error08:32:46

Show newer messages


Back to Room ListRoom Version: 7