[vlc-devel] Tagging VLC 3.0.13

Alexandre Janniaux ajanni at videolabs.io
Mon Apr 5 14:52:04 UTC 2021


Hi,

On Mon, Apr 05, 2021 at 01:02:01AM +0200, Pierre Ynard via vlc-devel wrote:
> > For Twitch I took a quick look, it seems that a new signature
> > token is generated by a POST request to the endpoint
> > https://gql.twitch.tv/gqlthrough/gql with among the request
> > JSON body, an operationNam: "PlaybackAccessToken_Template".
> >
> > After that, the response json body has a
> > data.streamPlaybackAccessToken.signature field which seems
> > to be what is given as "sig" URL parameter for the endpoint
> > https://usher.ttvnw.net/api/channel/hls/$CHANNEL_NAME.m3u8
> >
> > There's also a "token" url parameter needed which seems to
> > match the data.streamPlaybackAccessToken.value field.
>
> Yeah that sounds like what I remember.
>
> > The Client-ID that was given through URL parameters seems
> > to be passed through custom request headers, however the
> > API seems to react on whether it's present or not in the
> > URL parameters too so it might not be mandatory indeed.
>
> Ah, that would be good news. It could be workable to fix it then. I can
> take a look at it again, but I have other things to tend to. How much
> time do I have?

For twitch we do pass the Client-ID that way. The issue is the
token/sig retrieval which is using a removed API, and which must
be switched to the gqpthrough/gql endpoint.

Regards,
--
Alexandre Janniaux
Videolabs


More information about the vlc-devel mailing list