Skip to content

Commit 4107fe1

Browse files
authored
Merge branch 'master' into packages
2 parents 7af45a8 + 0ad0577 commit 4107fe1

File tree

7 files changed

+11
-8
lines changed

7 files changed

+11
-8
lines changed

app/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ dependencies {
161161

162162
// Android Core & Lifecycle
163163
implementation(libs.core.ktx)
164-
implementation(libs.activity)
164+
implementation(libs.activity.ktx)
165165
implementation(libs.appcompat)
166166
implementation(libs.bundles.navigationKtx)
167167
implementation(libs.lifecycle.livedata.ktx)

app/src/main/java/com/lagradost/cloudstream3/ui/player/AbstractPlayerFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ abstract class AbstractPlayerFragment(
192192
}
193193
}
194194

195-
canEnterPipMode = isPlayingRightNow && hasPipModeSupport
195+
canEnterPipMode = (isPlayingRightNow || isBuffering) && hasPipModeSupport
196196
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
197197
activity?.let { act ->
198198
PlayerPipHelper.updatePIPModeActions(

app/src/main/java/com/lagradost/cloudstream3/ui/player/CS3IPlayer.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,8 @@ class CS3IPlayer : IPlayer {
758758
cacheDirectory.mkdirs()
759759
}
760760
CronetEngine.Builder(context)
761+
.enableBrotli(true)
762+
.enableHttp2(true)
761763
.enableQuic(true)
762764
.setStoragePath(cacheDirectory.absolutePath)
763765
.setLibraryLoader(null)

app/src/main/java/com/lagradost/cloudstream3/ui/player/FullScreenPlayer.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ open class FullScreenPlayer : AbstractPlayerFragment() {
189189
)
190190

191191
private var isShowingEpisodeOverlay: Boolean = false
192-
192+
private var previousPlayStatus: Boolean = false
193193
override fun onCreateView(
194194
inflater: LayoutInflater,
195195
container: ViewGroup?,
@@ -2083,11 +2083,13 @@ open class FullScreenPlayer : AbstractPlayerFragment() {
20832083

20842084
private fun toggleEpisodesOverlay(show: Boolean) {
20852085
if (show && !isShowingEpisodeOverlay) {
2086+
previousPlayStatus = player.getIsPlaying()
20862087
player.handleEvent(CSPlayerEvent.Pause)
20872088
showEpisodesOverlay()
20882089
isShowingEpisodeOverlay = true
20892090
animateEpisodesOverlay(true)
20902091
} else if (isShowingEpisodeOverlay) {
2092+
if(previousPlayStatus) player.handleEvent(CSPlayerEvent.Play)
20912093
isShowingEpisodeOverlay = false
20922094
animateEpisodesOverlay(false)
20932095
}

app/src/main/res/values/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@
852852
<string name="torrent_not_accepted">Restart app and accept Stream Torrent pop-up to proceed.</string>
853853
<string name="software_decoding_key" translatable="false">software_decoding_key2</string>
854854
<string name="software_decoding">Software decoding</string>
855-
<string name="software_decoding_desc">Software decoding enables the player to play video files not supported by your phone, but may cause laggy or unstable playback on high resolution</string>
855+
<string name="software_decoding_desc">Software decoding enables the player to play video files not supported by your device, but may cause laggy or unstable playback on high resolution.</string>
856856
<string name="volume_exceeded_100">Volume has exceeded 100%</string>
857857
<string name="slide_up_again_to_exceed_100">Slide up again to go beyond 100%</string>
858858
<string name="update_plugins">Update Plugins</string>

gradle/libs.versions.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[versions]
22
acraCore = "5.13.1"
3-
activity = "1.11.0"
3+
activityKtx = "1.11.0"
44
androidGradlePlugin = "8.13.0"
55
appcompat = "1.7.1"
66
biometric = "1.4.0-alpha04"
@@ -54,7 +54,7 @@ targetSdk = "35"
5454
[libraries]
5555
acra-core = { module = "ch.acra:acra-core", version.ref = "acraCore" }
5656
acra-toast = { module = "ch.acra:acra-toast", version.ref = "acraCore" }
57-
activity = { module = "androidx.activity:activity", version.ref = "activity" }
57+
activity-ktx = { module = "androidx.activity:activity-ktx", version.ref = "activityKtx" }
5858
android-gradle-plugin = { module = "com.android.tools.build:gradle", version.ref = "androidGradlePlugin" }
5959
appcompat = { module = "androidx.appcompat:appcompat", version.ref = "appcompat" }
6060
biometric = { module = "androidx.biometric:biometric", version.ref = "biometric" }

library/src/commonMain/kotlin/com/lagradost/cloudstream3/extractors/HubCloud.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import com.lagradost.cloudstream3.utils.Qualities
1010
import com.lagradost.cloudstream3.utils.loadExtractor
1111
import com.lagradost.cloudstream3.utils.newExtractorLink
1212
import java.net.URI
13-
import java.net.URL
1413

1514
class HubCloud : ExtractorApi() {
1615
override val name = "Hub-Cloud"
@@ -25,7 +24,7 @@ class HubCloud : ExtractorApi() {
2524
) {
2625
val tag = "HubCloud"
2726
val realUrl = url.takeIf {
28-
try { URL(it); true } catch (e: Exception) { Log.e(tag, "Invalid URL: ${e.message}"); false }
27+
try { URI(it).toURL(); true } catch (e: Exception) { Log.e(tag, "Invalid URL: ${e.message}"); false }
2928
} ?: return
3029

3130
val baseUrl=getBaseUrl(realUrl)

0 commit comments

Comments
 (0)