warren-bank / Android-RTSP-IPCam-Viewer

Android app to view RTSP and RTMP IP camera video streams.
GNU General Public License v2.0
77 stars 11 forks source link

Export extra -core / ui #4

Closed CMingTseng closed 4 years ago

CMingTseng commented 4 years ago

Dear Sir

as general develop

we . like use jenter / bintray to get library

like this :

dependencies { implementation group: 'com.google.android.exoplayer', name: 'core', version: '2.9.2' implementation "com.google.android.exoplayer:ui:2.9.2" }

as you say { . seems that Google has no intention to merge this library ..}

so i try to export & refactoring the RTSP library as Google project Structure

let other develop can use

dependencies { implementation group: 'com.google.android.exoplayer', name: 'core', version: '2.9.2' implementation "com.google.android.exoplayer:ui:2.9.2" implementation group: 'com.google.android.exoplayer', name: 'extra-core', version: '0.0.1' implementation "com.google.android.exoplayer:extra-ui:0.0.1" implementation "com.google.android.exoplayer:extension-sdp:0.0.1" implementation "com.google.android.exoplayer:extension-rtp:0.0.1" implementation "com.google.android.exoplayer:extension-rtsp:0.0.1" }

it seem ok ?? !! <--- pass build apk

But i can not play RTSP ?? (it seem work i can see logcat get information )

not any streaming . show at screen !!!

{

01-09 12:19:19.379 13457-13659/com.github.warren_bank.rtsp_ipcam_viewer V/Receiver: RTSP/1.0 200 OK CSeq: 3 Transport: RTP/AVP;unicast;client_port=59446-59447;server_port=50024-50025;ssrc=DA8B1BCB;mode="PLAY" Server: GStreamer RTSP server Session: u3wAm6BMU3DXa$gJ; timeout=60 Date: Thu, 09 Jan 2020 04:19:19 GMT 01-09 12:19:19.388 13457-13660/com.github.warren_bank.rtsp_ipcam_viewer V/Sender: PLAY rtsp://8.42.69.117:554/axis-media/media.amp?videocodec=h264&resolution=1280x720 RTSP/1.0 CSeq: 4 User-Agent: ExoPlayerLib/2.11.1 (Media Player for Android) Session: u3wAm6BMU3DXa$gJ; Range: npt=0.000- Scale: 1.0

}

can fixed ?

PS . your v02.01.00-alpha.01 ---> some devices ok . some devices only handshake rtsp no streaming at screen

THX

warren-bank commented 4 years ago