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

fix mediaframe callback #63

Open
notedit opened this issue May 5, 2020 · 5 comments
Open

fix mediaframe callback #63

notedit opened this issue May 5, 2020 · 5 comments

Comments

@notedit
Copy link
Owner

notedit commented May 5, 2020

No description provided.

@imtiyazs
Copy link

Um.. any updates on this?
and I guess there is a change in demo too.. webrtc to hls demo , type change uint to uint64.

@notedit
Copy link
Owner Author

notedit commented May 19, 2020

yes, i will fix this this weekend.

@Rovak
Copy link

Rovak commented Aug 3, 2020

i'm stuck on getting the webrtc -> rtmp demo to work because the callback got commented out and the native code has changed

//if p.multiplexer != nil && p.multiplexer.mediaframeListener != nil {
// buffer := C.GoBytes(unsafe.Pointer(frame.GetData()), C.int(frame.GetLength()))
// if frame.GetType() == native.MediaFrameVideo {
// data, err := annexbConvert(buffer)
// if err == nil {
// p.multiplexer.mediaframeListener(data, frame.GetTimeStamp())
// } else {
// fmt.Println(err)
// }
// } else {
// p.multiplexer.mediaframeListener(buffer, frame.GetTimeStamp())
// }
//
//}

any hints on getting this working?

@wwq1985
Copy link

wwq1985 commented Nov 28, 2020

i got this problem too, any plan to fix this?

@hocnt84
Copy link

hocnt84 commented Dec 29, 2020

@Rovak @wwq1985 I think, this is a solution for you.
notedit/media-server-go-demo#30 (comment)

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

5 participants