{"action":"created","issue":{"url":"https://api.github.com/repos/Dash-Industry-Forum/dash.js/issues/414","labels_url":"https://api.github.com/repos/Dash-Industry-Forum/dash.js/issues/414/labels{/name}","comments_url":"https://api.github.com/repos/Dash-Industry-Forum/dash.js/issues/414/comments","events_url":"https://api.github.com/repos/Dash-Industry-Forum/dash.js/issues/414/events","html_url":"https://github.com/Dash-Industry-Forum/dash.js/issues/414","id":57896555,"number":414,"title":"Need help on getting video quality","user":{"login":"arivazhagan","id":1475250,"avatar_url":"https://avatars.githubusercontent.com/u/1475250?v=3","gravatar_id":"","url":"https://api.github.com/users/arivazhagan","html_url":"https://github.com/arivazhagan","followers_url":"https://api.github.com/users/arivazhagan/followers","following_url":"https://api.github.com/users/arivazhagan/following{/other_user}","gists_url":"https://api.github.com/users/arivazhagan/gists{/gist_id}","starred_url":"https://api.github.com/users/arivazhagan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arivazhagan/subscriptions","organizations_url":"https://api.github.com/users/arivazhagan/orgs","repos_url":"https://api.github.com/users/arivazhagan/repos","events_url":"https://api.github.com/users/arivazhagan/events{/privacy}","received_events_url":"https://api.github.com/users/arivazhagan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-02-17T08:31:56Z","updated_at":"2015-10-27T14:55:35Z","closed_at":"2015-02-18T09:22:57Z","body":"I am stuck with getting video streams that available for a stream. can some one please help me out. Thanks in advance."},"comment":{"url":"https://api.github.com/repos/Dash-Industry-Forum/dash.js/issues/comments/151529410","html_url":"https://github.com/Dash-Industry-Forum/dash.js/issues/414#issuecomment-151529410","issue_url":"https://api.github.com/repos/Dash-Industry-Forum/dash.js/issues/414","id":151529410,"user":{"login":"sun-ks","id":5836646,"avatar_url":"https://avatars.githubusercontent.com/u/5836646?v=3","gravatar_id":"","url":"https://api.github.com/users/sun-ks","html_url":"https://github.com/sun-ks","followers_url":"https://api.github.com/users/sun-ks/followers","following_url":"https://api.github.com/users/sun-ks/following{/other_user}","gists_url":"https://api.github.com/users/sun-ks/gists{/gist_id}","starred_url":"https://api.github.com/users/sun-ks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sun-ks/subscriptions","organizations_url":"https://api.github.com/users/sun-ks/orgs","repos_url":"https://api.github.com/users/sun-ks/repos","events_url":"https://api.github.com/users/sun-ks/events{/privacy}","received_events_url":"https://api.github.com/users/sun-ks/received_events","type":"User","site_admin":false},"created_at":"2015-10-27T14:55:35Z","updated_at":"2015-10-27T14:55:35Z","body":"Thanks. It'is works. My simple examle for choice quality -\" Low &\r\nHD\". \r\n<pre>\r\n                \r\n\r\nvar url = \"http://dash.edgesuite.net/envivio/Envivio-dash2/manifest.mpd\";\r\n                var context = new Dash.di.DashContext();\r\n                var player = new MediaPlayer(context);\r\n                player.startup();\r\n                player.addEventListener(MediaPlayer.events.STREAM_INITIALIZED,function() {\r\n                    var bitrates = player.getBitrateInfoListFor(\"video\");\r\n                    player.setAutoSwitchQuality(false);   \r\n                    player.setQualityFor(\"video\", 3);\r\n                    console.log(bitrates);\r\n                    $('.videoQuality > ul li a').on('click', function() {\r\n                        switch ($.trim($(this)[0].innerText)) {\r\n                            case \"Low\":\r\n                            player.setQualityFor(\"video\", 0);\r\n                            break;\r\n                            case \"SD\":\r\n                            alert('test');\r\n                            player.setQualityFor(\"video\", bitrates[1].qualityIndex);\r\n                            break;\r\n                            case \"HD\":\r\n                            player.setQualityFor(\"video\", bitrates[bitrates.length-1].qualityIndex);\r\n                            break;\r\n                        }\r\n                        $('.videoQuality > ul a').removeClass('accent2_text');\r\n                        $(this).addClass('accent2_text');\r\n                    });\r\n                });\r\n                player.attachView(document.querySelector(\"#dashPlayer\"));\r\n                player.attachSource(url);\r\n</pre>\r\nFor example: http://testcodeigor.esy.es/player/my.html\r\n\r\nBut perhaps there is already a more elegant solution?"}}