I got pretty close, I got the setting page to work, when a video gets uploaded I can get the channel name and resolutions from the settings with this hook, but I can’t seem to queue transcoding in those extra resolutions.
Is there any exposed api or server hook meant to do this?
I tried this hook first. Unfortunately the problem is it doesn’t give me any information about the channel the video is being uploaded to.
I tried using action:api.video.uploaded instead since it triggers at the right time and gives the channel name, but I can’t change the transcoded resolutions from there.
Should I (or can I) make a PR to the peertube repo to provide some video details to the filter:transcoding.auto.resolutions-to-transcode.result when it gets triggered?
Ok, in the process of trying to « fix » it I figured out there’s a context attribute that gets passed with those details already in the original hook you mentioned. My bad