Skip to content

Commit d2887a4

Browse files
committed
支持创建RTC WHIP推流地址
1 parent e7d1a04 commit d2887a4

File tree

116 files changed

+6393
-74
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+6393
-74
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.36.2074
1+
1.36.2075

live/CMakeLists.txt

Lines changed: 80 additions & 0 deletions
Large diffs are not rendered by default.

live/include/alibabacloud/live/LiveClient.h

Lines changed: 160 additions & 0 deletions
Large diffs are not rendered by default.

live/include/alibabacloud/live/model/CreateLiveMessageAppRequest.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,12 @@ class ALIBABACLOUD_LIVE_EXPORT CreateLiveMessageAppRequest : public RpcServiceRe
3030
public:
3131
CreateLiveMessageAppRequest();
3232
~CreateLiveMessageAppRequest();
33+
int getStreamSupport() const;
34+
void setStreamSupport(int streamSupport);
3335
std::string getDataCenter() const;
3436
void setDataCenter(const std::string &dataCenter);
37+
int getRichTextSupport() const;
38+
void setRichTextSupport(int richTextSupport);
3539
int getMsgLifeCycle() const;
3640
void setMsgLifeCycle(int msgLifeCycle);
3741
std::string getAppName() const;
@@ -44,7 +48,9 @@ class ALIBABACLOUD_LIVE_EXPORT CreateLiveMessageAppRequest : public RpcServiceRe
4448
void setEventCallbackUrl(const std::string &eventCallbackUrl);
4549

4650
private:
51+
int streamSupport_;
4752
std::string dataCenter_;
53+
int richTextSupport_;
4854
int msgLifeCycle_;
4955
std::string appName_;
5056
int auditType_;
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
/*
2+
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef ALIBABACLOUD_LIVE_MODEL_CREATELIVEPULLTOPUSHREQUEST_H_
18+
#define ALIBABACLOUD_LIVE_MODEL_CREATELIVEPULLTOPUSHREQUEST_H_
19+
20+
#include <alibabacloud/live/LiveExport.h>
21+
#include <alibabacloud/core/RpcServiceRequest.h>
22+
#include <string>
23+
#include <vector>
24+
#include <map>
25+
26+
namespace AlibabaCloud {
27+
namespace Live {
28+
namespace Model {
29+
class ALIBABACLOUD_LIVE_EXPORT CreateLivePullToPushRequest : public RpcServiceRequest {
30+
public:
31+
CreateLivePullToPushRequest();
32+
~CreateLivePullToPushRequest();
33+
int getFileIndex() const;
34+
void setFileIndex(int fileIndex);
35+
int getRetryCount() const;
36+
void setRetryCount(int retryCount);
37+
std::string getTaskName() const;
38+
void setTaskName(const std::string &taskName);
39+
std::string getStartTime() const;
40+
void setStartTime(const std::string &startTime);
41+
int getRepeatNumber() const;
42+
void setRepeatNumber(int repeatNumber);
43+
std::string getSourceProtocol() const;
44+
void setSourceProtocol(const std::string &sourceProtocol);
45+
std::string getSourceType() const;
46+
void setSourceType(const std::string &sourceType);
47+
int getOffset() const;
48+
void setOffset(int offset);
49+
std::string getDstUrl() const;
50+
void setDstUrl(const std::string &dstUrl);
51+
std::string getEndTime() const;
52+
void setEndTime(const std::string &endTime);
53+
long getOwnerId() const;
54+
void setOwnerId(long ownerId);
55+
std::vector<std::string> getSourceUrls() const;
56+
void setSourceUrls(const std::vector<std::string> &sourceUrls);
57+
int getRetryInterval() const;
58+
void setRetryInterval(int retryInterval);
59+
std::string getCallbackUrl() const;
60+
void setCallbackUrl(const std::string &callbackUrl);
61+
std::string getRegion() const;
62+
void setRegion(const std::string &region);
63+
64+
private:
65+
int fileIndex_;
66+
int retryCount_;
67+
std::string taskName_;
68+
std::string startTime_;
69+
int repeatNumber_;
70+
std::string sourceProtocol_;
71+
std::string sourceType_;
72+
int offset_;
73+
std::string dstUrl_;
74+
std::string endTime_;
75+
long ownerId_;
76+
std::vector<std::string> sourceUrls_;
77+
int retryInterval_;
78+
std::string callbackUrl_;
79+
std::string region_;
80+
};
81+
} // namespace Model
82+
} // namespace Live
83+
} // namespace AlibabaCloud
84+
#endif // !ALIBABACLOUD_LIVE_MODEL_CREATELIVEPULLTOPUSHREQUEST_H_
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
/*
2+
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef ALIBABACLOUD_LIVE_MODEL_CREATELIVEPULLTOPUSHRESULT_H_
18+
#define ALIBABACLOUD_LIVE_MODEL_CREATELIVEPULLTOPUSHRESULT_H_
19+
20+
#include <string>
21+
#include <vector>
22+
#include <utility>
23+
#include <alibabacloud/core/ServiceResult.h>
24+
#include <alibabacloud/live/LiveExport.h>
25+
26+
namespace AlibabaCloud
27+
{
28+
namespace Live
29+
{
30+
namespace Model
31+
{
32+
class ALIBABACLOUD_LIVE_EXPORT CreateLivePullToPushResult : public ServiceResult
33+
{
34+
public:
35+
36+
37+
CreateLivePullToPushResult();
38+
explicit CreateLivePullToPushResult(const std::string &payload);
39+
~CreateLivePullToPushResult();
40+
std::string getDescription()const;
41+
std::string getTaskId()const;
42+
int getRetCode()const;
43+
44+
protected:
45+
void parse(const std::string &payload);
46+
private:
47+
std::string description_;
48+
std::string taskId_;
49+
int retCode_;
50+
51+
};
52+
}
53+
}
54+
}
55+
#endif // !ALIBABACLOUD_LIVE_MODEL_CREATELIVEPULLTOPUSHRESULT_H_
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
/*
2+
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef ALIBABACLOUD_LIVE_MODEL_CREATERTCWHIPSTREAMADDRESSREQUEST_H_
18+
#define ALIBABACLOUD_LIVE_MODEL_CREATERTCWHIPSTREAMADDRESSREQUEST_H_
19+
20+
#include <alibabacloud/live/LiveExport.h>
21+
#include <alibabacloud/core/RpcServiceRequest.h>
22+
#include <string>
23+
#include <vector>
24+
#include <map>
25+
26+
namespace AlibabaCloud {
27+
namespace Live {
28+
namespace Model {
29+
class ALIBABACLOUD_LIVE_EXPORT CreateRTCWhipStreamAddressRequest : public RpcServiceRequest {
30+
public:
31+
CreateRTCWhipStreamAddressRequest();
32+
~CreateRTCWhipStreamAddressRequest();
33+
int getExpireTime() const;
34+
void setExpireTime(int expireTime);
35+
std::string getClientToken() const;
36+
void setClientToken(const std::string &clientToken);
37+
std::string getUserId() const;
38+
void setUserId(const std::string &userId);
39+
std::string getAppId() const;
40+
void setAppId(const std::string &appId);
41+
std::string getDisplayName() const;
42+
void setDisplayName(const std::string &displayName);
43+
std::string getChannelId() const;
44+
void setChannelId(const std::string &channelId);
45+
46+
private:
47+
int expireTime_;
48+
std::string clientToken_;
49+
std::string userId_;
50+
std::string appId_;
51+
std::string displayName_;
52+
std::string channelId_;
53+
};
54+
} // namespace Model
55+
} // namespace Live
56+
} // namespace AlibabaCloud
57+
#endif // !ALIBABACLOUD_LIVE_MODEL_CREATERTCWHIPSTREAMADDRESSREQUEST_H_
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/*
2+
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef ALIBABACLOUD_LIVE_MODEL_CREATERTCWHIPSTREAMADDRESSRESULT_H_
18+
#define ALIBABACLOUD_LIVE_MODEL_CREATERTCWHIPSTREAMADDRESSRESULT_H_
19+
20+
#include <string>
21+
#include <vector>
22+
#include <utility>
23+
#include <alibabacloud/core/ServiceResult.h>
24+
#include <alibabacloud/live/LiveExport.h>
25+
26+
namespace AlibabaCloud
27+
{
28+
namespace Live
29+
{
30+
namespace Model
31+
{
32+
class ALIBABACLOUD_LIVE_EXPORT CreateRTCWhipStreamAddressResult : public ServiceResult
33+
{
34+
public:
35+
36+
37+
CreateRTCWhipStreamAddressResult();
38+
explicit CreateRTCWhipStreamAddressResult(const std::string &payload);
39+
~CreateRTCWhipStreamAddressResult();
40+
std::string getWhipAddress()const;
41+
42+
protected:
43+
void parse(const std::string &payload);
44+
private:
45+
std::string whipAddress_;
46+
47+
};
48+
}
49+
}
50+
}
51+
#endif // !ALIBABACLOUD_LIVE_MODEL_CREATERTCWHIPSTREAMADDRESSRESULT_H_
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
/*
2+
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef ALIBABACLOUD_LIVE_MODEL_DELETELIVEPULLTOPUSHREQUEST_H_
18+
#define ALIBABACLOUD_LIVE_MODEL_DELETELIVEPULLTOPUSHREQUEST_H_
19+
20+
#include <alibabacloud/live/LiveExport.h>
21+
#include <alibabacloud/core/RpcServiceRequest.h>
22+
#include <string>
23+
#include <vector>
24+
#include <map>
25+
26+
namespace AlibabaCloud {
27+
namespace Live {
28+
namespace Model {
29+
class ALIBABACLOUD_LIVE_EXPORT DeleteLivePullToPushRequest : public RpcServiceRequest {
30+
public:
31+
DeleteLivePullToPushRequest();
32+
~DeleteLivePullToPushRequest();
33+
std::string getTaskId() const;
34+
void setTaskId(const std::string &taskId);
35+
long getOwnerId() const;
36+
void setOwnerId(long ownerId);
37+
std::string getRegion() const;
38+
void setRegion(const std::string &region);
39+
40+
private:
41+
std::string taskId_;
42+
long ownerId_;
43+
std::string region_;
44+
};
45+
} // namespace Model
46+
} // namespace Live
47+
} // namespace AlibabaCloud
48+
#endif // !ALIBABACLOUD_LIVE_MODEL_DELETELIVEPULLTOPUSHREQUEST_H_
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
/*
2+
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef ALIBABACLOUD_LIVE_MODEL_DELETELIVEPULLTOPUSHRESULT_H_
18+
#define ALIBABACLOUD_LIVE_MODEL_DELETELIVEPULLTOPUSHRESULT_H_
19+
20+
#include <string>
21+
#include <vector>
22+
#include <utility>
23+
#include <alibabacloud/core/ServiceResult.h>
24+
#include <alibabacloud/live/LiveExport.h>
25+
26+
namespace AlibabaCloud
27+
{
28+
namespace Live
29+
{
30+
namespace Model
31+
{
32+
class ALIBABACLOUD_LIVE_EXPORT DeleteLivePullToPushResult : public ServiceResult
33+
{
34+
public:
35+
36+
37+
DeleteLivePullToPushResult();
38+
explicit DeleteLivePullToPushResult(const std::string &payload);
39+
~DeleteLivePullToPushResult();
40+
std::string getDescription()const;
41+
int getRetCode()const;
42+
43+
protected:
44+
void parse(const std::string &payload);
45+
private:
46+
std::string description_;
47+
int retCode_;
48+
49+
};
50+
}
51+
}
52+
}
53+
#endif // !ALIBABACLOUD_LIVE_MODEL_DELETELIVEPULLTOPUSHRESULT_H_

0 commit comments

Comments
 (0)