Linux Playercorefactory.xml
#1
Photo 
Hello all!

Okay so I tried putting a playercorefactory.xml in the user directory to no avail...... so I edited the main one, with moderate success...

I want VLC to run my online streams as VLC will play them nicely but XBMC won't.....

But nothing I do works. It can't seem to find VLC despite the fact that I KNOW that vlc is there. I can play things on VLC.

Help?

the error I get is....

ERROR: Error creating player for item (File doesn't exist)

I can prove that both the stream exists and works, and that VLC exists and works. I've tried many different settings and can go through the varied PlayercoreFactory.xml's......

But it seems not to be able to find VLC. I get the same error whether I put the player as /usr/bin/vlc or /usr/bin/booya

Code:
<playercorefactory>
  <players>
    <!-- These are compiled-in as re-ordering them would break scripts
    The following aliases may also be used:
      audiodefaultplayer, videodefaultplayer, videodefaultdvdplayer
    <player name="DVDPlayer" audio="true" video="true" />
    <player name="DVDPlayer" /> placeholder for MPlayer
    <player name="PAPlayer" audio="true" />
    -->
    <player name="teststream" type="ExternalPlayer" audio="false" video="true">
        <filename>/usr/bin/vlc</filename>
        <args>--fullscreen --ffmpeg-hw</args>
        <hideconsole>true</hideconsole>
        <hidecursor>true</hidecursor>
        <forceontop>true</forceontop>
   </player>
  </players>

  <rules name="system rules">
    <rule name="rtv" protocols="rtv" player="DVDPlayer" />
    <rule name="hdhomerun/myth/mms/udp" protocols="hdhomerun|myth|cmyth|mms|mmsh|udp" player="DVDPlayer" />
    <rule name="lastfm/shout" protocols="lastfm|shout" player="PAPlayer" />

    <!-- dvdplayer can play standard rtsp streams -->
    <rule name="rtsp" protocols="rtsp" filetypes="!(rm|ra)"  player="PAPlayer" />

    <!-- Internet streams -->
    <rule name="streams" internetstream="true">
      <rule name="aacp/sdp" mimetypes="audio/aacp|application/sdp" player="DVDPlayer" />
      <rule name="mp2" mimetypes="application/octet-stream" filetypes="mp2" player="PAPlayer" />
      <!--rule filetypes="f4m" player="teststream">
      <rule filetypes="m3u8" player="teststream">
      <rule filename=".*PREMIUM.*" player="teststream"/>
      <rule filename=".*m3u8" player="teststream"/-->
    </rule>

    <!-- DVDs -->
    <rule name="dvd" dvd="true" player="DVDPlayer" />
    <rule name="dvdimage" dvdimage="true" player="DVDPlayer" />

    <!-- Only dvdplayer can handle these normally -->
    <rule name="sdp/asf" filetypes="sdp|asf" player="DVDPlayer" />

    <!-- Pass these to dvdplayer as we do not know if they are audio or video -->
    <rule name="nsv" filetypes="nsv" player="DVDPlayer" />

    <!-- pvr radio channels should be played by dvdplayer because they need buffering -->
    <rule name="radio" filetypes="pvr" filename=".*/radio/.*" player="DVDPlayer" />
  </rules>
</playercorefactory>
Reply
#2
Welcome to the XBMC forums.

Where's your <rules> and <rule> statements to define the action and filetypes that should use this player? See this wiki article: External_players (wiki)
Reply
#3
They're in the code just scrolled down a little bit....thanks for helping!

(oh and in the original they're commented out because I had to comment them out to get playing to work again...)

Code:
<!-- Internet streams -->
    <rule name="streams" internetstream="true">
      <rule name="aacp/sdp" mimetypes="audio/aacp|application/sdp" player="DVDPlayer" />
      <rule name="mp2" mimetypes="application/octet-stream" filetypes="mp2" player="PAPlayer" />
      <rule filetypes="f4m" player="teststream">
      <rule filetypes="m3u8" player="teststream">
      <rule filename=".*PREMIUM.*" player="teststream"/>
      <rule filename=".*m3u8" player="teststream"/>
    </rule>
Reply
#4
bump!

Help!
Reply

Logout Mark Read Team Forum Stats Members Help
Playercorefactory.xml1