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

Rename Live AI spec and fix validation errors #3375

Merged
merged 1 commit into from
Jan 31, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,4 @@ docker_mtx:
docker buildx build -f docker/Dockerfile.mediamtx docker/

swagger:
swag init --generalInfo cmd/livepeer/livepeer.go --outputTypes yaml --output . && mv swagger.yaml openapi.yaml
swag init --generalInfo server/ai_mediaserver.go --outputTypes yaml --output . && mv swagger.yaml liveai.openapi.yaml
4 changes: 4 additions & 0 deletions openapi.yaml → liveai.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ definitions:
type: object
info:
contact: {}
title: Live Video-To-Video AI
version: 0.0.0
paths:
/live/video-to-video/{stream}/start:
get:
consumes:
- multipart/form-data
parameters:
- description: Stream Key
in: path
Expand Down
4 changes: 4 additions & 0 deletions server/ai_mediaserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ const (
Complete ImageToVideoStatus = "complete"
)

// @title Live Video-To-Video AI
// @version 0.0.0

func startAIMediaServer(ctx context.Context, ls *LivepeerServer) error {
swagger, err := worker.GetSwagger()
if err != nil {
Expand Down Expand Up @@ -368,6 +371,7 @@ func (ls *LivepeerServer) ImageToVideoResult() http.Handler {
}

// @Summary Start Live Video
// @Accept multipart/form-data
// @Param stream path string true "Stream Key"
// @Param source_id formData string true "MediaMTX source ID, used for calls back to MediaMTX"
// @Param source_type formData string true "MediaMTX specific source type (webrtcSession/rtmpConn)"
Expand Down
Loading