Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
HsuTzuJen opened this issue Aug 31, 2019 · 3 comments

Comments

@HsuTzuJen
Copy link

HsuTzuJen commented Aug 31, 2019

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
@HsuTzuJen HsuTzuJen changed the title Can I decode a h264 file into images? Uncaught (in promise) abort({}). Build with -s ASSERTIONS=1 for more info. Aug 31, 2019
@soliton4
Copy link
Collaborator

u wot m8

@HsuTzuJen
Copy link
Author

HsuTzuJen commented Sep 1, 2019

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();

@soliton4
Copy link
Collaborator

soliton4 commented Sep 1, 2019

what is a 10.H264?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants