Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add admin, presenter, publisher request and publisher from listener lists into broadcast object #6148

Open
wants to merge 25 commits into
base: master
Choose a base branch
from

Conversation

mustafaboleken
Copy link
Contributor

@mustafaboleken mustafaboleken changed the title Add admin, presenter, publisher request and publisher from listener list into broadcast object Add admin, presenter, publisher request and publisher from listener lists into broadcast object Mar 1, 2024
Copy link
Contributor

@mekya mekya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @mustafaboleken for the implementation.

I see some opportunities to make it more simple. Here are my ideas, we can discuss it later

  • No need to have new abstract methods in DataStore. updateBroadcast method is enough
  • No need to have presenterList field in broadcast object. They are subtracks of the main stream and there is a field for subtracks.
  • No need to have publisherFromListener because they are again subtracks.
  • Rename publisherRequestList to subtrackRequestList or something similar

@@ -207,6 +207,18 @@ public class Broadcast {
@ApiModelProperty(value = "Initial time to start playing. It can be used in VoD file or stream sources that has seek support")
private long seekTimeInMs = 0;

@ApiModelProperty(value = "The list of the play only users who requested to publish the stream. It is used in conference scenario.")
List<String> publisherRequestList = new ArrayList<String>();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are the subsriberId of the user or they are stream id?

List<String> publisherRequestList = new ArrayList<String>();

@ApiModelProperty(value = "The list of the users who are approved to publish the stream. It is used in conference scenario.")
List<String> publisherFromListenerList = new ArrayList<String>();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to have different fields for user scenarios? I mean publisherFromListenerList seems like scenario specific to me.

List<String> presenterList = new ArrayList<String>();

@ApiModelProperty(value = "The list of the admin users. It is used in conference scenario.")
List<String> adminList = new ArrayList<String>();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are the subscriberIds?

List<String> publisherFromListenerList = new ArrayList<String>();

@ApiModelProperty(value = "The list of the presenter users. It is used in conference scenario.")
List<String> presenterList = new ArrayList<String>();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

presenterList is also the subtracks of this stream. Do we need to have additional field?

* @param streamId - stream id
* @return boolean - success
*/
public abstract boolean addIntoPublisherRequestList(String mainTrackId, String streamId);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we don't need to additional methods for the new fields, we can just use the updateBroadcast method

@mustafaboleken
Copy link
Contributor Author

@mekya thank you for your review. I understand your points but for some scenarios, it's hard to keep track of subtracts. I will ask them in a meeting.

Copy link

sonarcloud bot commented Apr 3, 2024

Copy link

sonarcloud bot commented May 6, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add admin, presenter, publisher request and publisher from listener list into broadcast object
2 participants