Intent: How to set decode_mode in browser - MX Player

Hy,
I use mx player in a web application (php based) in Chrome on android;
My link is like this
<a h r e f="intent:h ttp://aaa.bbb/playlist.m3u8#Intent;package=com.mxtech.videoplayer.pro;S.title=Live+TV;end;">Live TV</a>
I use defalut HW+ , but I need to change for some links to HW.
I read here sites.google.com/site/mxvpen/api[/
[Action: android.intent.action.VIEW]
Data:
Uri pointing to a media source.
Extras:
(All extras are optional)
decode_mode
Type: byte
Values: 1 - HW decoder 2 - SW decoder
Click to expand...
Click to collapse
Can I do this in browser link? How....
Thanks.

vb6rocod said:
Hy,
I use mx player in a web application (php based) in Chrome on android;
My link is like this
<a h r e f="intent:h ttp://aaa.bbb/playlist.m3u8#Intent;package=com.mxtech.videoplayer.pro;S.title=Live+TV;end;">Live TV</a>
I use defalut HW+ , but I need to change for some links to HW.
I read here sites.google.com/site/mxvpen/api[/
Can I do this in browser link? How....
Thanks.
Click to expand...
Click to collapse
Just Try the following method for HW decoder.
HTML:
Live TV
You can use "2" for SW & "4" for HW+.
On older android devices, If HW+ is not enabled, It may switch to the next decoder (i.e SW)

MXPlayer said:
Just Try the following method for HW decoder.
HTML:
Live TV
You can use "2" for SW & "4" for HW+.
On older android devices, If HW+ is not enabled, It may switch to the next decoder (i.e SW)
Click to expand...
Click to collapse
Many, many, THANKS1
BEST PLAYER FOR ANDROID.
If is no more, another question. How can I send custom header (in special referer and cookies).
Thank you again, you make my day very happy!

vb6rocod said:
Many, many, THANKS1
BEST PLAYER FOR ANDROID.
If is no more, another question. How can I send custom header (in special referer and cookies).
Thank you again, you make my day very happy!
Click to expand...
Click to collapse
MX Player uses String Array for Headers. Unfortunately, There is no way to pass the string array from the web page.

MXPlayer said:
MX Player uses String Array for Headers. Unfortunately, There is no way to pass the string array from the web page.
Click to expand...
Click to collapse
Thank you for your effort to help me.

MXPlayer said:
MX Player uses String Array for Headers. Unfortunately, There is no way to pass the string array from the web page.
Click to expand...
Click to collapse
Sorry for resurrecting the topic, but I'm afraid that's the only mention of this on all the internet...
But four years later, still is there no way to pass headers by Intent URL scheme?
I wish there was some string fallback, something like S.headers='Origin%3Ahttps%3A%2F%2Fexample.com&Referer%3Ahttps%3A%2F%2Fexample.com%2Findex'
Wouldn't it be possible?
Thank you for this awesome app! Best regards.

Related

How can I save network stream URLs by name?

Is there a way I can save and play network stream URLs by name without entering the URLs in the network stream box with the keyboard any time?
Thanks!
Not from within MX Player but you may try using a file explorer to save the URLs in a folder.
luigig said:
Is there a way I can save and play network stream URLs by name without entering the URLs in the network stream box with the keyboard any time?
Thanks!
Click to expand...
Click to collapse
I was searching for an add-on or plugin for MX Player by way of trying to find a frontend to accomplish the same thing. I guess I was wishful thinking. Nevertheless, here's a link (replace the two $ signs with dots) to, copy and paste, of a post I made this morning providing a potentially extremely useful alternative: forums.androidcentral$com/samsung-galaxy-note-3/355922-how-can-i-save-network-streams-name-mx-player$html
luigig said:
Is there a way I can save and play network stream URLs by name without entering the URLs in the network stream box with the keyboard any time?
Thanks!
Click to expand...
Click to collapse
Currently history has very limited features but it will be improved in the future.
Network Stream History and Associated Enhancements
bleu8888 said:
Currently history has very limited features but it will be improved in the future.
Click to expand...
Click to collapse
Please consider implementing user adjustable settings for parameters related to streaming content such as cache size, buffer size, seconds to wait for connection time out, etc. The Android app from team48dreams has an internet radio section that can, handle pls, m3u, asf and perhaps other playlist formats for streaming media, for example.
thats would be really great - I miss this feature - thats the only reason why I use still VPlayer...
bleu8888 said:
Currently history has very limited features but it will be improved in the future.
Click to expand...
Click to collapse

[Feature Request] Change HTTP User-Agent

Please, change the HTTP User-Agent to something less malware-like than a space.
MX Player would be fine or maybe just Linux/Android for some obscurity.
This could be easily done and it would prevent us getting blocked by some sites/CDNs and even false IDS alerts.
L1gh7n1ng said:
Please, change the HTTP User-Agent to something less malware-like than a space.
MX Player would be fine or maybe just Linux/Android for some obscurity.
This could be easily done and it would prevent us getting blocked by some sites/CDNs and even false IDS alerts.
Click to expand...
Click to collapse
MX Player uses Linux/Android style and MX Player/<version> style user agent.
But ads network may use different value. I will check it out.
Thanks
bleu8888 said:
MX Player uses Linux/Android style and MX Player/<version> style user agent.
But ads network may use different value. I will check it out.
Thanks
Click to expand...
Click to collapse
I don't think it's the ads network:
Code:
GET./480p/{file}.mp4.HTTP/1.1
.User-Agent:.
.Accept:.*/*
.Range:.bytes=36151293-
.Connection:.close
.Host:.{domain}
.Icy-MetaData:.1
I tap on a video link in the browser and open it in MX Player, so I'm not starting anything directly.
Also I don't think Chrome proxies the request (like ES File Exp.) but even if it does it would use it's own UA.
Thanks.
L1gh7n1ng said:
I don't think it's the ads network:
Code:
GET./480p/{file}.mp4.HTTP/1.1
.User-Agent:.
.Accept:.*/*
.Range:.bytes=36151293-
.Connection:.close
.Host:.{domain}
.Icy-MetaData:.1
I tap on a video link in the browser and open it in MX Player, so I'm not starting anything directly.
Also I don't think Chrome proxies the request (like ES File Exp.) but even if it does it would use it's own UA.
Thanks.
Click to expand...
Click to collapse
This might be fixed on latest test build:
https://sites.google.com/site/mxvpen/translation/test-build
Thanks
It's in the store. Thanks for making it customizable.

[Feature Request] Play Stream with custom user agent

Hi everyone,
I am watching some streams which require custom http-user-agent. On Windows, using VLC I simply add http URL and with parameter ":http-user-agent=something" (without quotes) and it works. However I couldn't find this option in MX Player -neither on any other player-. Is that even possible?
Thanks
serji7 said:
Hi everyone,
I am watching some streams which require custom http-user-agent. On Windows, using VLC I simply add http URL and with parameter ":http-user-agent=something" (without quotes) and it works. However I couldn't find this option in MX Player -neither on any other player-. Is that even possible?
Thanks
Click to expand...
Click to collapse
This feature will be added in the future.
Thanks
Any news on this? I'd really like to play trailers from http://trailers.apple.com/
zAo_ said:
Any news on this? I'd really like to play trailers from http://trailers.apple.com/
Click to expand...
Click to collapse
A new option will be added under Settings > General > Http user agent for overriding default user agent.
That would be great ! Thank you very much!
bleu8888 said:
This feature will be added in the future.
Thanks
Click to expand...
Click to collapse
i heave try many user-agent but nothing i the latest update?!

[Q] Integrating MX Codecs into AOSP build

Hi,
I'm having troubles using the stock JB Android 4.1.2 play m3u8 live streaming. Issue described in:
http://stackoverflow.com/questions/26181554/stock-android-h264-decoder-failing-on-m3u8-url-files
After some debugging, seems to me that only the "baseline profile" is supported by the stock SW codec (frameworks/av/media/libstagefright/codecs/on2/h264dec), while the stream has the entropy_coding_mode_flag set (i.e. it is a CABAC encoding - I'm not an expert about H264, but I read it's a rather different encoding scheme).
So, I was wondering if it was ever possible to entirely replace the libstagefright/codecs provided with stock AOSP with the SW codecs of MX Player, which seems to be working fine on the same m3u8 stream.s.
Any idea if ever feasble and, if so, about how to proceed?
thanks
Fabio
ffxx68 said:
So, I was wondering if it was ever possible to entirely replace the libstagefright/codecs provided with stock AOSP with the SW codecs of MX Player, which seems to be working fine on the same m3u8 stream.s.
Any idea if ever feasble and, if so, about how to proceed?
Click to expand...
Click to collapse
E.g. I was thinking if that was possible by simply hacking the codec declarations in
device/.../.../media_codecs.xml
or if a more complex code integration in AOSP is required. Note - I can rebuild AOSP for my device.
Any advice welcome, anyway.
I think its not only a matter of software, hardware must supports it.
ffxx68 said:
E.g. I was thinking if that was possible by simply hacking the codec declarations in
device/.../.../media_codecs.xml
or if a more complex code integration in AOSP is required. Note - I can rebuild AOSP for my device.
Any advice welcome, anyway.
Click to expand...
Click to collapse
Even if you declare, if it's not supported by your gpu then it will simply through a error.
Mx player uses the hardware decoders included with your system. If it's not supported ffmpeg is used. But, it will use the cpu to decode the video.
So, there won't be much benefits.
ktsamy said:
Even if you declare, if it's not supported by your gpu then it will simply through a error.
Mx player uses the hardware decoders included with your system. If it's not supported ffmpeg is used. But, it will use the cpu to decode the video.
So, there won't be much benefits.
Click to expand...
Click to collapse
I know.... actually, I didn't know ffmpeg was the underlying SW decoder.
I'm afraid my HW GPU doesn't support H264 coded in CABAC. while it does decode seamlessly CAVLC (two flavors of H264 encoding... I found out.).
There will be a benefit in having SW codec, so - at least screen doesn't blank out
I noticed it takes 30-35% CPU while using SW MX Player on those streams. Still acceptable (I don't think GPU will use greatly less power). Final quality is definitely OK.
Any suggestion about how to proceed with ffmpeg codec integration in AOSP? What are the main integration points to consider?
thanks
Fabio
ffxx68 said:
I noticed it takes 30-35% CPU while using SW MX Player on those streams. Still acceptable (I don't think GPU will use greatly less power).
Click to expand...
Click to collapse
I'd just like to note that generally, GPU rendering reduces power consumption dramatically. For example, a SW rendered 30min video will use 25% of battery life on a Nexus 5. The same video reencoded to a GPU-supported codec will use closer to 10% battery.
ffxx68 said:
...
Any suggestion about how to proceed with ffmpeg codec integration in AOSP? What are the main integration points to consider?
...
Click to expand...
Click to collapse
Just for the sake of informing the audience here, I think I found a very good starting point for this, here:
https://github.com/omxcodec/stagefright-plugins
ffxx68 said:
Just for the sake of informing the audience here, I think I found a very good starting point for this, here:
https://github.com/omxcodec/stagefright-plugins
Click to expand...
Click to collapse
I'm working on the porting of the above to my AOSP, but found issues with the integration.. There's something not going well with picture quality. Still debugging (https://groups.google.com/forum/#!topic/android-x86/mTnTe39D5Co).
Meanwhile, let me ask here whether there's any documentation, about how to access access the MPlayer SW codecs from other apps, or AOSP libstagefright.
thanks
Fabio
ffxx68 said:
I'm working on the porting of the above to my AOSP, but found issues with the integration.. There's something not going well with picture quality. Still debugging (https://groups.google.com/forum/#!topic/android-x86/mTnTe39D5Co).
Meanwhile, let me ask here whether there's any documentation, about how to access access the MPlayer SW codecs from other apps, or AOSP libstagefright.
thanks
Fabio
Click to expand...
Click to collapse
FYI
Mx player is free can be distributed with rom without any modifications.
https://sites.google.com/site/mxvpe...e-or-preinstall-on-commercial-Android-device-
You can call mx player free/pro through the api
Read the following link for more information
https://sites.google.com/site/mxvpen/api

[suggestion] Persistent subtitle delay option

Almost always I have to specify subtitles delay -0.2sec manually which is cumbersome, because there's nothing wrong with the files being played when I view them on PC.
So I thought it'd be good to have an option to specify a global subtitle delay - maybe a checkbox in the subtitle panel to remember the current delay.
From FAQ:
Sync of every subtitles does not match by a few seconds with h/w decoder.
H/W decoder of some devices has timing issues. It is known to be happening on many AMLogic based devices. H/W decoder timing can be adjusted on Settings > Decoder > Calibrate playback position.
Click to expand...
Click to collapse
I have 0.2 there, so my offset matches yours... interesting.
Thank you but it doesn't help on my device (thl5000)!
Anyway my suggestion can still be helpful in not so rare cases of mistimed subtitles, mostly external, where 1sec delays aren't uncommon.
wOxxOm said:
Thank you but it doesn't help on my device (thl5000)!
Anyway my suggestion can still be helpful in not so rare cases of mistimed subtitles, mostly external, where 1sec delays aren't uncommon.
Click to expand...
Click to collapse
Following link might help;
https://sites.google.com/site/mxvpe...s-not-match-by-a-few-seconds-with-h-w-decoder.
bleu8888, thanks but that method was already mentioned by vivan000 in the above post, however it doesn't work for me as I said. And I'll repeat myself: the suggestion is useful even if there are no problems with h/w+ sync.
wOxxOm said:
bleu8888, thanks but that method was already mentioned by vivan000 in the above post, however it doesn't work for me as I said. And I'll repeat myself: the suggestion is useful even if there are no problems with h/w+ sync.
Click to expand...
Click to collapse
"Default sync" option will be aded under Settings > Subtitle in next version.

Categories

Resources