Skip to content

Commit

Permalink
fix compilation and remove warning
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroSG94 committed Jul 9, 2024
1 parent d7a61ee commit bea0367
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/src/main/java/com/pedro/sample/PathUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
package com.pedro.sample

import android.content.Context
import android.content.Intent
import android.net.Uri
import android.media.MediaScannerConnection
import android.os.Environment
import java.io.File

Expand All @@ -35,6 +34,6 @@ object PathUtils {

@JvmStatic
fun updateGallery(context: Context, path: String) {
context.sendBroadcast(Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, Uri.fromFile(File(path))))
MediaScannerConnection.scanFile(context, arrayOf(path), null, null)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ class RtspServerStreamClient(
rtspServer.setAuth(user, password)
}

override fun setBitrateExponentialFactor(factor: Float) {
}

override fun setReTries(reTries: Int) {
}

Expand All @@ -52,6 +55,8 @@ class RtspServerStreamClient(
rtspServer.clearCache()
}

override fun getBitrateExponentialFactor(): Float = 1f

override fun getCacheSize(): Int = rtspServer.cacheSize

override fun getItemsInCache(): Int = rtspServer.getItemsInCache()
Expand Down

0 comments on commit bea0367

Please sign in to comment.