<!DOCTYPE HTML><html><head><scripttype="application/javascript"src="mediaStreamPlayback.js"></script></head><body><preid="test"><scripttype="application/javascript">createHTML({title:"getUserMedia feed to a graph with non default rate",bug:"1387454",});/** * Run a test to verify that when we use the streem from a gUM to an AudioContext * with non default rate the connection fails. (gUM is always on default rate). */runTest(async()=>{conststream=awaitgetUserMedia({audio:true});constnonDefaultRate=32000;constac=newAudioContext({sampleRate:nonDefaultRate});mustThrowWith("Connect stream with graph of different sample rate","NotSupportedError",()=>{ac.createMediaStreamSource(stream);});for(lettofstream.getTracks()){t.stop();}});</script></pre></body></html>