diff -r a6cf5a06f02d -r 59c68fc4848e server/src/app/Libraries/Transcript/TranscriptConverterBase.php --- a/server/src/app/Libraries/Transcript/TranscriptConverterBase.php Sat May 28 11:49:38 2016 +0200 +++ b/server/src/app/Libraries/Transcript/TranscriptConverterBase.php Sun May 29 16:50:17 2016 +0200 @@ -9,10 +9,13 @@ abstract class TranscriptConverterBase implements Transcriptconverterinterface { - public function __construct(Document $document, $source, string $creationDate = null) { + public function __construct(Document $document, string $source, string $creationDate = null) { $this->resJSON = []; $this->document = $document; - $this->source = $source; + + $this->source = new \DOMDocument(); + $this->source->loadXML($source, LIBXML_NOCDATA|LIBXML_NOBLANKS); + $this->creationDate = $creationDate; $this->mediaRefId = null; if(is_null($this->creationDate)) { @@ -77,7 +80,9 @@ $i = 1; foreach($this->document->getMediaArray() as $documentMedia) { - if(0 !== strpos($documentMedia['format'], 'audio/')) { + if((0 !== strpos($documentMedia['format'], 'audio/')) && + (0 !== strpos($documentMedia['format'], 'video/')) && + (0 !== strpos($documentMedia['format'], 'Sampling:')) ) { continue; }