<playercorefactory>
  <players>
    <!-- These are compiled-in as re-ordering them would break scripts
    The following aliases may also be used:
      audiodefaultplayer, videodefaultplayer
    <player name="DVDPlayer" audio="true" video="true" />
    <player name="MPlayer" audio="true" video="true" />
    <player name="PAPlayer" audio="true" />
    -->
  </players>

  <rules>
    <rule name="rtv/mms" protocols="rtv|mms" player="MPlayer" />
    <rule name="myth/cmyth" protocols="myth|cmyth" player="DVDPlayer" />
    <rule name="hdhomerun/rtmp/htsp/udp" protocols="hdhomerun|rtmp|htsp|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="flv/aacp/sdp" mimetypes="video/x-flv|video-flv|audio/aacp|application/sdp" player="DVDPlayer" />
      <rule name="mp2" mimetypes="application/octet-stream" filetypes="mp2" player="PAPlayer" />
      <rule name="wmv" filetypes="wmv" player="MPlayer" />
    </rule>

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

    <!-- Only mplayer can handle these properly -->
    <rule name="asf/mp4" filetypes="asf/mp4" player="MPlayer" />

    <!-- dvdplayer generally plays these better -->
    <rule name="ogv/flv/mov" filetypes="ogv|flv|mov" player="DVDPlayer" />

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