<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
I'm running Debian 7.7 guest on Ubuntu 14.04 with QEMU 2.0.0
downloaded from the Ubuntu repositories.<br>
With spicec client everything runs fine, but when using the
spice-html5 client the sound doesn't work. I have <br>
noticed that the server is sending the audio in raw PCM format and
the html client complains about it. So I <br>
tried to set the "playback-compression" option to "on" (should be
"on" by default)<span style="color: rgb(0, 0, 0); font-family:
'Times New Roman'; font-size: medium; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: auto; text-align: left; text-indent:
0px; text-transform: none; white-space: normal; widows: 1;
word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline
!important; float: none;"></span>, but it didn't work.<br>
<br>
Now I'm trying to tweak the javascript code for being able to play
PCM audio, so I started to write some trial<br>
code, however, I'm stuck with the addSourceBuffer method, it doesn't
seem to recognize other MIME type<br>
different than the original 'audio/webm; codecs="opus"' (I tried
with Chrome and Firefox).<br>
<blockquote>from playback.js:<br>
<blockquote>(...)<br>
function handle_source_open(e)<br>
{<br>
var p = this.spiceconn;<br>
<br>
if (p.source_buffer)<br>
return;<br>
<br>
p.source_buffer =
this.addSourceBuffer(SPICE_PLAYBACK_CODEC); // I can't use
other different than<br>
// 'audio/webm<span
style="color: rgb(51, 51, 51); font-family: Consolas,
'Liberation Mono', Menlo, Courier, monospace; font-size: 12px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 16.7999992370605px;
orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: pre; widows: 1;
word-spacing: 0px; -webkit-text-stroke-width: 0px; display:
inline !important; float: none; background-color: rgb(255,
255, 255);"></span>; codecs="opus"'<br>
if (! p.source_buffer)<br>
(...)<br>
</blockquote>
</blockquote>
Maybe I missing something or it's impossible to make PCM audio work
on MediaSource API.<br>
<br>
Modify the server would be hard at this moment, but if there's no
other option, which version(s) should I use <br>
to force the server to use opus?<br>
<br>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
I
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<span style="font-size: 16px; font-style: normal; font-variant:
normal; font-weight: normal; letter-spacing: normal; line-height:
16px; text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 1; word-spacing: 0px; display: inline
! important; float: none; background-color: rgb(255, 255, 255);">really
appreciate any help you can provide.</span><br>
<br>
Lorenzo.<br>
<br>
<div class="moz-signature">-- <br>
<br>
</div>
</body>
</html>