예제 #1
0
 public void run() {
   if (isOneShow) { //
     BridgeService.setPlayBackInterface(PlayBackActivity.this);
     NativeCaller.StartPlayBack(strDID, strFilePath, 0);
     NativeCaller.PPPPGetSystemParams(strDID, ContentCommon.MSG_TYPE_GET_PARAMS);
     mHandler.postDelayed(mVideoTimeOut, 3000);
   }
 }
예제 #2
0
 @Override
 protected void onDestroy() {
   super.onDestroy();
   NativeCaller.StopPlayBack(strDID);
   StopAudio();
   exit = false;
 }
예제 #3
0
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    getDataFromOther();
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    overridePendingTransition(R.anim.in_from_right, R.anim.out_to_left);
    getWindow()
        .setFlags(
            WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
    setContentView(R.layout.playback);
    BridgeService.setPlayBackInterface(this);
    NativeCaller.StartPlayBack(strDID, strFilePath, 0);
    // 音频数据
    AudioBuffer = new CustomBuffer();
    audioPlayer = new AudioPlayer(AudioBuffer);
    mHandler.postDelayed(mVideoTimeOut, 3000);
    findView();
    BridgeService.setDateTimeInterface(this);
    NativeCaller.PPPPGetSystemParams(strDID, ContentCommon.MSG_TYPE_GET_PARAMS);

    StartAudio(); // 开启声音
  }