nginx-vod-module icon indicating copy to clipboard operation
nginx-vod-module copied to clipboard

Dynamic / Generic Mapped Mode

Open gdomod opened this issue 2 years ago • 1 comments

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

  • /vod/20220101/20220101_720p.mp4
  • /vod/20220101/20220101_540p.mp4
  • /vod/20220101/20220101_360p.mp4
  • /vod/20220101/20220101_eng.vtt

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 ?

gdomod avatar May 06 '22 14:05 gdomod

@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.

mlevkov avatar Dec 17 '22 01:12 mlevkov