PeerTube
PeerTube copied to clipboard
Globally Toggle "Upload Replays of Lives" By Default
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.
Hi, I'm new to this organisation. But I would love to contribute here. Please assign me if possible.
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?
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?
cc: @MattyBoombalatty @Chocobozzz
Yes, this is correct.
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
So I was going through the code to make default value as
false
. I came to know that a formVariablesaveReplay
is used invideo-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 aredefaultValues
. But after running with these changes, it didn't rendered? Am I going wrong somewhere @Chocobozzz
@Chocobozzz can you please look into this?