Commit 08e115c3a388def060c44723ced5bdcbe3909e4b
1 parent
fe1ddf6e
添加启动直播活动方法,当服务器端已经创建完成直播活动后可以直接调用startActivity方法来启动直播活动
Showing
3 changed files
with
3 additions
and
0 deletions
app/libs/libcnlivestream.jar
No preview for this file type
app/src/main/java/com/cnlive/demo/stream/StreamActivity.java
| @@ -525,7 +525,10 @@ public class StreamActivity extends Activity { | @@ -525,7 +525,10 @@ public class StreamActivity extends Activity { | ||
| 525 | if (mRecording) { | 525 | if (mRecording) { |
| 526 | stopStream(); | 526 | stopStream(); |
| 527 | } else { | 527 | } else { |
| 528 | + //创建并开始直播活动 | ||
| 528 | startStream(); | 529 | startStream(); |
| 530 | + //如果服务器端已经创建好了直播活动则startActivity(String activityId, String url)开始直播活动 | ||
| 531 | +// mStreamer.startActivity("7273647488", "rtmp://jsrtmp.up.cnlive.com/live/60_androidtest?vdoid=60_7273647488"); | ||
| 529 | } | 532 | } |
| 530 | } | 533 | } |
| 531 | 534 |
doc/推流SDK说明文档.pdf
No preview for this file type