File tree Expand file tree Collapse file tree 7 files changed +11
-8
lines changed
java/com/lagradost/cloudstream3/ui/player
library/src/commonMain/kotlin/com/lagradost/cloudstream3/extractors Expand file tree Collapse file tree 7 files changed +11
-8
lines changed Original file line number Diff line number Diff 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)
Original file line number Diff line number Diff 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(
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 11[versions ]
22acraCore = " 5.13.1"
3- activity = " 1.11.0"
3+ activityKtx = " 1.11.0"
44androidGradlePlugin = " 8.13.0"
55appcompat = " 1.7.1"
66biometric = " 1.4.0-alpha04"
@@ -54,7 +54,7 @@ targetSdk = "35"
5454[libraries ]
5555acra-core = { module = " ch.acra:acra-core" , version.ref = " acraCore" }
5656acra-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 " }
5858android-gradle-plugin = { module = " com.android.tools.build:gradle" , version.ref = " androidGradlePlugin" }
5959appcompat = { module = " androidx.appcompat:appcompat" , version.ref = " appcompat" }
6060biometric = { module = " androidx.biometric:biometric" , version.ref = " biometric" }
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ import com.lagradost.cloudstream3.utils.Qualities
1010import com.lagradost.cloudstream3.utils.loadExtractor
1111import com.lagradost.cloudstream3.utils.newExtractorLink
1212import java.net.URI
13- import java.net.URL
1413
1514class 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)
You can’t perform that action at this time.
0 commit comments