title: OpenTok fragment Video publishing with MvvmCross
body: <p>I'm trying to implement video streaming with OpenTok video streaming solution, based on MvvmCross architecture (Android app).</p>
  
  <p>My video page is a MvxFragment, that is instantiated from MvxCachingFragmentCompatActivity. That activity manages a couple of fragments, and on custom command it shows my video fragment.</p>
  
  <p>The problem is that i receive video and audio from subscriber, but unable to send the publisher data. Publisher view always shows black screen.</p>
  
  <p>Here is my publisher creation block:</p>
  
  <pre><code>public void OnConnected(Session p0)
  {
      if (_publisher != null)
          return;
  
      _publisher = new Publisher(Activity, "publisher", true, true);
      _publisher.SetPublisherListener(this);
      AttachPublisherView(_publisher);
      p0.Publish(_publisher);
  }
  </code></pre>
  
  <p>But if i am not using mvvmcross, and implement OpenTok interfaces in FragmentActivity, instead of fragment, everything works fine.</p>
  
  <p>I suppose that, the problem somehow depends on the provided context when i create Publisher, but cannot find the way to get it work.</p>
  
  <p>Will be thankfull to any thoughts or help. </p>