增加注释

This commit is contained in:
董宏宇
2021-02-07 19:49:11 +08:00
parent 4b91ab060a
commit f553835a35

View File

@@ -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();
}
}
}