AppSuite:Media player: Difference between revisions

From Open-Xchange
No edit summary
Line 5: Line 5:


Every browser supports a different set of supported codecs and container formats. Follow this link to see which ones: http://mediaelementjs.com/#devices
Every browser supports a different set of supported codecs and container formats. Follow this link to see which ones: http://mediaelementjs.com/#devices
==How to enable/disable the media player==
In order to configure this server-side, just create a new property file or append to existing '''appsuite.properties''' (mind the '''double-slash'''; this in not a typo!):
<pre class="language-config">
io.ox/files//audioEnabled = true|false
io.ox/files//videoEnabled = true|false
</pre>


==Figure out version of mediaelement.js==
==Figure out version of mediaelement.js==
Line 20: Line 13:
   console.log(mejs.version);
   console.log(mejs.version);
});
});
</pre>
==How to enable/disable the media player==
In order to configure this server-side, just create a new property file or append to existing '''appsuite.properties''' (mind the '''double-slash'''; this in not a typo!):
<pre class="language-config">
io.ox/files//audioEnabled = true|false
io.ox/files//videoEnabled = true|false
</pre>
</pre>

Revision as of 06:04, 18 April 2013

Mediaplayer

Browser and device support

App Suite uses mediaelement.js [1] as media player. The player uses native HTML5 audio and video elements plus it falls back to flash or silverlight if they are not available.

Every browser supports a different set of supported codecs and container formats. Follow this link to see which ones: http://mediaelementjs.com/#devices

Figure out version of mediaelement.js

We always try to integrate the latest version of mediaelement.js in order to get latest fixes. To figure out which version is integrated in your release, please run the following code:

 
// logs "2.11.0" in current development branch (April 2013)
require(['apps/mediaelement/mediaelement-and-player.js'], function () {
  console.log(mejs.version);
});

How to enable/disable the media player

In order to configure this server-side, just create a new property file or append to existing appsuite.properties (mind the double-slash; this in not a typo!):

 
io.ox/files//audioEnabled = true|false
io.ox/files//videoEnabled = true|false