MediaProjection&&rtmp
I was originally considering using MediaProjection (Android) to obtain screen stream data and then using sockets for real-time screen casting, but due to decoding issues on the receiving end, the effect was very poor. Can I use this library to replace my socket part? Simply put, I will still use MediaProjection to obtain screen stream data and then use this lib to implement RTMP streaming? Thank you.
I have checked some information and it is possible. Currently, I am wondering if I can directly use this lib
Attempt to invoke virtual method 'void android.media.projection.MediaProjection.registerCallback(android.media.projection.MediaProjection$Callback, android.os.Handler)' on a null object reference
Something went wrong, I don't know why, I can't solve it
How to view the user documentation? For my current needs, I can only look at the source code, but I know too little about this technology, so looking at the source code is painful for me
I should use RtmpStream instead of RtmpDisplay ?? docs/library/com.pedro.library.rtmp/-rtmp-stream/index.html
Hello,
Both class can be used. Currently RtmpStream is recommended
Hello,
Both class can be used. Currently RtmpStream is recommended
Thank you very much
Hello,
Both class can be used. Currently RtmpStream is recommended
Does RTMPStream or other class include MediaProjection related functionality? I don't need to separately obtain screen data (MediaProjection)
Hello,
Using RtmpStream class, if you want use MediaProjection you can set it with ScreenSource class. You have an example code in screen example inside app module.