kaltura / nginx-vod-module

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

Dynamic / Generic Mapped Mode #1357

Open gdomod opened 2 years ago

gdomod commented 2 years ago

i want to use a dynamic / generic mapped mode my vod archive as the same folder and file structure

its possible to pre-defined a generic mapped json with request parameter as file replacement ? like http://host/{date}.json/master.m3u8


    "sequences": [
        {
            "clips": [
                {
                    "type": "source",
                    "path": "/vod/{date}/{date}_720p.mp4"
                }
            ]
        },
        {
            "clips": [
                {
                    "type": "source",
                    "path": "/vod/{date}/{date}_540p.mp4"
                }
            ]
        }
           .............. and so on
    ]
}```

or are the mapped mode always static ?
mlevkov commented 1 year ago

@gdomod Take a look at one of my previous issues -> https://github.com/kaltura/nginx-vod-module/issues/1399, maybe it will give you some hints. I think you can just create regex and then pass it over to the mapped mode as a variable as described in the issue linked here.