Example #1
0
 public void pauseSubOutput() {
   MtkLog.i(TAG, "~~~~~~~~~~~~~~~~~enter pauseSubOutput");
   TVOutput subOutput = mTvInputManager.getOutput("sub");
   if (null != subOutput) {
     subOutput.stop();
   }
 }
Example #2
0
 public void pauseMainOutput() {
   setTvNormal(false);
   MtkLog.i(TAG, "~~~~~~~~~~~~~~~~~enter pauseMainOutput");
   TVOutput output = mTvInputManager.getOutput("main");
   if (null != output) {
     output.stop();
   }
   mTvContent.leaveTV();
 }
Example #3
0
  public void resumeMainOutput() {
    setTvNormal(true);
    MtkLog.i(TAG, "~~~~~~~~~~~~~~~~~enter resumeMainOutput");

    mTvContent.enterTV();

    //		mTvInputManager.enterOutputMode(TVInputCommon.OUTPUT_MODE_NORMAL);
    try {
      if (null != mtv) {
        mtv.enterOutputMode(ITVCommon.OUTPUT_MODE_NORMAL);
      }

    } catch (RemoteException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
    TVOutput output = mTvInputManager.getOutput("main");
    if (null != output) {
      output.connect(output.getInput());
    }
    DestroyApp.getTVDialogView(mContext.getApplicationContext()).hide();
  }