Skip to content

Commit

Permalink
Rename Live AI spec and fix validation errors (#3375)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjh1 authored Jan 31, 2025
1 parent 654a229 commit 9508e13
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,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

0 comments on commit 9508e13

Please sign in to comment.