8000
Skip to content

Conversation

@USAMAWIZARD
Copy link
Contributor
@USAMAWIZARD USAMAWIZARD commented Feb 6, 2025

@USAMAWIZARD USAMAWIZARD force-pushed the SrtRestream branch 8 times, most recently from 69b13e7 to 00054d0 Compare February 14, 2025 10:37
@USAMAWIZARD USAMAWIZARD linked an issue Feb 14, 2025 that may be closed by this pull request
@USAMAWIZARD USAMAWIZARD force-pushed the SrtRestream branch 3 times, most recently from 782b9bf to 47546ec Compare February 21, 2025 07:09
@USAMAWIZARD USAMAWIZARD linked an issue Feb 21, 2025 that may be closed by this pull request
@sonarqubecloud
Copy link
sonarqubecloud bot commented Mar 3, 2025

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.

Hi @USAMAWIZARD

Thank you for the implementation.
I have some change requests and added comments.

Let me know if you have further questions

Regards


boolean result = super.addVideoStream(width, height, timebase, codecId, streamIndex, isAVC, codecpar);
if (result)
if (result && !this.format.equals("mpegts"))
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 positive statement is more meaningful.

I mean run this line if it is flv because we are doing something specific related to the flv or rtmp

String rtmpUrl = null;
return addEndpointV4(id,endpoint,resolutionHeight);
}
@POST
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add documentation with openapi annodations. Keep in mind that developers uses these references. So please give the enough information to make life easy for developers.

@Produces(MediaType.APPLICATION_JSON)
public Result addEndpointV4(@Parameter(description = "Broadcast id", required = true) @PathParam("id") String id,
@Parameter(description = "Url of the endpoint that stream will be republished. If required, please encode the URL", required = true) Endpoint endpoint,
@Parameter(description = "Resolution height of the broadcast that is wanted to send to the endpoint. ", required = false) @QueryParam("resolutionHeight") int resolutionHeight) {
Copy link
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Mention about SRT and RTMP endpoints

)
@DELETE
@Consumes(MediaType.APPLICATION_JSON)
@Path("/{id}/rtmp-endpoint")
Copy link
Contributor

Choose a reason for hiding this comment

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

The path is about rtmp-endpoint. Lets make it more generic that is covering the rtmp and srt

@sonarqubecloud
Copy link
sonarqubecloud bot commented May 6, 2025

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.

fix SRT restream when multiple srt output SRT Restream

3 participants

0