BinaryONe
commited on
Commit
·
4cef26c
1
Parent(s):
e23bed8
Miseleneous Fix - Code Upgrades
Browse files
FileStream/server/template/owner.js
CHANGED
|
@@ -267,7 +267,8 @@ function vlc_player() {
|
|
| 267 |
|
| 268 |
if (/android/i.test(userAgent)) {
|
| 269 |
// If the platform is Android, create an intent
|
| 270 |
-
const openVlcIntent = `intent://${openstreamlink}#Intent;package=org.videolan.vlc;scheme=vlc;end`;
|
|
|
|
| 271 |
window.location.href = openVlcIntent;
|
| 272 |
} else {
|
| 273 |
// If the platform is Desktop, keep it as it is
|
|
@@ -277,7 +278,8 @@ function vlc_player() {
|
|
| 277 |
|
| 278 |
function mx_player() {
|
| 279 |
const openstreamlink = streamlink;
|
| 280 |
-
const openMx = `intent:${openstreamlink}#Intent;package=com.mxtech.videoplayer.ad;end`;
|
|
|
|
| 281 |
window.location.href = openMx;
|
| 282 |
}
|
| 283 |
|
|
|
|
| 267 |
|
| 268 |
if (/android/i.test(userAgent)) {
|
| 269 |
// If the platform is Android, create an intent
|
| 270 |
+
//const openVlcIntent = `intent://${openstreamlink}#Intent;package=org.videolan.vlc;scheme=vlc;end`;
|
| 271 |
+
const openVlcIntent = `intent:${openstreamlink}#Intent;action=android.intent.action.VIEW;type=video/*;package=org.videolan.vlc;end`; // VLC intent for Android
|
| 272 |
window.location.href = openVlcIntent;
|
| 273 |
} else {
|
| 274 |
// If the platform is Desktop, keep it as it is
|
|
|
|
| 278 |
|
| 279 |
function mx_player() {
|
| 280 |
const openstreamlink = streamlink;
|
| 281 |
+
//const openMx = `intent:${openstreamlink}#Intent;package=com.mxtech.videoplayer.ad;end`;
|
| 282 |
+
const openMx = `intent:${openstreamlink}#Intent;action=android.intent.action.VIEW;type=video/*;package=com.mxtech.videoplayer.ad;end`;
|
| 283 |
window.location.href = openMx;
|
| 284 |
}
|
| 285 |
|