Kodi Community Forum

Full Version: setting up external player.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Im trying to setup an external player. My problem is, that when I select a video to play, a menu appears saying to click ok when playback has finished, and it seems like the video is playing in the background. but it doesnt claim the focus, so just remains in the back. using mxplayer. this is my playercorefactory.xml

Code:
<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 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>
    </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">
        <!-- Video files -- Disabled for now -->
        <!-- <rule video="true" player="TPlayer" /> -->
        <!-- DVD Images -->
        <rule dvdimage="true" player="TPlayer" />
        <!-- rtmp Streams (Ice / Navi-x) -->
        <rule protocols="rtmp" player="DVDPlayer" />
        <!-- rtsp Streams (Type of internet stream) -->
        <rule protocols="rtsp" player="TPlayer" />
        <!-- Internet streams -->
        <rule internetstream="true" player="TPlayer" />
               <!-- SAMBA Shares -->
               <rule protocols="smb" player="ArchosVideo" />
               <!-- SopCast -->
               <rule protocols="sop" player="SopCast" />
    </rules>
</playercorefactory>
I don't know if this is your problem, but the XML you posted indicates that you're using TPlayer, not MXPlayer.