Skip to content

Commit 0d3f28c

Browse files
committed
自定义保存裸流路径调试
1 parent d9845bc commit 0d3f28c

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

sdkdemo/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ android {
9292
}
9393
applicationVariants.configureEach { variant ->
9494
variant.outputs.configureEach { output ->
95-
def newApkName = "VideoLinkDemo-${variant.buildType.name}-${variant.versionName}.apk"
95+
def newApkName = "VideoLinkSdkDemo.apk"
9696
outputFileName = newApkName
9797
}
9898
}

sdkdemo/src/main/java/com/tencent/iot/explorer/link/demo/video/preview/VideoPreviewActivity.kt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ import kotlinx.coroutines.delay
5757
import kotlinx.coroutines.launch
5858
import tv.danmaku.ijk.media.player.IMediaPlayer
5959
import tv.danmaku.ijk.media.player.IjkMediaPlayer
60+
import java.io.File
6061
import java.lang.ref.WeakReference
6162
import java.util.Locale
6263

@@ -135,9 +136,13 @@ class VideoPreviewActivity : VideoPreviewBaseActivity<ActivityVideoPreviewBindin
135136
}
136137
getDeviceP2PInfo()
137138
XP2P.setCallback(this)
138-
// val path = getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS)?.absolutePath +"/data_video.data"
139+
// val path = getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS)?.absolutePath +"/neil/ttt/"
139140
// Log.d(tag, "====保存裸流===$path")
140-
// XP2P.recordstreamPath(path) //自定义采集裸流路径
141+
// val file = File(path)
142+
// if (!file.exists()){
143+
// file.mkdirs()
144+
// }
145+
// XP2P.recordstreamPath(path+"data_video.data") //自定义采集裸流路径
141146
//实例化对象并设置监听器
142147
volumeChangeObserver = VolumeChangeObserver(this)
143148
volumeChangeObserver?.volumeChangeListener = this

0 commit comments

Comments
 (0)