增加注释
This commit is contained in:
@@ -27,6 +27,7 @@ public class LivePushActivity extends BaseLiveActivity {
|
||||
public void onVideoFrame(byte[] bytes, int bytesLength) {
|
||||
//Log.i(TAG, "onVideoFrame byte length: " + bytesLength);
|
||||
if (liveStreamManager != null) {
|
||||
// 将摄像头采集的YUV数据推送到ZEGO
|
||||
liveStreamManager.notifyYUVData(bytes, 1280, 720, 3);
|
||||
}
|
||||
}
|
||||
@@ -40,7 +41,10 @@ public class LivePushActivity extends BaseLiveActivity {
|
||||
protected void onDestroy() {
|
||||
super.onDestroy();
|
||||
if (liveStreamManager != null) {
|
||||
// 停止
|
||||
liveStreamManager.stopLiveStream();
|
||||
// 释放资源
|
||||
liveStreamManager.release();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user