You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.6 KiB
Java
52 lines
1.6 KiB
Java
2 years ago
|
/* */ package com.dowse.rtmp;
|
||
|
/* */
|
||
|
/* */ public class DSRtmpManager
|
||
|
/* */ {
|
||
|
/* */ private static final String TAG = "DSRtmpManager";
|
||
|
/* */ private static DSRtmpManager instance;
|
||
|
/* */ private RtmpJNI mRtmpJNI;
|
||
|
/* */
|
||
|
/* */ private DSRtmpManager()
|
||
|
/* */ {
|
||
|
/* 16 */ this.mRtmpJNI = new RtmpJNI();
|
||
|
/* 17 */ this.mRtmpJNI.init_rtmp();
|
||
|
/* */ }
|
||
|
/* */
|
||
|
/* */ public static synchronized DSRtmpManager getInstance() {
|
||
|
/* 21 */ if (instance == null) {
|
||
|
/* 22 */ instance = new DSRtmpManager();
|
||
|
/* */ }
|
||
|
/* 24 */ return instance;
|
||
|
/* */ }
|
||
|
/* */
|
||
|
/* */ public void release() {
|
||
|
/* 28 */ if (this.mRtmpJNI != null)
|
||
|
/* 29 */ this.mRtmpJNI.unnit_rtmp();
|
||
|
/* */ }
|
||
|
/* */
|
||
|
/* */ public DSCamera getDSCamera() {
|
||
|
/* 33 */ return this.mRtmpJNI.get_camera();
|
||
|
/* */ }
|
||
|
/* */
|
||
|
/* */ public boolean startRTMP(String rtmpUrl, int channel, int stream_no) {
|
||
|
/* 37 */ return this.mRtmpJNI.start_rtmp(rtmpUrl, channel, stream_no);
|
||
|
/* */ }
|
||
|
/* */
|
||
|
/* */ public boolean stopRTMP(int channel, int stream_no) {
|
||
|
/* 41 */ return this.mRtmpJNI.stop_rtmp(channel, stream_no);
|
||
|
/* */ }
|
||
|
/* */
|
||
|
/* */ public void setRTMPStatusListener(IRTMPListener listener) {
|
||
|
/* 45 */ this.mRtmpJNI.set_rtmp_listener(listener);
|
||
|
/* */ }
|
||
|
/* */
|
||
|
/* */ static
|
||
|
/* */ {
|
||
|
/* 6 */ System.loadLibrary("rtmp");
|
||
|
/* */ }
|
||
|
/* */ }
|
||
|
|
||
|
/* Location: C:\Users\JingJing\Desktop\i1aar\ds_rtmp-1.0.4-23050422\classes.jar
|
||
|
* Qualified Name: com.dowse.rtmp.DSRtmpManager
|
||
|
* JD-Core Version: 0.6.0
|
||
|
*/
|