Commit 668b1975d336dc7ee697bdc76b0964bbd5408426

Authored by 张宗朋
1 parent 302addcb

live

src/main/java/com/cnlive/mz/live/action/LiveAction.java
... ... @@ -124,8 +124,8 @@ public class LiveAction {
124 124 if (live_url.isEmpty()) {
125 125 return null;
126 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 129 System.out.println("streamName===" + streamName);
130 130 String accesskey = BaseUtil.getAccessKey();
131 131 accesskey = java.net.URLEncoder.encode(accesskey, "utf-8");
... ...