File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
sdkdemo/src/main/java/com/tencent/iot/explorer/link/demo/video/preview Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import android.graphics.SurfaceTexture
99import android.media.AudioFormat
1010import android.media.AudioManager
1111import android.os.Bundle
12+ import android.os.Environment
1213import android.os.Handler
1314import android.os.Message
1415import android.text.TextUtils
@@ -134,6 +135,9 @@ class VideoPreviewActivity : VideoPreviewBaseActivity<ActivityVideoPreviewBindin
134135 }
135136 getDeviceP2PInfo()
136137 XP2P .setCallback(this )
138+ // val path = getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS)?.absolutePath +"/data_video.data"
139+ // Log.d(tag, "====保存裸流===$path")
140+ // XP2P.recordstreamPath(path) //自定义采集裸流路径
137141 // 实例化对象并设置监听器
138142 volumeChangeObserver = VolumeChangeObserver (this )
139143 volumeChangeObserver?.volumeChangeListener = this
@@ -186,7 +190,6 @@ class VideoPreviewActivity : VideoPreviewBaseActivity<ActivityVideoPreviewBindin
186190
187191 private fun delegateHttpFlv () {
188192 val id = " ${presenter.getProductId()} /${presenter.getDeviceName()} "
189- // XP2P.recordstreamPath("/storage/emulated/0/data_video.flv") //自定义采集裸流路径
190193// XP2P.recordstream(id) //开启自定义采集裸流
191194 val prefix = XP2P .delegateHttpFlv(id)
192195 if (prefix.isNotEmpty()) {
You can’t perform that action at this time.
0 commit comments