i have wrapped a lib for screen stream by android Mediaprojection and Rtsp server.
it is working now. but must always connect to competer by usb.
if disconnect from computer. this app only working about 40 second.
here is screen RTSP lib and app. this app will listen on 9000 Port.
when you connet to wifi. use VLC player open rtsp://YOUIPADDRESS:9000 ,you will get screen video stream.
now have a bug:
your phone must conntect to a computer by usb.if didnot conneted ,the app video will stop streaming in 20 secends.
,if the computer didn't in windows system ,the app working fine too.