Skip to content

Receiver functionality (sometimes-SrcPad) #5

@tuxuser

Description

@tuxuser

Hello

As mentioned in PR #4, I would like to use WebRtcRedux for a client implementation that receives video streams and pushes the rtp packets onto a Gst-Pipeline for further processing.

The WebRtcRedux element currently implements the "Sink"-pad. To accomodate the targeted flow, the GstPushSrc's sometimes-pad "src_%u" which exposes the incoming streams, would need to be implemented.

From my understanding, a GstPushSrc would be appropriate, as we are talking about a live-stream here.

Here is my attempt at doing so: tuxuser@282b8e7 (having issues with lifetimes and code-design here (the burden of every new rust dev I guess :P))

Maybe to reproduce better, I implemented the desired output API by creating a vp8-client.
Its basically a clone of the h264-browser example:

  • Takes the webcam/microphone stream from the browser and adds it to the PeerConnection
  • Takes the SDP offer from CLI and generates its answer
  • Answer is pasted back into the CLI and stream starts

Code is located here: https://github.com/tuxuser/gst-webrtcredux/tree/example/vp8_client/examples/vp8-client

Any help is ofc greatly appreciated :)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions