Mercurial / BlazorMedia

Blazor Library for Interacting with Browser Media Streaming APIs
MIT License
48 stars 10 forks source link

FEATURE REQUEST: Support multiple codecs #12

Open kirk-marple opened 4 years ago

kirk-marple commented 4 years ago

Would be useful to allow selection of codecs, as shown in this example: https://github.com/addpipe/Media-Recorder-API-Demo/blob/master/js/main.js

if (MediaRecorder.isTypeSupported('video/webm;codecs=vp9')) { var options = {mimeType: 'video/webm;codecs=vp9'}; } else if (MediaRecorder.isTypeSupported('video/webm;codecs=h264')) { var options = {mimeType: 'video/webm;codecs=h264'}; } else if (MediaRecorder.isTypeSupported('video/webm;codecs=vp8')) { var options = {mimeType: 'video/webm;codecs=vp8'}; } log('Using '+options.mimeType); mediaRecorder = new MediaRecorder(localStream, options);

Mercurial commented 4 years ago

this actually very good idea, I will do my best to make this happen