mbebenita/Broadway

Uncaught (in promise) abort({}). Build with -s ASSERTIONS=1 for more info.

HsuTzuJen opened this issue · 3 comments

127.0.0.1/:1 Uncaught (in promise) abort({}). Build with -s ASSERTIONS=1 for more info.

  Promise.catch (async)    
  instantiateArrayBuffer @ Decoder.js:66
  (anonymous) @ Decoder.js:66
  Promise.catch (async)    
  doNativeWasm @ Decoder.js:66
  (anonymous) @ Decoder.js:66
  getModule @ Decoder.js:66
  Decoder @ Decoder.js:217
  Player @ Player.js:189
  (anonymous) @ test.js:1

u wot m8

Hi, I received a data "10.H264" by jQuery, but nothing happened on the canvas after p.decode(data).
No error happened in the console. I can play the 10.H264, and it is created by openh264-1.8.0-win64.dll.

<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>test</title>
</head>

<body>
    <div id="test"></div>
    <script type="text/javascript" src="jquery.min.js"></script>
    <script type="text/javascript" src="Decoder.js"></script>
    <script type="text/javascript" src="YUVCanvas.js"></script>
    <script type="text/javascript" src="Player.js"></script>
    <script type="text/javascript" src="test.js"></script>
</body>
</html>
var p = new Player({
    size :{ width: 520, height: 390}
  });

var canvas = p.canvas;
document.getElementById('test').appendChild(canvas);
function test(){
  jQuery.get('http://127.0.0.1/mp4/?file=10', function(data) {
    p.decode(data);
  });
}
test();

what is a 10.H264?