# Content Xml

Play media content via a content xml file.

## How To

Pass content xml file url to the playByContentXml API (see examples):

    player.playByContentXml({
        url : "content.xml"
    });

Default configuration values will be used (see Configuration Options).

### Configuration Options

There are only a few optional configuration properties that can be set. Content Xml configuration is done through the `playByContentXml` API (see docs on the `data` object passed to the playByContentXml API for more details about content xml configuration).

#### Select File

The `selectFile` config value allows for filtering the available <file> nodes:

    player.playByContentXml({
        url : "content.xml",
        selectFile : function(fileData)
        {
            return /* true if specified file data should be available for play */;
        }
    });

In the select file example, only the files with the following will be allowed:

1. no `key`
2. `url` containing HLS content

### C4

If content xml has a <segments> node, it will be processed as C4 content segments (see example).

### C5

If content xml has a <adBlocks> node, by default it will be inverted to run like C4 content segments (see the example).