-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
Background Streaming #28
Comments
Look into VideoView.java
|
I am sorry. My question is for iOS. |
Look into IJKFFMoviePlayerController.m
OpenGL ES must be paused in background, and background audio session need extra work. You have to handle application state change in both video output and audio output |
I have already commented these pause linea. What else do I need to do? |
Than you should implement them in IJKSDLGLView.m and IJKSDLAudioQueueController.m properly. After that, only aout and vout are paused, and read_thread works on. |
I am not using IJKSDLGLView. What do I specificly need to do in IJKSDLAudioQueueController.m? |
Just call pause(). Not sure if there is any thread issue |
Call pause? I don't want to pause streaming. I want to continue streaming on the background. My problem is that it pauses steaming when phone goes into sleep mode. |
I mean call [IJKSDLAudioQueueController pause], It only pause the playing, but not stream IO. If you mean play in background, it would need more work to do. |
Normally, while HLS streaming I am doing this: NSError *setCategoryErr = nil; And I also set the proper value in the info.plist And it plays fine in the background and the sleep mode. But while using your library, these settings are not enough to play in sleep mode. |
It's not the settings' problem, but ijkplayer's problem. Strictly speaking, audio output is not implemented correctly in ijkplayer. |
So what should I do now? Should I wait for an update? |
Sorry, I don't known how, and don't have any plan to do that in weeks. |
Thank you anyway. It is a good library. And I don't know any iOS library that can play rtmp streams. I know some but they suck. :) |
I mean find libs using CoreAudio and support background play, to see how they deal with this issue, and integrate it into ijkplayer. |
fix(android): video render failed after call reset
Hello.
I am using IjkPlayer for audio streaming and I want to be able to stream in the background. I have found all the methods which paused the stream when app goes to background but the app still pauses streaming when I locked the device.
The interesting thing is the app only pauses when the device's light is off. When I turn the light on but keep locked the devices, the app continues streaming. When I turn the light of by pressing power button it pauses streaming again. (I think it is called "Sleep Mode")
Can you help? Thanks.
The text was updated successfully, but these errors were encountered: