mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
Merge pull request #1914 from YouNow/master
rtmp-services: Add YouNow service and implement ingest lookup
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
|
||||
#include "rtmp-format-ver.h"
|
||||
#include "twitch.h"
|
||||
#include "younow.h"
|
||||
|
||||
struct rtmp_common {
|
||||
char *service;
|
||||
@@ -596,6 +597,12 @@ static const char *rtmp_common_url(void *data)
|
||||
}
|
||||
}
|
||||
|
||||
if (service->service && strcmp(service->service, "YouNow") == 0) {
|
||||
if (service->server && service->key) {
|
||||
return younow_get_ingest(service->server, service->key);
|
||||
}
|
||||
}
|
||||
|
||||
return service->server;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user