mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Add HTML5 features
This commit is contained in:
@@ -53,7 +53,23 @@ class patch_370a6 implements patchInterface
|
||||
|
||||
public function apply(base &$databox)
|
||||
{
|
||||
|
||||
$structure = $databox->get_structure();
|
||||
|
||||
$DOM = new DOMDocument();
|
||||
$DOM->loadXML($structure);
|
||||
|
||||
$xpath = new DOMXpath($DOM);
|
||||
|
||||
foreach($xpath->query('/record/subdefs/subdefgroup[@name="video"]/subdef[@name="preview"]/acodec') as $node){
|
||||
$node->nodeValue = 'libfaac';
|
||||
}
|
||||
|
||||
foreach($xpath->query('/record/subdefs/subdefgroup[@name="video"]/subdef[@name="preview"]/vcodec') as $node){
|
||||
$node->nodeValue = 'libx264';
|
||||
}
|
||||
|
||||
$databox->saveStructure($DOM);
|
||||
|
||||
$subdefgroups = $databox->get_subdef_structure();
|
||||
|
||||
foreach ($subdefgroups as $groupname => $subdefs) {
|
||||
|
Reference in New Issue
Block a user