adding condition for MediaStream support, so it's not just existence but completeness