Android - Use of External player for network stream

  Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Hullbiker Offline
Junior Member
Posts: 1
Joined: Aug 2014
Reputation: 0
Post: #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]
find quote
bpllfc Offline
Junior Member
Posts: 4
Joined: Sep 2014
Reputation: 0
Post: #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
find quote
ertman Offline
Senior Member
Posts: 172
Joined: Sep 2012
Reputation: 0
Post: #3
+2
find quote
6hzzz Offline
Junior Member
Posts: 12
Joined: Sep 2013
Reputation: 0
Post: #4
+3
find quote
MrReis Offline
Junior Member
Posts: 25
Joined: Oct 2014
Reputation: 0
Post: #5
+4
find quote
tammymiller Offline
Junior Member
Posts: 10
Joined: Oct 2014
Reputation: 0
Post: #6
+5
find quote
Ned Scott Offline
Team-Kodi Wiki Guy
Posts: 27,746
Joined: Jan 2011
Reputation: 405
Location: Arizona, USA
Post: #7
So ask MXplayer to support network protocols. That's not something we control.

You can make easy links to the Kodi Wiki Manual using double brackets around common Kodi words: [[debug log]] = debug log (wiki), [[Video library]] = Video library (wiki), [[SMB]] = SMB (wiki) , [[userdata]] = userdata (wiki), etc
find quote
altca Offline
Junior Member
Posts: 5
Joined: Jan 2015
Reputation: 0
Post: #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::Process(): Player : com.mxtech.videoplayer.pro
18:45:22 T:1662264064 NOTICE: virtual void CExternalPlayer::Process(): File : smb://machine/share/movie.mkv
18:45:22 T:1662264064 NOTICE: virtual void CExternalPlayer::Process(): Content:
18:45:22 T:1662264064 NOTICE: virtual void CExternalPlayer::Process(): Args : {1}
18:45:22 T:1662264064 NOTICE: virtual void CExternalPlayer::Process(): 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.: external_players (wiki)
find quote
Ned Scott Offline
Team-Kodi Wiki Guy
Posts: 27,746
Joined: Jan 2011
Reputation: 405
Location: Arizona, USA
Post: #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.

You can make easy links to the Kodi Wiki Manual using double brackets around common Kodi words: [[debug log]] = debug log (wiki), [[Video library]] = Video library (wiki), [[SMB]] = SMB (wiki) , [[userdata]] = userdata (wiki), etc
find quote
Ned Scott Offline
Team-Kodi Wiki Guy
Posts: 27,746
Joined: Jan 2011
Reputation: 405
Location: Arizona, USA
Post: #10
Here it is: http://forum.kodi.tv/showthread.php?tid=155526

You can make easy links to the Kodi Wiki Manual using double brackets around common Kodi words: [[debug log]] = debug log (wiki), [[Video library]] = Video library (wiki), [[SMB]] = SMB (wiki) , [[userdata]] = userdata (wiki), etc
find quote
pijo1971 Offline
Junior Member
Posts: 7
Joined: Feb 2015
Reputation: 0
Post: #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
(This post was last modified: 2015-03-06 14:53 by pijo1971.)
find quote
Gothicawakening Offline
Junior Member
Posts: 8
Joined: Mar 2015
Reputation: 0
Post: #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!
find quote