Testing a Membrane Bin used in a WebRTC Engine Endpoint
I'm trying to test a membrane bin that I use in WebRTC engine endpoint. Though I'm having trouble getting my test setup properly.
I was trying to approach is this way:
I'm using the
Is this the right approach for testing a custom bin used in the webrtc engine? Or is there a better / different approach? I checked out the integration tests in the repo, but none seemed to handle this exact case.
I was trying to approach is this way:
- Start my
Membrane.Testing.Pipelinewith a simple spec, just the conversation bin - Send a {:new_tracks} event to the bin, simulating what the Membrane.WebRTC.Engine does when a new bin is assed as an endpoint
- Then update the spec to connect the
Membrane.Testing.DynamicSourceandMembrane.Testing.Sink
handle_pad_added callback in my bin, which leads me to believe I'm doing something wrong. I'm using the
Membrane.Testing.Pipeline so I can access the Membrane.Testing.Assertions and assert that my conversation bin is emitting the right events, etc.Is this the right approach for testing a custom bin used in the webrtc engine? Or is there a better / different approach? I checked out the integration tests in the repo, but none seemed to handle this exact case.