Datachannel.setCloseCallback()

DESCRIPTION

Set callback to be called when this track is closed.

DECLARATION

    void setCloseCallback(std::function<void()> cb)

PARAMETERS

cb:
[in] Callback to set