크리에이터 커뮤니티 오디오 녹음

- 파일명 수정
This commit is contained in:
klaus 2024-08-08 02:02:21 +09:00
parent 81faf3f7ee
commit b98cc8ed79
4 changed files with 10 additions and 5 deletions

View File

@ -40,8 +40,8 @@ android {
applicationId "kr.co.vividnext.sodalive" applicationId "kr.co.vividnext.sodalive"
minSdk 23 minSdk 23
targetSdk 33 targetSdk 33
versionCode 92 versionCode 95
versionName "1.14.1" versionName "1.15.0"
} }
buildTypes { buildTypes {

View File

@ -6,10 +6,14 @@ import android.media.AudioAttributes
import android.media.MediaPlayer import android.media.MediaPlayer
import android.net.Uri import android.net.Uri
import android.widget.Toast import android.widget.Toast
import com.google.gson.annotations.SerializedName
import kr.co.vividnext.sodalive.audio_content.AudioContentPlayService import kr.co.vividnext.sodalive.audio_content.AudioContentPlayService
import java.io.IOException import java.io.IOException
data class CreatorCommunityContentItem(val contentId: Long, val url: String) data class CreatorCommunityContentItem(
@SerializedName("contentId") val contentId: Long,
@SerializedName("url") val url: String
)
class CreatorCommunityMediaPlayerManager( class CreatorCommunityMediaPlayerManager(
private val context: Context, private val context: Context,

View File

@ -85,7 +85,7 @@ class RecordingVoiceFragment : BottomSheetDialogFragment() {
} }
binding.ivRecordStart.setOnClickListener { binding.ivRecordStart.setOnClickListener {
fileNameMedia = requireActivity().filesDir.path + fileNameMedia = requireActivity().filesDir.path +
"/record_community_voice_${System.currentTimeMillis()}.m4a" "/now_voice_${System.currentTimeMillis()}.m4a"
val fileMedia = File(fileNameMedia) val fileMedia = File(fileNameMedia)
if (!fileMedia.exists()) { if (!fileMedia.exists()) {

View File

@ -20,7 +20,8 @@
android:layout_above="@+id/ll_tab" android:layout_above="@+id/ll_tab"
android:background="@color/color_222222" android:background="@color/color_222222"
android:paddingHorizontal="13.3dp" android:paddingHorizontal="13.3dp"
android:paddingVertical="10.7dp"> android:paddingVertical="10.7dp"
android:visibility="gone">
<ImageView <ImageView
android:id="@+id/iv_cover" android:id="@+id/iv_cover"