-
Notifications
You must be signed in to change notification settings - Fork 68
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
Custom video sink #127
base: master
Are you sure you want to change the base?
Custom video sink #127
Conversation
kalgecin
commented
Oct 27, 2023
•
edited
Loading
edited
Thanks for this, @kalgecin. I can confirm this works for custom video sources. |
Thank you very much for the code, can you provide a demo of the java syntax? I didn't understand the meaning of this piece of code. Thank you so much! |
I don't do much java as of late, so can't make a fully java example, but it should not differ from the example I provided (except for val and absence of new keyword)
Here, I have a byte array buffer in which [0 to ysize] is the Y frame, then the next uvSize bytes are the U frame and the rest is the V frame. And i'm copying the values with the ranges specified into the nativeI420Buffer (which has the frames as separate buffers). So essentially i'm splitting my one array into the 3 byte buffers |
I got it, thank you so much! @kalgecin |
Hello @kalgecin , I'd like to ask you a question. I'm encountering a difficult-to-understand issue. The same piece of code can successfully execute 'mvn install' on macOS, but on the Windows 10 x64 platform, running 'mvn install' results in a compilation failure. The error log is as follows:
Additional Information:
|
so cool! When can it be merged into the main branch? @devopvoid |
so cool! When can it be merged into the main branch? @devopvoid |
Is there any update on this PR ? also is it possible to add custom audio source only e.g mp3 or wav file or other format also with media pause / stop function |
Updates on this one? |