DOMMediaStream* MediaStreamList::IndexedGetter(uint32_t index, bool& found) { if (mType == Local) { return GetStreamFromInfo(mPeerConnection->media()-> GetLocalStream(index), found); } return GetStreamFromInfo(mPeerConnection->media()-> GetRemoteStream(index), found); }
DOMMediaStream* MediaStreamList::IndexedGetter(uint32_t index, bool& found) { if (!mPeerConnection->media()) { // PeerConnection closed found = false; return nullptr; } if (mType == Local) { return GetStreamFromInfo(mPeerConnection->media()-> GetLocalStream(index), found); } return GetStreamFromInfo(mPeerConnection->media()-> GetRemoteStream(index), found); }