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

  1. 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

  2. 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.videoPlayer

      For 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

  3. Finally, you would set the configuration variable to the name of your constructor:

      quickr.lw.config.media.VideoPlayer = "myCustomVideoPlayer";

  4. Install the custom player EAR on the IBM Connections server that contains News.ear.


Parent topic

Configure media galleries

+

Search Tips   |   Advanced Search