eMediaStreams getMediaStreams() { eMediaStreams ms = default; if (null != file?.videoTrack) { ms |= eMediaStreams.Video; } if (null != file?.audioTrack) { ms |= eMediaStreams.Audio; } return(ms); }
void iMediaEngine.getMediaStreams(out eMediaStreams mediaStreams) => mediaStreams = getMediaStreams();