PeerTube icon indicating copy to clipboard operation
PeerTube copied to clipboard

Globally Toggle "Upload Replays of Lives" By Default

Open MattyBoombalatty opened this issue 10 months ago • 6 comments

Describe the problem to be solved

When creating a new live, the option to automatically publish a replay when the live is finished is always checked. For instances, like ours, that have storage quotas, I think having this unchecked by default would be the best option, that way livestreams aren't arbitrarily cut off and we don't have to remind people who are unfamiliar with PeerTube how to turn off the functionality.

I know that we can turn off the function by default, but there are some people who are allowed to use the function. I know this is kind of an edge case, but I figured I'd make a feature request for anyone else who might have this same problem.

Describe the solution you would like

Allow administrators to set the default option for "automatically upload a replay when the live ends" for all new lives.

MattyBoombalatty avatar Mar 29 '24 13:03 MattyBoombalatty

Hi, I'm new to this organisation. But I would love to contribute here. Please assign me if possible.

kavania2002 avatar Jun 20 '24 17:06 kavania2002

Hey, I tried cloning the repo. Followed steps mentioned in development guide. But I didn't understand how would I create an admin account and set it's password?

kavania2002 avatar Jun 21 '24 11:06 kavania2002

So if I'm not wrong, the problem is that the checkbox on Automatically publish a replay when your live ends is by default ON and you want it as OFF for a user. So you want as user to make it by default OFF correct?

image

cc: @MattyBoombalatty @Chocobozzz

kavania2002 avatar Jun 21 '24 12:06 kavania2002

Yes, this is correct.

MattyBoombalatty avatar Jun 21 '24 13:06 MattyBoombalatty

So I was going through the code to make default value as false. I came to know that a formVariable saveReplay is used in video-edit.component.ts file which saves the required checkbox value.

So I was thinking that after this line, I can provide saveReplay: false because I think these are defaultValues. But after running with these changes, it didn't rendered? Am I going wrong somewhere @Chocobozzz

kavania2002 avatar Jun 21 '24 15:06 kavania2002

So I was going through the code to make default value as false. I came to know that a formVariable saveReplay is used in video-edit.component.ts file which saves the required checkbox value.

So I was thinking that after this line, I can provide saveReplay: false because I think these are defaultValues. But after running with these changes, it didn't rendered? Am I going wrong somewhere @Chocobozzz

@Chocobozzz can you please look into this?

kavania2002 avatar Jun 25 '24 10:06 kavania2002