Skip to content

Commit

Permalink
edit-widget: add functions to return output & service IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaspontoexe committed Feb 26, 2024
1 parent 331ae75 commit 6510d84
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/edit-widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,18 @@ class EditOutputWidgetImpl : public EditOutputWidget
menu->exec(QCursor::pos());
}

//std::map?
static const char *GetOutputID2(const char *protocol) {
if (strncmp("SRT", protocol, 3) == 0) return "ffmpeg_mpegts_muxer";
if (strncmp("WebRTC", protocol, 6) == 0) return "whip_output";
return "rtmp_output";
}

static const char *GetServiceID(const char *protocol) {
if (strncmp("WebRTC", protocol, 6) == 0) return "whip_custom";
return "rtmp_custom";
}


QTabWidget* CreateOutputSettingsWidget(QWidget* parent) {
auto tab = new QTabWidget(parent);
Expand Down

0 comments on commit 6510d84

Please sign in to comment.