bilibili / ijkplayer

Android/iOS video player based on FFmpeg n3.4, with MediaCodec, VideoToolbox support.
GNU General Public License v2.0
32.54k stars 8.13k forks source link

ijkplayer should allow user to hear plaied sound when Android phone screen is turned off #2928

Open JanuszChmiel opened 7 years ago

JanuszChmiel commented 7 years ago

Dear specialists, How complex would be to allow users of Android phones so they would be able to hear sound produced by ijkplayer? When android phone screen will be turned off by using button incorporated to The phone? Or it is impossible thanks to algorithms which are being used by native C++ libraries? ijkplayer player is very robust and stable player for Android. It support not only video, but also live Internet radio streams. And this should be mentioned on this site, because it is really possible to listen live radios by using yours player with no issues. And yours player is even able to stop play when incoming call is active. And what is The most advanced, when phone call is ended, player play automatically. I Am visually impaired and I AM not so clever to be able to implement my wish myself. If it would not require many program lines of code, please try to consider my wish. As some videos are containing useful sound. And as a visually impaired, I do not need The phone screen while play some live videos or Internet radios. What do you think about my wish? I have issues while using Android NDK projects. In fact, i have compiled many Java based Gradle projects from Windows. But not C++ projects. I Am able to use Android studio even latest stable version or canary build. But i would like to read some compilation instructions. So I would be able to compile yours player if you will consider to implement my wish to yours code.

raymond1012 commented 7 years ago

Great appreciate your commend and good suggestion. If you dont's need the phone screen while play some live videos or Internet radios, you can try to call stayAwake(false) when start

2017-04-03 23:48 GMT+08:00 JanuszChmiel notifications@github.com:

Dear specialists, How complex would be to allow users of Android phones so they would be able to hear sound produced by ijkplayer? When android phone screen will be turned off by using button incorporated to The phone? Or it is impossible thanks to algorithms which are being used by native C++ libraries? ijkplayer player is very robust and stable player for Android. It support not only video, but also live Internet radio streams. And this should be mentioned on this site, because it is really possible to listen live radios by using yours player with no issues. And yours player is even able to stop play when incoming call is active. And what is The most advanced, when phone call is ended, player play automatically. I Am visually impaired and I AM not so clever to be able to implement my wish myself. If it would not require many program lines of code, please try to consider my wish. As some videos are containing useful sound. And as a visually impaired, I do not need The phone screen while play some live videos or Internet radios. What do you think about my wish? I have issues while using Android NDK projects. In fact, i have compiled many Java based Gradle projects from Windows. But not C++ projects. I Am able to use Android studio even latest stable version or canary build. But i would like to read some compilation instructions. So I would be able to compile yours player if you will consider to implement my wish to yours code.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Bilibili/ijkplayer/issues/2928, or mute the thread https://github.com/notifications/unsubscribe-auth/AEOmlnjDNn_v5mU2-jIkjx2FQfzuCUqqks5rsRTlgaJpZM4Mxusk .