Skip to content

Live YouTube Streaming Integration #48

@Aditya8369

Description

@Aditya8369

Description:

Enable hosts to stream their live sessions directly to YouTube, allowing broader audience reach beyond the platform's private rooms. This leverages the existing YouTube service and RTMP setup in the backend.

Proposed Steps to Produce:

  1. Add a "Go Live" button in the studio UI (frontend/components/studio/) that triggers YouTube stream initialization.
  2. Extend the backend YouTube service (backend/services/youtube.service.js) to handle RTMP stream key management and start/stop commands.
  3. Modify the session model (backend/models/session.model.js) to include a youtubeStreamId field for tracking active streams.
  4. Update socket handlers (backend/socket/handlers/streamHandler.js) to broadcast stream status to participants.
  5. Integrate FFmpeg client (backend/recording/infra/ffmpeg.client.js) to mux the WebRTC stream to YouTube RTMP endpoint.

Expected Behavior:

Hosts can click "Go Live" to enter a YouTube stream key, starting a public broadcast. Participants see a live indicator, and viewers access the stream via YouTube URL. Stream ends automatically when the session concludes, with error handling for invalid keys or network issues.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions