新增支持Python混合编程模式 (#4579)

This commit is contained in:
夏楚
2026-02-10 13:28:42 +08:00
committed by GitHub
parent da9deb352c
commit 6d520ea6a3
25 changed files with 1553 additions and 55 deletions

View File

@@ -110,7 +110,9 @@ void PlayerProxy::play(const string &strUrlTmp) {
if (!strongSelf) {
return;
}
if (err) {
NOTICE_EMIT(BroadcastPlayerProxyFailedArgs, Broadcast::kBroadcastPlayerProxyFailed, *strongSelf, err);
}
if (strongSelf->_on_play) {
strongSelf->_on_play(err);
strongSelf->_on_play = nullptr;
@@ -146,6 +148,9 @@ void PlayerProxy::play(const string &strUrlTmp) {
if (!strongSelf) {
return;
}
if (err) {
NOTICE_EMIT(BroadcastPlayerProxyFailedArgs, Broadcast::kBroadcastPlayerProxyFailed, *strongSelf, err);
}
// 注销直接拉流代理产生的流:#532 [AUTO-TRANSLATED:c6343a3b]
// Unregister the stream generated by the direct stream proxy: #532

View File

@@ -18,8 +18,7 @@
namespace mediakit {
struct StreamInfo
{
struct StreamInfo {
TrackType codec_type;
std::string codec_name;
int bitrate;
@@ -30,8 +29,7 @@ struct StreamInfo
int video_height;
float video_fps;
StreamInfo()
{
StreamInfo() {
codec_type = TrackInvalid;
codec_name = "none";
bitrate = -1;
@@ -44,14 +42,12 @@ struct StreamInfo
}
};
struct TranslationInfo
{
struct TranslationInfo {
std::vector<StreamInfo> stream_info;
int byte_speed;
uint64_t start_time_stamp;
TranslationInfo()
{
TranslationInfo() {
byte_speed = -1;
start_time_stamp = 0;
}