@@ -91,8 +91,8 @@ public Response listStream(String namespaceId, int offset, int line, int qtype,
9191 静态模式获取流地址
9292 */
9393 public Response staticPublishPlayURL (String namespaceId , String streamId , StaticLiveRoute staticLiveRoute ) throws QiniuException {
94- StringMap params = new StringMap ().put ("Domain " , staticLiveRoute .getDomain ()).
95- put ("DomainType " , staticLiveRoute .getDomainType ()).putNotNull ("UrlExpireSec " , staticLiveRoute .getUrlExpireSec ());
94+ StringMap params = new StringMap ().put ("domain " , staticLiveRoute .getDomain ()).
95+ put ("domainType " , staticLiveRoute .getDomainType ()).putNotNull ("urlExpireSec " , staticLiveRoute .getUrlExpireSec ()). putNotNull ( "playExpireSec" , staticLiveRoute . getPlayExpireSec ());
9696 String url = String .format ("%s/v1/namespaces/%s/streams/%s/domain" , apiServer , namespaceId , streamId );
9797 return QvsResponse .post (url , params , client , auth );
9898 }
@@ -102,9 +102,10 @@ public Response staticPublishPlayURL(String namespaceId, String streamId, Static
102102 */
103103 public Response dynamicPublishPlayURL (String namespaceId , String streamId , DynamicLiveRoute dynamicLiveRoute ) throws QiniuException {
104104 StringMap params = new StringMap ();
105- params .put ("PublishIP" , dynamicLiveRoute .getPublishIP ());
106- params .put ("PlayIP" , dynamicLiveRoute .getPlayIP ());
107- params .putNotNull ("UrlExpireSec" , dynamicLiveRoute .getUrlExpireSec ());
105+ params .put ("publishIp" , dynamicLiveRoute .getPublishIP ());
106+ params .put ("playIp" , dynamicLiveRoute .getPlayIP ());
107+ params .putNotNull ("urlExpireSec" , dynamicLiveRoute .getUrlExpireSec ());
108+ params .putNotNull ("playExpireSec" , dynamicLiveRoute .getPlayExpireSec ());
108109
109110 String url = String .format ("%s/v1/namespaces/%s/streams/%s/urls" , apiServer , namespaceId , streamId );
110111 return QvsResponse .post (url , params , client , auth );
0 commit comments