Membrane.RTC.Engine.subscribe

You're seeing just the function subscribe, go back to Membrane.RTC.Engine module for more information.

Specs

Creates Membrane action that will make subscribtion for tracks in given format.

Endpoint will be notified about track readiness in Membrane.Bin.handle_pad_added/3 callback. tracks is a list in form of pairs {track_id, track_format}, where track_id is id of track this endpoint subscribes for and track_format is the format of track that this endpoint is willing to receive. If track_format is :raw Endpoint will receive track in Membrane.RTC.Engine.Track.encoding/0 format.

This function returns notifications_t/0 that should be returned from Membrane callback.