Media12899 Audio/Video: Unknown MIME type when I stop video

472 views
Skip to first unread message

Tim McClure

unread,
Aug 22, 2016, 10:01:44 AM8/22/16
to Temasys WebRTC Plugin
My web page is using the Temasys plugin in IE 11.  The video is displaying fine but when I close the video I get the following exception:

MEDIA12899: Audio/Video : Unknown MIME type

Below is the code I use on the stop.  The code works in Chrome.  I need to be able to reuse the videoOutput because of my retry logic - sometimes it take more than 1 try to get the video.

Tim

 stop: function () {
videoOutput.pause();
if (webRtcPeer) {
webRtcPeer.dispose();
webRtcPeer = null;
}
if (pipeline) {
pipeline.release();
pipeline = null;
}
kClient.close();
hideSpinner(videoOutput);
}
}

Jacques-Olivier Haché

unread,
Aug 22, 2016, 1:38:07 PM8/22/16
to Temasys WebRTC Plugin
Hi,

Your stop function doesn't look bad to me, as long as you call videoOutput.play later.
Are you using videoOutput = attachMediaStream(videoOutput, stream) to play your streams ?

Tim McClure

unread,
Aug 22, 2016, 2:58:00 PM8/22/16
to Temasys WebRTC Plugin
I am using kurento utils which does the following - it does not set the videoOutput to the returned value - do you think I should change this?  The code:
function setRemoteVideo() {
if (remoteVideo) {
var stream = pc.getRemoteStreams()[0];
remoteVideo.pause();
attachMediaStream(remoteVideo, stream);
remoteVideo.load();
}
}

Jacques-Olivier Haché

unread,
Aug 22, 2016, 3:03:36 PM8/22/16
to Temasys WebRTC Plugin
Yes, you need to do that.
Same thing for your local stream.

For the plugin, we need to replace the video element with an object element (that;s done in AdapterJS).
When we do that, your reference to remoteVideo is removed from the DOM and thus, needs to be updated. 

Cheers,
J-O

Tim McClure

unread,
Aug 22, 2016, 3:53:30 PM8/22/16
to Temasys WebRTC Plugin
I made the change you suggested.  The code is below - the object returned does not have a load method so I get an error.  I will try taking it out the remoteVideo.load() line - does this make sense? 

function setRemoteVideo() {
if (remoteVideo) {
var stream = pc.getRemoteStreams()[0];
remoteVideo.pause();
        remoteVideo = attachMediaStream(remoteVideo, stream);
remoteVideo.load();
}
}

Jacques-Olivier Haché

unread,
Aug 22, 2016, 4:09:14 PM8/22/16
to Temasys WebRTC Plugin
You don't need to run load.

Tim McClure

unread,
Aug 22, 2016, 4:51:03 PM8/22/16
to Temasys WebRTC Plugin
Thx that worked - I have implemented a retry loop to start the webrtc negotiation it I do not get video in a certain timeframe - the retry dies with in IE because I guess you change the video DOM element.  Any recommendations to get around this besides reloading the page?

Jacques-Olivier Haché

unread,
Aug 22, 2016, 5:10:43 PM8/22/16
to Temasys WebRTC Plugin
Again, please read the documentation. Most likely your issue is that you don't wait for the plugin to be loaded in memory. Have a look at AdapterJS.webrtcReady
Reply all
Reply to author
Forward
0 new messages