mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 06:10:31 +05:30
Support sharing live links to LibreTube
This commit is contained in:
parent
98a094ffd7
commit
7a2f97de6d
@ -264,6 +264,7 @@
|
||||
<data android:pathPrefix="/embed/" />
|
||||
<data android:pathPrefix="/watch" />
|
||||
<data android:pathPrefix="/shorts/" />
|
||||
<data android:pathPrefix="/live/" />
|
||||
<!-- channel prefix -->
|
||||
<data android:pathPrefix="/channel/" />
|
||||
<data android:pathPrefix="/user/" />
|
||||
|
@ -51,12 +51,14 @@ class RouterActivity : BaseActivity() {
|
||||
}
|
||||
uri.path!!.contains("/shorts/") ||
|
||||
uri.path!!.contains("/embed/") ||
|
||||
uri.path!!.contains("/v/")
|
||||
uri.path!!.contains("/v/") ||
|
||||
uri.path!!.contains("/live/")
|
||||
-> {
|
||||
val videoId = uri.path!!
|
||||
.replace("/shorts/", "")
|
||||
.replace("/v/", "")
|
||||
.replace("/embed/", "")
|
||||
.replace("/live/", "")
|
||||
|
||||
intent.putExtra(IntentData.videoId, videoId)
|
||||
}
|
||||
|
@ -334,7 +334,7 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
|
||||
|
||||
if (PlayerHelper.swipeGestureEnabled) {
|
||||
binding.playerMotionLayout.addSwipeUpListener {
|
||||
if(this::streams.isInitialized) {
|
||||
if (this::streams.isInitialized) {
|
||||
binding.player.hideController()
|
||||
setFullscreen()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user