title: Where to initialize System Media Player
body: <p>We want to port cobalt release 11 to our media player, but we don't know where to initialize the media player in Cobalt.</p>
  
  <p>I wonder if it is a good place to call the media framework initialization in createWebMediaPlayer (cobalt/media/media_module_starboard.cc).</p>
  
  <pre><code> scoped_ptr&lt;WebMediaPlayer&gt;CreateWebMediaPlayer(WebMediaPlayerClient *client) OVERRIDE {
     ...
     XXX_mediaplayer_initialize(); &lt;&lt;&lt;&lt; call our media player initialization
  
     #if defined(COBALT_MEDIA_SOURCE_2016)
       SbWindow window = kSbWindowInvalid;
       if (system_window_) {
         window = system_window_-&gt;GetSbWindow();
       }
     ...
   }
  </code></pre>
  
  <p>Since our media player initialization takes more than 1 sec, it may cause Youtube Movie begins to play slowly > 1sec.</p>
  
  <p>Please advise any suitable place to initialize system media framework in Cobalt release 11.</p>