[Q] HTML Link to open in MX Player - MX Player

I am making an app in html/js and php and using appsgeyser to construct it
it is basically a website and the app acts as the browser so no real app code involved
I am desperately trying to open streams in mxplayer but i cant get the option to come up so trying to force it
Open link in chrome:
window.top.location = "googlechrome://navigate?url="+url; - WORKS!!!
Open Link in XMTV Player
var url = '<?php echo base64_encode($stream);?>';
window.top.location = "xmtv://"+url; - WORKS!!! (but mxplayer runs better)
How can I do the same in MX player?
Please help

I'm no web development pro, but if you want to interface directly with MX, you should be using the API where possible: https://sites.google.com/site/mxvpen/api

the only option i can see is
Code:
Launch through Intent scheme.
which doesnt work with js
I am going to attempt to create the link in a hidden div and click it with js, i will update if that works
UPDATE: The Intent link only bring you to the playstore, it doesnt open the stream

dennisbtv said:
the only option i can see is
Code:
Launch through Intent scheme.
which doesnt work with js
I am going to attempt to create the link in a hidden div and click it with js, i will update if that works
UPDATE: The Intent link only bring you to the playstore, it doesnt open the stream
Click to expand...
Click to collapse
Probably you are using MX Player Pro. The code you have mentioned uses MX Player Free version.
Sent from my SM-G900H using Tapatalk

ktsamy said:
Probably you are using MX Player Pro. The code you have mentioned uses MX Player Free version.
Sent from my SM-G900H using Tapatalk
Click to expand...
Click to collapse
I am afraid i tried on 2 devices both free and pro
its a real shame i cant get it to work. I have to now rewrite my app using local only files to permit only external files to open in default browser, that will work but pain in the arse

Remove the space between "bipbopall.m3u8 #Intent" and it should open the url in MXPlayer not the Play Store.
Also, only seems to work on URLs which have a file extension (such as .m3u8, mp4, mp3 etc.)

Related

I am so confused by the app store.

So I go to the app store and search "VLC".
I get
VLC Direct Pro Free
Remote For VLC
VLC Stream and Convert
VLC Remote Free
VLC HD Remote ( + Stream )
VLC Remote
VLC Stram & Convert Pro
VLC Sreamer Beta
VLC Black Remote Free
etc.
and it's not only VLC it's almost every app that I look at.
I simply want the same VLC that I've been using on other computers for more then 10 years now.
I don't want to download every app fhat might be what I want.
How do I figure these things out?
I'm so confused.
I think its VLC for android beta
Sent from my GT-I9100 using xda premium
MouseTheLuckyDog said:
So I go to the app store and search "VLC".
I get
VLC Direct Pro Free
Remote For VLC
VLC Stream and Convert
VLC Remote Free
VLC HD Remote ( + Stream )
VLC Remote
VLC Stram & Convert Pro
VLC Sreamer Beta
VLC Black Remote Free
etc.
and it's not only VLC it's almost every app that I look at.
I simply want the same VLC that I've been using on other computers for more then 10 years now.
I don't want to download every app fhat might be what I want.
How do I figure these things out?
I'm so confused.
Click to expand...
Click to collapse
VLC has a few apps but its simple enough you want VLC Player you type VLC Player in the search box .
https://play.google.com/store/search?q=vlc+player+for+android
First one is the VLC Player .
jje
The safest bet is to go directly to vlc website and follow the links..
http://www.videolan.org/vlc/download-android.html
It essentially is
https://play.google.com/store/apps/details?id=org.videolan.vlc.betav7neon
I look at the replies and I have to wonder "what part of ..."
MouseTheLuckyDog said:
So I go to the app store and search "VLC".
and it's not only VLC it's almost every app that I look at.
Click to expand...
Click to collapse
"did you not understand?"
Though I have to admit, the lst answer when modfied "go to the original products website" makes a lot of sense. Assuming the original product has a website.
MouseTheLuckyDog said:
I look at the replies and I have to wonder "what part of ..."
"did you not understand?"
VLC is the company name not the product name .
Desktop says VLC media player not VLC .
The original product as you call it has a web site with two methods of location .
One via Google and two via the actual PC Desktop app itself .
Its you that's making hard work of simple tasks .
jje
Click to expand...
Click to collapse

MXplayer PRO on non-google-play device, already owned PRO on Google Play

Thanks!
@workingtricks
Don't promote unofficial/patched versions here.
Sent from my SM-G900H using Tapatalk
The MX player is obligating to install goglepley for run?
Really, i won't continue using,
1 because the player is dependant of this ridiculous stock mediascanner.
2 now they're obligating this?
MX PLAYER IS NEVER THE ORIGINAL LINUX MPLAYER.
Hm.
Sent from Somefon
@jrkajun
In order to validate a Pro license purchased from Google Play, it needs Google Play. Google doesn't provide any other way to validate the license. If you have purchased Pro version from MX Player website there is no need of Google Play at all.
Free version doesn't need Google Play. It will work with any device.
Kindly note that Amazon devices are using different/modified Andeoid Account Management System. So, MX Player Pro won't work with Amazon devices even if you have purchased from Amazon stire. Free version is the only option.
somebady said:
The MX player is obligating to install goglepley for run?
Really, i won't continue using,
1 because the player is dependant of this ridiculous stock mediascanner.
2 now they're obligating this?
MX PLAYER IS NEVER THE ORIGINAL LINUX MPLAYER.
Hm.
Sent from Somefon
Click to expand...
Click to collapse
MX Player initially uses mediascanner database to determine the known media folders in order to boost launch speed. Then, scans the known media folders at every launch. You can just force for a through scan by either tapping on refresh button or just pull down the list to refresh (in the recent 1.8.x). It will scan sdcard completely.
Sent from my SM-G900H using Tapatalk

Passing Subtitles with the API in Android fails with spaces

Hi. We use the API to launch the MX player in android and pass subtitles to the player. It works fine unless there is spaces or '[' in the subtitle filenames. Can you suggest a workaround, or fix it please? We tried url encoding the file name but that didnt work either.
sunnyappz said:
Hi. We use the API to launch the MX player in android and pass subtitles to the player. It works fine unless there is spaces or '[' in the subtitle filenames. Can you suggest a workaround, or fix it please? We tried url encoding the file name but that didnt work either.
Click to expand...
Click to collapse
Have you tried to encode the URI properly. I mean using "%2F" instead of a "space", %5B for "[" and "%5D" for "]"..?
Sent from my Samsung Galaxy S5 using XDA Labs
all good
Yes we got it going now, thanks, the urlEncode function was not quite doing it right.

since v.1.10.12, mx player doesn't show up in the listof the players

My device is on android 7.0 and since last two beta updates from playstore, MX disappeared from the player list when I try to play the network stream.
It still shows up when playing the video stored in the device, but not when the video is a network stream.
This issue happens with v.1.10.12 and 1.10.13 so I installed 1.10.9 and it works now.
Hopefully this issue will be fixed in the next version.
Same here. Android 7.1.1
nzhd said:
My device is on android 7.0 and since last two beta updates from playstore, MX disappeared from the player list when I try to play the network stream.
It still shows up when playing the video stored in the device, but not when the video is a network stream.
This issue happens with v.1.10.12 and 1.10.13 so I installed 1.10.9 and it works now.
Hopefully this issue will be fixed in the next version.
Click to expand...
Click to collapse
Venomphone said:
Same here. Android 7.1.1
Click to expand...
Click to collapse
There weren't any changes in this regard. If you meant that MX Player is not listed while opening video links on Chrome, it is an internal change on the Chrome. It uses it's own mediaplayer instead of asking you to select the activity (or app) to handle the link. If it is not supported, it directly starts downloading the file. Similarly, some other social apps (like Whatsapp, Telegram) has started using the same in the recent time. Since we do not have any controls on their app, we are also helpless on this
MXPlayer said:
There weren't any changes in this regard. If you meant that MX Player is not listed while opening video links on Chrome, it is an internal change on the Chrome. It uses it's own mediaplayer instead of asking you to select the activity (or app) to handle the link. If it is not supported, it directly starts downloading the file. Similarly, some other social apps (like Whatsapp, Telegram) has started using the same in the recent time. Since we do not have any controls on their app, we are also helpless on this
Click to expand...
Click to collapse
Hmm I don't think it's the change on the chrome. All the other players such as vlc, kodi and all the other player kind apps installed on my phone still show up, and even MX player v.1.10.9 working fine. Only MX player v.1.10.12 and 1.10.13 disappeared. ( i've just updated to 1.10.15 to see if there's any difference but unfortunately this version doesn't show up on the list either.)
And I was not trying to open the stream link on chrome. It was a kind of cloud app(no recent update) and have been using it with no issues until v.1.10.12.
nzhd said:
Hmm I don't think it's the change on the chrome. All the other players such as vlc, kodi and all the other player kind apps installed on my phone still show up, and even MX player v.1.10.9 working fine. Only MX player v.1.10.12 and 1.10.13 disappeared. ( i've just updated to 1.10.15 to see if there's any difference but unfortunately this version doesn't show up on the list either.)
And I was not trying to open the stream link on chrome. It was a kind of cloud app(no recent update) and have been using it with no issues until v.1.10.12.
Click to expand...
Click to collapse
That's strange.
Kindly make sure that "Play media links" in the settings > general is enabled in MX Player.
If it is already enabled, Can you pls share more information with us like the name of the cloud app, version, device details, etc? We will try to reproduce it in our end and get it fixed for you.
MXPlayer said:
That's strange.
Kindly make sure that "Play media links" in the settings > general is enabled in MX Player.
If it is already enabled, Can you pls share more information with us like the name of the cloud app, version, device details, etc? We will try to reproduce it in our end and get it fixed for you.
Click to expand...
Click to collapse
I just sent email to [email protected] about this issue. Please check it out.
nzhd said:
I just sent email to [email protected] about this issue. Please check it out.
Click to expand...
Click to collapse
We are investigating this. We will try to get it fixed at the earliest.
MX Player fails to recognize intent from other apps
Hi, I am an Android developer and I have been using MX player as a video player for my app for 3 years now. My app has HLS links that I pass to MX Player via intent. But since the last two updates, MX player has stopped recognizing that intent, and ActivityNotFoundException is thrown in my app. I have around 10 million app users and most of them rely on MX player to play HLS links from my app. Please look into this matter at the earliest. Hoping to hear from you soon. Here is the code I have used in my app to launch MX player:
Code:
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setPackage(getMXPlayerPackage(context)); //here i check which package mx player is installed (paid or free) and then return the corresponding package
intent.setDataAndType(Uri.parse(uri), "video/*");
startActivity(intent);
abbashassan said:
Hi, I am an Android developer and I have been using MX player as a video player for my app for 3 years now. My app has HLS links that I pass to MX Player via intent. But since the last two updates, MX player has stopped recognizing that intent, and ActivityNotFoundException is thrown in my app. I have around 10 million app users and most of them rely on MX player to play HLS links from my app. Please look into this matter at the earliest. Hoping to hear from you soon. Here is the code I have used in my app to launch MX player:
Code:
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setPackage(getMXPlayerPackage(context)); //here i check which package mx player is installed (paid or free) and then return the corresponding package
intent.setDataAndType(Uri.parse(uri), "video/*");
startActivity(intent);
Click to expand...
Click to collapse
MXPlayer said:
We are investigating this. We will try to get it fixed at the earliest.
Click to expand...
Click to collapse
just updated to v.1.10.17 from Playstore and this issue is resolved. Thanks!

How to pass "User-Agent" parameter using intent ?

Hello ,
Im trying to launch MX Player by the web api as following but it seems I can't pass the user-agent parameter
Launch through Intent scheme.
Click to expand...
Click to collapse
When I try to launch the MX Player by clicking on the link it redirects me on Google Play Store even though I have already MXPlayer installed . When I remove the S.User-Agent , MX Player launches correctly . Any solutions ?

Categories

Resources