Play media content via a content xml file.
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).
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).
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:
keyurl containing HLS contentIf content xml has a <segments> node, it will be processed as C4 content segments (see example).
If content xml has a <adBlocks> node, by default it will be inverted to run like C4 content segments (see the example).