kaltura / nginx-vod-module

NGINX-based MP4 Repackager
GNU Affero General Public License v3.0
1.99k stars 439 forks source link

adding $Time$ to media tag of segmentTemplate #1098

Open mlevkov opened 4 years ago

mlevkov commented 4 years ago

Hello Eran,

Is it possible to generate DASH manifest in the way that it allows a request of the segment with $Time$ identification as such?:

media="fragment-$Number$-$RepresentationID$-$Time$.m4s

Current behavior only, at least default one, is outputted as such:

media="fragment-$Number$-$RepresentationID$.m4s

erankor commented 4 years ago

It should be fairly easy to do, but it's a bit hacky, since the module will need to ignore part of the segment URL. If it's for logging purposes, a more elegant solution would be to expose an nginx variable with the segment time, similar to $vod_segment_duration.