Kodi Community Forum

Full Version: [Android] Himedia Q10 II or Q5 - external player for HD video and youtube
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, I have a Himedia Q10 II and XBMC 13.1 on it, quite happy about it even if it is not out of the box ready to use with xbmc Gotham version, anyway, a bit of work get you to know Xbmc better :-)

To play videos, I am using a custom playercorefactory.xml file which is setup to play mkv files with the himedia video external player ( Hardware decoding and bundled with the box ) and it plays well all in 1080P full framerate.
For the streaming videos, I use MXplayer and it works with hardware decoding just fine.

But for Youtube videos with the add-on, I tried several players and none of them works, anyone having success to stream youtube videos to Himedia Q10II or Q5 from Xbmc add-on ?

If yes, which external player do you use ? And ,if possible, can you post a copy/paste of your playercorefactory.xml ?

Here is mine :

Code:
<playercorefactory>
    <players>

        <!-- HiMedia Player definition -->
        <player name="HimediaPlayer" type="ExternalPlayer" audio="false" video="true">
            <filename>com.himedia.android.videoplayer</filename>
            <hidexbmc>true</hidexbmc>
            <playcountminimumtime>120</playcountminimumtime>
        </player>

        <!-- 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>

        
        <!-- 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 -->
    
    <rules action="prepend">

        <!-- <rule filetypes="*.avi" player="HimediaPlayer">

        <rule filetypes="*.mkv" player="HimediaPlayer"> -->

        <!-- <rule filetypes="flv" player="MXPlayerFree"> -->

        <!-- Samba file shares -->
        <rule protocols="smb" player="MXPlayerFree" />

        <!-- DVD Images -->
        <rule dvdimage="true" player="HimediaPlayer"/>
        
        <!-- rtmp Streams (Ice / Navi-x) -->
        <rule protocols="rtmp" player="MXPlayerFree"/>
        
        <!-- rtsp Streams (Type of internet stream) -->
        <rule protocols="rtsp" player="MXPlayerFree" />

        <!-- rtsp Streams (Type of internet stream) -->
        <rule protocols="http" player="MXPlayerFree" />
        
        <!-- SopCast -->
        <rule protocols="sop" player="SopCast" />
        
        <!-- Internet streams -- Disabled for now -->
        <rule internetstream="true" player="HimediaPlayer" />

        <!-- Video files -- Default rule (last to ensure above trigger first -->
        <rule video="true" player="HimediaPlayer"/>
    </rules>
</playercorefactory>
Ok, I solved it by myself, here is the solution just in case someone have the same issue with its Android media player

My playerfactory.xml was wrongly done, here is the new one I am using and works :

Code:
<playercorefactory>
    <players>

        <player name="HimediaPlayer" type="ExternalPlayer" audio="false" video="true">
            <filename>com.himedia.android.videoplayer</filename>
            <hidexbmc>true</hidexbmc>
            <playcountminimumtime>120</playcountminimumtime>
        </player>

        <player name="MXPlayerFree" type="ExternalPlayer" audio="false" video="true">
            <filename>com.mxtech.videoplayer.ad</filename>
            <hidexbmc>true</hidexbmc>
            <playcountminimumtime>120</playcountminimumtime>
        </player>

        <player name="vlc" type="ExternalPlayer" audio="false" video="true">
            <filename>org.videolan.vlc.blackman</filename>
            <hidexbmc>true</hidexbmc>
            <playcountminimumtime>120</playcountminimumtime>
        </player>

        <player name="SopCast" type="ExternalPlayer" audio="false" video="true">
            <filename>org.sopcast.android</filename>
            <hidexbmc>true</hidexbmc>
            <playcountminimumtime>120</playcountminimumtime>
        </player>

    </players>

    <!-- Rules for which external player to use -->
    
    <rules action="prepend">

        <rule protocols="smb" player="MXPlayerFree" />
        <rule dvdimage="true" player="HimediaPlayer"/>
        <rule protocols="rtmp" player="HimediaPlayer"/>
        <rule protocols="rtsp" player="MXPlayerFree"/>
        <rule protocols="http" player="MXPlayerFree"/>
        <rule protocols="sop" player="SopCast"/>
        <rule internetstream="true" player="MXPlayerFree"/>
<!-- Video files -- Default rule (last to ensure above trigger first -->
        <rule video="true" player="HimediaPlayer"/>
    </rules>
</playercorefactory>

Now, I am solving another issue which is being able to play the video files from the apple trailers plugin in xbmc, can't find the right way...yet :-) , will post it in another thread if I find the solution.

P.S : Added vlc just in case so I can make some tests but I am not using it as default media player because there is no hardware acceleration with it on my device.
Hi,

I'm using an Himedia Q10 as well. Firmware 1.07 and xbmc 13.1. .
Until today I'm using for youtube-videos the xbmc-internal DVDplayer. It works good. HW-acceleration (only libstagefrigth, mediacodec off ! is activated.

But your configuration is interesting. Which player is playing the youtube-video in your configuration ? The MXplayer (because of http and internetstream-rule ) ?

I'm interested in this topic because I'm still searching for a good solution to be able to use the XBMC-PVR DVBviewer. It works wiht internal DVDPlayer only for SD-video and 720p. 1080i is not working.

The DVBViewer app (outside of xbmc) is working well with MXPlayer. So i hoped, that the same configuration could work in xbmc but here I get the message: "click OK when external player..." .

Thank you
SaEt9000
Hi,

yes, MXplayer is playing youtube videos and other internet video streams as well but thanks for the tips ( libstagefrigth instead mediacodec works also, just tried :-) )

I do not know XBMC-PVR DVBviewer but I guess your problem is the deinterlaced necessary for the 1080i video type play which does not work well for our android box with xbmc internal player.

I tried to play 1080i videos ( from a video camera in mpeg2 ) on XBMC using the Himediaplayer instead of the internal DVDplayer and they work well.With internal DVDplayer, it does not work well at all.

I suggest you try to add on your playerfactory.xml the following :

<rule protocols="rtsp" player="HimediaPlayer"/> ( I think DBviewer uses this protocol...you need to double check )

and/or if your videos are flagged, you can try that :

<rule videoresolution ="1080i" player="HimediaPlayer"/>

check here : http://wiki.xbmc.org/?title=External_players

Hope this can help :-)
Hi,

I'm using a rule like this:
<rule filename=".*youtube.*" player="DVDPlayer"/>
youtube works much better for me with DVDPlayer. MXPlayer starts only some videos.

SaEt9000