Browse Source

Update StreamMediaDataSource.kt

iostyle 4 years ago
parent
commit
2036d1db7d

+ 2 - 2
Android/PlayerProj/animplayer/src/main/java/com/tencent/qgame/animplayer/file/StreamMediaDataSource.kt

@@ -5,7 +5,7 @@ import android.os.Build
 import androidx.annotation.RequiresApi
 import androidx.annotation.RequiresApi
 
 
 @RequiresApi(Build.VERSION_CODES.M)
 @RequiresApi(Build.VERSION_CODES.M)
-class StreamMediaDataSource(var bytes: ByteArray) : MediaDataSource() {
+class StreamMediaDataSource(val bytes: ByteArray) : MediaDataSource() {
 
 
     override fun close() {
     override fun close() {
     }
     }
@@ -31,4 +31,4 @@ class StreamMediaDataSource(var bytes: ByteArray) : MediaDataSource() {
             return bytes.size.toLong()
             return bytes.size.toLong()
         }
         }
     }
     }
-}
+}