Use a third-party video player in media galleries
Use your preferred third-party video player to view media gallery video files. This is optional.
Procedure
- Create a .ear file that declares and OSGi extension. To see an example, download this sample .ear file by right-clicking the following link: CustomVideoPlayer.ear
Note: For additional information about creating an IBM Websphere Application Server OSGi extension, see the WAS documentation about plugin.xml.
- In javascript, make sure the following variable is set to the name of a constructor function (dojo class) that will create an object with a single member function:
quickr.lw.config.media.videoPlayerFor example:
myCustomVideoPlayer_playVideo = function (node, store, item, width, height) { // Include dom code to render video player here } function myCustomVideoPlayer = function () { // Initialize member variables if necessary } myCustomVideoPlayer.prototype.playVideo = myCustomVideoPlayer_playVideo
- Finally, you would set the configuration variable to the name of your constructor:
quickr.lw.config.media.VideoPlayer = "myCustomVideoPlayer";
- Install the custom player EAR on the IBM Connections server that contains News.ear.
Parent topic
Configure media galleries