USP CMAF push: Change to track identifier to allow for resuming

This commit is contained in:
Thulinma 2020-12-07 20:23:10 +01:00
parent c95ab07e04
commit e9ed76d361

View file

@ -802,7 +802,7 @@ namespace Mist{
CMAFPushTrack & track = pushTracks[idx];
track.url = pushUrl;
if (targetParams.count("usp") && targetParams["usp"] == "1"){
std::string usp_path = "Streams(" + M.getType(idx) + + "_" + JSON::Value(idx).asString() + ")";
std::string usp_path = "Streams(" + M.getTrackIdentifier(idx) + ")";
track.url = track.url.link(usp_path);
}else{
track.url.path += "/";