File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
src/main/java/com/tencent/iot/explorer/link/demo/video/preview Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ import kotlinx.coroutines.delay
5757import kotlinx.coroutines.launch
5858import tv.danmaku.ijk.media.player.IMediaPlayer
5959import tv.danmaku.ijk.media.player.IjkMediaPlayer
60+ import java.io.File
6061import java.lang.ref.WeakReference
6162import 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
You can’t perform that action at this time.
0 commit comments