Android Use of External player for network stream
#1
Hi,

I am currently using XBMC 13.2 (latest stable) and would like to use an external player for network streams, I have searched the web and found a "playercorefactory.xml" which allows me to use MX Player for everything but network streams, but it doesn't work on the network, just get the message "External Player is Active" but it does not open MX Player.

My plaercorefactory.xml is as follows;

<!--
Credits
KemoNine (xbmcandroid.com/forums)
Staticadk (xbmcandroid.com/forums)
GSH (xbmcandroid.com/forums)
-->

<playercorefactory>
<players>
<!-- MXPlayer Free definition -->
<player name="MXPlayerFree" type="ExternalPlayer" audio="false" video="true">
<!-- Android intent -->
<filename>com.mxtech.videoplayer.ad</filename>
<!-- Hide XBMC -->
<hidexbmc>true</hidexbmc>
<!-- After 2 minutes bump the play count of the item in XBMC -->
<playcountminimumtime>120</playcountminimumtime>
</player>

<!-- MXPlayer Pro definition -->
<player name="MXPlayerPro" type="ExternalPlayer" audio="false" video="true">
<!-- Android intent -->
<filename>com.mxtech.videoplayer.pro</filename>
<!-- Hide XBMC -->
<hidexbmc>true</hidexbmc>
<!-- After 2 minutes bump the play count of the item in XBMC -->
<playcountminimumtime>120</playcountminimumtime>
</player>

<!-- TPlayer definition -->
<player name="TPlayer" type="ExternalPlayer" audio="false" video="true">
<!-- Android intent -->
<filename>com.tiantian.android.player.app</filename>
<!-- Hide XBMC -->
<hidexbmc>true</hidexbmc>
<!-- After 2 minutes bump the play count of the item in XBMC -->
<playcountminimumtime>120</playcountminimumtime>
</player>

<!-- DicePlayer Free definition -->
<player name="DicePlayerFree" type="ExternalPlayer" audio="false" video="true">
<!-- Android intent -->
<filename>com.inisoft.mediaplayer.trial</filename>
<!-- Hide XBMC -->
<hidexbmc>true</hidexbmc>
<!-- After 2 minutes bump the play count of the item in XBMC -->
<playcountminimumtime>120</playcountminimumtime>
</player>

<!-- VLC Player definition -->
<player name="VLCPlayer" type="ExternalPlayer" audio="false" video="true">
<!-- Android intent -->
<filename>com.vlcforandroid.vlcdirectprofree</filename>
<!-- Hide XBMC -->
<hidexbmc>true</hidexbmc>
<!-- After 2 minutes bump the play count of the item in XBMC -->
<playcountminimumtime>120</playcountminimumtime>
</player>

<!-- DicePlayer Paid definition -->
<player name="DicePlayerPaid" type="ExternalPlayer" audio="false" video="true">
<!-- Android intent -->
<filename>com.inisoft.mediaplayer.a</filename>
<!-- Hide XBMC -->
<hidexbmc>true</hidexbmc>
<!-- After 2 minutes bump the play count of the item in XBMC -->
<playcountminimumtime>120</playcountminimumtime>
</player>

<!-- RockPlayer Lite definition -->
<player name="RockPlayerLite" type="ExternalPlayer" audio="false" video="true">
<!-- Android intent -->
<filename>com.redirectin.rockplayer.android.unified.lite</filename>
<!-- Hide XBMC -->
<hidexbmc>true</hidexbmc>
<!-- After 2 minutes bump the play count of the item in XBMC -->
<playcountminimumtime>120</playcountminimumtime>
</player>

<!-- RockPlayer2 definition -->
<player name="RockPlayer" type="ExternalPlayer" audio="false" video="true">
<!-- Android intent -->
<filename>com.rockplayer</filename>
<!-- Hide XBMC -->
<hidexbmc>true</hidexbmc>
<!-- After 2 minutes bump the play count of the item in XBMC -->
<playcountminimumtime>120</playcountminimumtime>
</player>

<!-- BSPlayer Free definition -->
<player name="BSPlayerFree" type="ExternalPlayer" audio="false" video="true">
<!-- Android intent -->
<filename>com.bsplayer.bspandroid.free</filename>
<!-- Hide XBMC -->
<hidexbmc>true</hidexbmc>
<!-- After 2 minutes bump the play count of the item in XBMC -->
<playcountminimumtime>120</playcountminimumtime>
</player>

<!-- Moboplayer Free definition -->
<player name="MoboplayerFree" type="ExternalPlayer" audio="false" video="true">
<!-- Android intent -->
<filename>com.clov4r.android.nilz</filename>
<!-- Hide XBMC -->
<hidexbmc>true</hidexbmc>
<!-- After 2 minutes bump the play count of the item in XBMC -->
<playcountminimumtime>120</playcountminimumtime>
</player>

<!-- mVideoplayer Free definition -->
<player name="mVideoplayerFree" type="ExternalPlayer" audio="false" video="true">
<!-- Android intent -->
<filename>afzkl.development.mVideoPlayer</filename>
<!-- Hide XBMC -->
<hidexbmc>true</hidexbmc>
<!-- After 2 minutes bump the play count of the item in XBMC -->
<playcountminimumtime>120</playcountminimumtime>
</player>

<!-- Vplayer definition -->
<player name="Vplayer" type="ExternalPlayer" audio="false" video="true">
<!-- Android intent -->
<filename>me.abitno.vplayer.t</filename>
<!-- Hide XBMC -->
<hidexbmc>true</hidexbmc>
<!-- After 2 minutes bump the play count of the item in XBMC -->
<playcountminimumtime>120</playcountminimumtime>
</player>

<!-- Wondershare Player definition -->
<player name="WondersharePlayer" type="ExternalPlayer" audio="false" video="true">
<!-- Android intent -->
<filename>com.wondershare.player</filename>
<!-- Hide XBMC -->
<hidexbmc>true</hidexbmc>
<!-- After 2 minutes bump the play count of the item in XBMC -->
<playcountminimumtime>120</playcountminimumtime>
</player>

<!-- Archos Video definition -->
<player name="ArchosVideo" type="ExternalPlayer" audio="false" video="true">
<!-- Android intent -->
<filename>com.archos.mediacenter.video</filename>
<!-- Hide XBMC -->
<hidexbmc>true</hidexbmc>
<!-- After 2 minutes bump the play count of the item in XBMC -->
<playcountminimumtime>120</playcountminimumtime>
</player>

<!-- SopCast Player definition -->
<player name="SopCast" type="ExternalPlayer" audio="false" video="true">
<!-- Android intent -->
<filename>org.sopcast.android</filename>
<!-- Hide XBMC -->
<hidexbmc>true</hidexbmc>
<!-- After 2 minutes bump the play count of the item in XBMC -->
<playcountminimumtime>120</playcountminimumtime>
</player>

<!-- Daroon Player definition -->
<player name="DaroonPlayer" type="ExternalPlayer" audio="false" video="true">
<!-- Android intent -->
<filename>com.daroonplayer.dsplayer</filename>
<!-- Hide XBMC -->
<hidexbmc>true</hidexbmc>
<!-- After 2 minutes bump the play count of the item in XBMC -->
<playcountminimumtime>120</playcountminimumtime>
</player>
</players>
<!-- Rules for which external player to use -->
<!-- MX Player Free is default
change player= value to one of the above names to change this -->
<rules action="prepend">
<!-- Samba file shares -- Internal player for now due to MX Player issues -->
<rule protocols="smb" player="DVDPlayer" />

<!-- DVD Images -->
<rule dvdimage="true" player="MXPlayerFree"/>

<!-- rtmp Streams (Ice / Navi-x) -->
<rule protocols="rtmp" player="MXPlayerFree"/>

<!-- rtsp Streams (Type of internet stream) -->
<rule protocols="rtsp" player="MXPlayerFree" />

<!-- SopCast -->
<rule protocols="sop" player="SopCast" />

<!-- Internet streams -- Disabled for now -->
<!--<rule internetstream="true" player="MXPlayerFree" />-->

<!-- Video files -- Default rule (last to ensure above trigger first -->
<rule video="true" player="MXPlayerFree"/>
</rules>
</playercorefactory>

<rule protocols="smb" player="DVDPlayer" /> has been changed to MX Player as in other lines.

Has this issue been fixed yet? and if so what am doing wrong.

FYI - I want use MX Player because I get stuttering with the built in player and not with MX.

Regards and thanks for an otherwise great app.[/code]
Reply
#2
I am guessing you mean that when you use mx player you get the 'external player active-click ok when playback has ended... Yeah I've been getting that message too Sad If you find a solution can you inform me? Thx mate Smile
Reply
#3
+2
Reply
#4
+3
Reply
#5
+4
Reply
#6
+5
Reply
#7
So ask MXplayer to support network protocols. That's not something we control.
Reply
#8
Same problem here. It looks as if the argument used to start a network stream is invalid for MXPLayer, as opposed to when playing a local file. I can play local videos with release version of Kodi for android using MXPlayerPro, but not network files.
I'm using samba shares on my rpi (named xbmc), and the argument passed to mxplayer starts with smb:// which mx cannot play. The same file when launched by FX File Explorer, translates into something that MX sees as http://127.0.0.1:port/stream/0/movie.mkv, and so it can play it.

We need a way to transform this to something playable by mx.

My kodi.log shows:

18:45:22 T:1662264064 NOTICE: Thread ExternalPlayer start, auto delete: false
18:45:22 T:1662264064 NOTICE: virtual void CExternalPlayer:Tonguerocess(): Player : com.mxtech.videoplayer.pro
18:45:22 T:1662264064 NOTICE: virtual void CExternalPlayer:Tonguerocess(): File : smb://machine/share/movie.mkv
18:45:22 T:1662264064 NOTICE: virtual void CExternalPlayer:Tonguerocess(): Content:
18:45:22 T:1662264064 NOTICE: virtual void CExternalPlayer:Tonguerocess(): Args : {1}
18:45:22 T:1662264064 NOTICE: virtual void CExternalPlayer:Tonguerocess(): Start
18:45:22 T:1662264064 NOTICE: virtual BOOL CExternalPlayer::ExecuteAppAndroid(const char*, const char*): com.mxtech.videoplayer.pro
18:45:22 T:1662264064 ERROR: CXBMCApp::StartActivity - ExceptionOccurred launching com.mxtech.videoplayer.pro



Ref.: http://kodi.wiki/view/external_players
Reply
#9
Didn't someone hack together some way for MXPlayer to handle SMB network streams? I finally broke down and looked into it a little bit, a few months back, and I remember reading that. I'll see if I can dig up some links.
Reply
#10
Here it is: http://forum.kodi.tv/showthread.php?tid=155526
Reply
#11
(2015-01-09, 19:23)Ned Scott Wrote: Here it is: http://forum.kodi.tv/showthread.php?tid=155526

The posted thread is a little bit old.
I've tryed to install the suggested app smbwrapper.apk, but it seem that it doesn't work with KODI... the app shows a popup asking to install playercorefactory.xml even if it is installed.

I don't know if this new app

xbmc/kodi wrapper

could replace the old one.

by the way, I love mxplayer, but now that I'm moving my content to a NAS (i.e. network files), probably I will have to abandon it Sad.

cheers,
Luigi
Reply
#12
I'm a little curious how the ES File Explorer manages to play video files from an SMB share using MX Player perfectly...

.. and could Kodi use the same technique to do it?

I love Kodi and it's media management, but for now I can't get 5.1 (Xtreamer Prodigy4K - Firmware issues) and after Trying MX found the UI very user friendly (can drag Subtitles UP and DOWN with the mouse!!). An ideal solution for now would be to use MX as the player in Kodi until Xtreamer fix the 5.1 problem.

For now I (1) Find movie I want using Kodi library browsing (2) Close Kodi (3) Open ES File explorer and navigate correct folder (4) Play using MX Player

..but there must be a simpler way!
Reply
#13
(2014-11-02, 04:32)Ned Scott Wrote: So ask MXplayer to support network protocols. That's not something we control.

MXplayer plays SMB shares just fine if run using ES File Explorer. So, it's not MXplayer issue, must be something wrong with calling MXplayer from Kodi.
Reply
#14
(2015-10-10, 10:38)dimath Wrote:
(2014-11-02, 04:32)Ned Scott Wrote: So ask MXplayer to support network protocols. That's not something we control.

MXplayer plays SMB shares just fine if run using ES File Explorer. So, it's not MXplayer issue, must be something wrong with calling MXplayer from Kodi.

No, MXPlayer doesn't play SMB shares. In the example you give it is using ES File Explorer as a bridge, and MXPlayer itself does not understand the SMB file path.
Reply
#15
(2015-10-10, 11:32)Ned Scott Wrote:
(2015-10-10, 10:38)dimath Wrote:
(2014-11-02, 04:32)Ned Scott Wrote: So ask MXplayer to support network protocols. That's not something we control.

MXplayer plays SMB shares just fine if run using ES File Explorer. So, it's not MXplayer issue, must be something wrong with calling MXplayer from Kodi.

No, MXPlayer doesn't play SMB shares. In the example you give it is using ES File Explorer as a bridge, and MXPlayer itself does not understand the SMB file path.

This is why it doesn't really makes sense to offer in xBMC an external player, when there are very few that support smb shares. How many android devices will install xBMC for playing files from the local drives? very few...

See also my reply here:
http://forum.kodi.tv/showthread.php?tid=...pid2224672
Reply

Logout Mark Read Team Forum Stats Members Help
Use of External player for network stream2