Commit 668b1975d336dc7ee697bdc76b0964bbd5408426
1 parent
302addcb
live
Showing
1 changed file
with
2 additions
and
2 deletions
src/main/java/com/cnlive/mz/live/action/LiveAction.java
| @@ -124,8 +124,8 @@ public class LiveAction { | @@ -124,8 +124,8 @@ public class LiveAction { | ||
| 124 | if (live_url.isEmpty()) { | 124 | if (live_url.isEmpty()) { |
| 125 | return null; | 125 | return null; |
| 126 | } else { | 126 | } else { |
| 127 | - int index = live_url.lastIndexOf("live"); | ||
| 128 | - String streamName = live_url.substring(index + 6); | 127 | + int index = live_url.lastIndexOf("/"); |
| 128 | + String streamName = live_url.substring(index + 1); | ||
| 129 | System.out.println("streamName===" + streamName); | 129 | System.out.println("streamName===" + streamName); |
| 130 | String accesskey = BaseUtil.getAccessKey(); | 130 | String accesskey = BaseUtil.getAccessKey(); |
| 131 | accesskey = java.net.URLEncoder.encode(accesskey, "utf-8"); | 131 | accesskey = java.net.URLEncoder.encode(accesskey, "utf-8"); |