mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
rtmp协议metadata设置title字段
This commit is contained in:
parent
ce16a0a9b6
commit
bb26fead1e
@ -16,7 +16,7 @@ TitleMeta::TitleMeta(float dur_sec, size_t fileSize, const std::map<std::string,
|
||||
{
|
||||
_metadata.set("duration", dur_sec);
|
||||
_metadata.set("fileSize", (int)fileSize);
|
||||
_metadata.set("server", kServerName);
|
||||
_metadata.set("title", std::string("Streamed by ") + kServerName);
|
||||
for (auto &pr : header) {
|
||||
_metadata.set(pr.first, pr.second);
|
||||
}
|
||||
|
@ -99,7 +99,7 @@ public:
|
||||
*/
|
||||
virtual void setMetaData(const AMFValue &metadata) {
|
||||
_metadata = metadata;
|
||||
_metadata.set("server", kServerName);
|
||||
_metadata.set("title", std::string("Streamed by ") + kServerName);
|
||||
_have_video = _metadata["videocodecid"];
|
||||
_have_audio = _metadata["audiocodecid"];
|
||||
if (_ring) {
|
||||
|
Loading…
Reference in New Issue
Block a user