{"action":"created","issue":{"url":"https://api.github.com/repos/kaltura/nginx-vod-module/issues/242","repository_url":"https://api.github.com/repos/kaltura/nginx-vod-module","labels_url":"https://api.github.com/repos/kaltura/nginx-vod-module/issues/242/labels{/name}","comments_url":"https://api.github.com/repos/kaltura/nginx-vod-module/issues/242/comments","events_url":"https://api.github.com/repos/kaltura/nginx-vod-module/issues/242/events","html_url":"https://github.com/kaltura/nginx-vod-module/issues/242","id":136059564,"number":242,"title":"Issue with multiple sequences in mapped mode","user":{"login":"Ivars","id":568890,"avatar_url":"https://avatars.githubusercontent.com/u/568890?v=3","gravatar_id":"","url":"https://api.github.com/users/Ivars","html_url":"https://github.com/Ivars","followers_url":"https://api.github.com/users/Ivars/followers","following_url":"https://api.github.com/users/Ivars/following{/other_user}","gists_url":"https://api.github.com/users/Ivars/gists{/gist_id}","starred_url":"https://api.github.com/users/Ivars/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ivars/subscriptions","organizations_url":"https://api.github.com/users/Ivars/orgs","repos_url":"https://api.github.com/users/Ivars/repos","events_url":"https://api.github.com/users/Ivars/events{/privacy}","received_events_url":"https://api.github.com/users/Ivars/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-24T13:20:23Z","updated_at":"2016-02-24T16:43:41Z","closed_at":null,"body":"Hello again,\r\nI am still dealing with the adaptive set of mp3 files for Mapped mode configuration as described here:\r\n[#235](https://github.com/kaltura/nginx-vod-module/issues/235)\r\n\r\nAfter installing new module version now JSON file with multiple sequences defined generates correct master.m3u8 playlist and also playlists for each file, but after that when player (flowplayer or VLC) requests actual .ts files I receive an error in log file:\r\n`*93 ngx_http_vod_validate_streams: request has more than one sequence while only one is supported while reading media header, client: xxx.xxx.xxx.xxx, server: xxx.xxx.xxx.xxx, request: \"GET /test/testvideo/seg-1-v1-a1.ts HTTP/1.1\"`\r\n\r\nAs before - if I use JSON file with only one sequence - all playlists are generated correctly and video is opened correctly.\r\n\r\nIs there any additional configuration missing? My nginx configuration is following:\r\n\r\n```\r\nhttp {\r\n\tupstream kalapi {\r\n\t\t#the same host\r\n\t\tserver xxx.xxx.xxx.xxx:80;\r\n\t}\r\n\t\t\r\n\tinclude\t/etc/nginx/mime.types;\r\n\tdefault_type  application/octet-stream;\r\n\r\n\taccess_log /var/log/nginx/access.log main;\r\n\r\n\tsendfile on;\r\n\ttcp_nopush on;\r\n\ttcp_nodelay on;\r\n\r\n\tkeepalive_timeout 60;\r\n\tkeepalive_requests 1000;\r\n\tclient_header_timeout 20;\r\n\tclient_body_timeout 20;\r\n\treset_timedout_connection on;\r\n\tsend_timeout 20;\r\n\r\n\tgzip  on;\r\n\tgzip_types application/vnd.apple.mpegurl video/f4m application/dash+xml text/xml;\r\n\r\n\tserver {\r\n\t\tlisten 80;\r\n\t\t\t\t\r\n\t    \tlocation ^~ /kalapi/ {\r\n                \tinternal;\r\n                \tproxy_pass http://kalapi/json/;\r\n                \tproxy_set_header Host $http_host;\r\n            \t}\t\t\r\n\t\t\r\n\t\t# flowplayer files served from here \r\n\t\tlocation /player/ {\r\n\t\t\troot   /var/www/;\r\n\t\t}\r\n\t\t\r\n\t\t# mapped json\r\n\t\tlocation /json/ {\r\n\t\t\troot   /var/www/;\r\n\t\t\tadd_header Content-Type \"application/json; charset=UTF-8\";\r\n\t\t}\r\n\r\n\t\t#video test\r\n                location /test/ {\r\n\r\n                       vod hls;\r\n                       vod_mode mapped;\r\n\t\t       vod_upstream_location /kalapi;\r\n\t\t       vod_upstream_extra_args \"pathOnly=1\";\r\n                       \r\n\t\t\t#root /srv/video;\r\n\t\t\t\t\t\t\r\n                        vod_secret_key \"secret-$vod_filepath\";\r\n                        vod_hls_encryption_method aes-128;\r\n                        vod_hls_encryption_key_file_name \"secret\";\r\n\r\n                        add_header Last-Modified \"Sun, 19 Nov 2000 08:52:00 GMT\";\r\n                        add_header Access-Control-Allow-Headers \"*\";\r\n                        add_header Access-Control-Expose-Headers \"Server,range,Content-Length,Content-Range\";\r\n                        add_header Access-Control-Allow-Methods \"GET, HEAD, OPTIONS\";\r\n                        add_header Access-Control-Allow-Origin \"*\";\r\n\t\t\texpires 100d;\r\n                }\r\n\t}\r\n}\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/kaltura/nginx-vod-module/issues/comments/188345900","html_url":"https://github.com/kaltura/nginx-vod-module/issues/242#issuecomment-188345900","issue_url":"https://api.github.com/repos/kaltura/nginx-vod-module/issues/242","id":188345900,"user":{"login":"erankor","id":4777488,"avatar_url":"https://avatars.githubusercontent.com/u/4777488?v=3","gravatar_id":"","url":"https://api.github.com/users/erankor","html_url":"https://github.com/erankor","followers_url":"https://api.github.com/users/erankor/followers","following_url":"https://api.github.com/users/erankor/following{/other_user}","gists_url":"https://api.github.com/users/erankor/gists{/gist_id}","starred_url":"https://api.github.com/users/erankor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erankor/subscriptions","organizations_url":"https://api.github.com/users/erankor/orgs","repos_url":"https://api.github.com/users/erankor/repos","events_url":"https://api.github.com/users/erankor/events{/privacy}","received_events_url":"https://api.github.com/users/erankor/received_events","type":"User","site_admin":false},"created_at":"2016-02-24T16:43:41Z","updated_at":"2016-02-24T16:43:41Z","body":"Ok, I found the problem, change the if in this line:\r\nhttps://github.com/kaltura/nginx-vod-module/blob/master/ngx_http_vod_module.c#L3146\r\nTo:\r\n```\r\n\tif (mapped_media_set.sequence_count == 1 &&\r\n\t\tmapped_media_set.durations == NULL &&\r\n\t\tmapped_media_set.sequences[0].clips[0]->type == MEDIA_CLIP_SOURCE && \r\n\t\t!mapped_media_set.has_multi_sequences)\r\n```\r\n\r\n(adding `&& !mapped_media_set.has_multi_sequences`)"}}