mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
merge srs2
This commit is contained in:
commit
e9e202dbf1
3 changed files with 33 additions and 0 deletions
|
@ -1407,6 +1407,11 @@ int SrsSource::on_meta_data(SrsCommonMessage* msg, SrsOnMetaDataPacket* metadata
|
|||
|
||||
SrsAmf0Any* prop = NULL;
|
||||
|
||||
// when exists the duration, remove it to make ExoPlayer happy.
|
||||
if (metadata->metadata->get_property("duration") != NULL) {
|
||||
metadata->metadata->remove("duration");
|
||||
}
|
||||
|
||||
// generate metadata info to print
|
||||
std::stringstream ss;
|
||||
if ((prop = metadata->metadata->ensure_property_number("width")) != NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue