Commit a9cc89378ba0bf384cfb8eae1a8b20329fd1aeb3

Authored by 谷俊
1 parent bdd125d5

修改直播状态代码

app/libs/libcnliveutil.jar
No preview for this file type
app/libs/libcnlivevideo.jar
No preview for this file type
app/src/main/java/com/cnlive/demo/video/VideoStatusActivity.java
@@ -114,7 +114,7 @@ public class VideoStatusActivity extends Activity implements View.OnClickListene @@ -114,7 +114,7 @@ public class VideoStatusActivity extends Activity implements View.OnClickListene
114 case IVideoStatus.MEDIA_STATUS_LIVING: 114 case IVideoStatus.MEDIA_STATUS_LIVING:
115 //直播中' 115 //直播中'
116 canPlay = true; 116 canPlay = true;
117 - if (videoView != null) 117 + if (videoView != null && !videoView.isPlaying())
118 videoView.reload(); 118 videoView.reload();
119 setStatusViewVisible(false, ""); 119 setStatusViewVisible(false, "");
120 Toast.makeText(VideoStatusActivity.this, "直播中", Toast.LENGTH_LONG).show(); 120 Toast.makeText(VideoStatusActivity.this, "直播中", Toast.LENGTH_LONG).show();
@@ -142,6 +142,7 @@ public class VideoStatusActivity extends Activity implements View.OnClickListene @@ -142,6 +142,7 @@ public class VideoStatusActivity extends Activity implements View.OnClickListene
142 @Override 142 @Override
143 public void onError(int what, String extra) { 143 public void onError(int what, String extra) {
144 Log.e(TAG, "onError: " + what + "_" + extra); 144 Log.e(TAG, "onError: " + what + "_" + extra);
  145 + Toast.makeText(VideoStatusActivity.this,"onError: " + what + "_" + extra,Toast.LENGTH_LONG).show();
145 } 146 }
146 }; 147 };
147 148