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

How do i have to send the data? #8

Open
g33kz0rd opened this issue Jun 3, 2016 · 4 comments
Open

How do i have to send the data? #8

g33kz0rd opened this issue Jun 3, 2016 · 4 comments

Comments

@g33kz0rd
Copy link

g33kz0rd commented Jun 3, 2016

How does the server have to send the data?

Im currently opening it with a mp4reader and sending the raw frames that it provides me ( not jpeg or anything, just the h264 frames ) but it doesnt work

By the little knowledge I have I asume its becouse the player is not properly initialized ( with the sps and pps ) but I have little to know idea how to achieve that using the provided framework

Im using this to decode the frames

var player = new Player({ useWorker: true, workerFile: "Decoder.js", width:1280, height:720 }); player.decode(bytes);

@soliton4
Copy link
Owner

soliton4 commented Jun 3, 2016

make sure you use baseline profile

@g33kz0rd
Copy link
Author

g33kz0rd commented Jun 3, 2016

But I'm using the demo videos you provide in the Broadway samples

@soliton4
Copy link
Owner

soliton4 commented Jun 3, 2016

make sure you send complete nal units
a nal unit starts with 00 00 00 01 which must be included

have a breakpoint in the onpicturedecoded function to see if it works

@g33kz0rd
Copy link
Author

g33kz0rd commented Jun 3, 2016

I'll keep trying next week, I'll try upload a demo if I get it done, I see a lot of people asking for the same features

Thanks!

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