{"action":"created","issue":{"url":"https://api.github.com/repos/jwplayer/jwplayer/issues/679","labels_url":"https://api.github.com/repos/jwplayer/jwplayer/issues/679/labels{/name}","comments_url":"https://api.github.com/repos/jwplayer/jwplayer/issues/679/comments","events_url":"https://api.github.com/repos/jwplayer/jwplayer/issues/679/events","html_url":"https://github.com/jwplayer/jwplayer/issues/679","id":103036386,"number":679,"title":"Audio-only stream fails to start","user":{"login":"chrisdeely","id":230378,"avatar_url":"https://avatars.githubusercontent.com/u/230378?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisdeely","html_url":"https://github.com/chrisdeely","followers_url":"https://api.github.com/users/chrisdeely/followers","following_url":"https://api.github.com/users/chrisdeely/following{/other_user}","gists_url":"https://api.github.com/users/chrisdeely/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisdeely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisdeely/subscriptions","organizations_url":"https://api.github.com/users/chrisdeely/orgs","repos_url":"https://api.github.com/users/chrisdeely/repos","events_url":"https://api.github.com/users/chrisdeely/events{/privacy}","received_events_url":"https://api.github.com/users/chrisdeely/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-08-25T14:36:10Z","updated_at":"2015-09-22T22:58:06Z","closed_at":null,"body":"I discovered an odd bug while trying to play an audio-only RTMP stream. An audio-only stream will fail to play (at least audibly) until after the library has been used to play at least one video asset/stream.\r\n\r\nThe audio player will initialize, buffer & \"play\" but no sound is heard and the controls have no effect. Once you call ```setup()``` on a video instance, the audio will suddenly work.\r\n\r\nI'm attempting to track down the issue, my only clue so far is that the ```firstFrame``` event is not fired for the audio player until after the video instance is initialized.\r\n\r\nBelow is a simple test page I created for this bug. You will need to supply an appropriate path for the JW js file.\r\n\r\n```html\r\n<!DOCTYPE html>\r\n<html>\r\n<head lang=\"en\">\r\n    <meta charset=\"UTF-8\">\r\n    <title>JWP Bug Audio stream fails to start</title>\r\n    <script src=\"//content.jwplatform.com/libraries/INSERT_LIB_LOCATION.js\"></script>\r\n</head>\r\n<body>\r\n    <h1>Bug Description</h1>\r\n    <p>An audio-only live stream (via RTMP or HLS) will not begin playback until after the\r\n        JWPlayer has been used to play a video asset/stream first.</p>\r\n    <h2>Steps to recreate:</h2>\r\n    <ol>\r\n        <li>Click the 'Audio' button to initialize the audio-only player</li>\r\n        <li>The log will show events for the audio player up to and including 'play', but no audio is heard</li>\r\n        <li>Click the 'Video' button</li>\r\n        <li>The audio stream will be heard immediately (note the 'firstFrame' event in the log</li>\r\n    </ol>\r\n      <h1>Audio only test</h1>\r\n      <div id=\"audio-player\"></div>\r\n\r\n      <h1>Video test</h1>\r\n      <div id=\"video-player\"></div>\r\n\r\n    <button id=\"play-audio\">Audio</button>\r\n    <button id=\"play-video\">Video</button>\r\n\r\n    <h2>Log Area</h2>\r\n    <textarea id=\"log\" style=\"width:400px;height:300px\"></textarea>\r\n\r\n<script>\r\n    var audioStartBtn = document.getElementById(\"play-audio\");\r\n    var videoStartBtn = document.getElementById(\"play-video\");\r\n    var logArea = document.getElementById(\"log\");\r\n\r\n    audioStartBtn.addEventListener(\"click\", function () {\r\n        jwplayer(\"audio-player\").setup({\r\n            height: 40,\r\n            width: 600,\r\n            autostart: true,\r\n            mute: false,\r\n            primary:'flash',\r\n            playlist: [\r\n                {\r\n                    title: \"Live Audio Test\",\r\n                    sources:[\r\n                        {file: \"rtmp://stream-7.antenne.de/liveedge/rockantenne\", type:'rtmp'}\r\n                    ]\r\n                }\r\n            ],\r\n            rtmp:{\r\n                subscribe: true\r\n            },\r\n            controls:true,\r\n            skin: {\"name\": \"six\"}\r\n        }).on('all', function (type, data) {\r\n            //filter out the very frequent events for performance\r\n            if(type == 'time' || type== 'meta') return;\r\n            console.log(type, data);\r\n            logArea.value += \"\\n\" + type;\r\n        });\r\n    });\r\n\r\n    videoStartBtn.addEventListener(\"click\", function () {\r\n        jwplayer(\"video-player\").setup({\r\n            width: 640,\r\n            height: 480,\r\n            autostart: false,\r\n            primary: \"flash\",\r\n            playlist:[\r\n                {\r\n                    sources:[\r\n                        {file: \"http://content.jwplatform.com/videos/nPripu9l-twSo9iFz.mp4\"}\r\n                    ]\r\n                }\r\n            ]\r\n        });\r\n    });\r\n\r\n</script>\r\n</body>\r\n</html>\r\n```"},"comment":{"url":"https://api.github.com/repos/jwplayer/jwplayer/issues/comments/142444397","html_url":"https://github.com/jwplayer/jwplayer/issues/679#issuecomment-142444397","issue_url":"https://api.github.com/repos/jwplayer/jwplayer/issues/679","id":142444397,"user":{"login":"chrisdeely","id":230378,"avatar_url":"https://avatars.githubusercontent.com/u/230378?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisdeely","html_url":"https://github.com/chrisdeely","followers_url":"https://api.github.com/users/chrisdeely/followers","following_url":"https://api.github.com/users/chrisdeely/following{/other_user}","gists_url":"https://api.github.com/users/chrisdeely/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisdeely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisdeely/subscriptions","organizations_url":"https://api.github.com/users/chrisdeely/orgs","repos_url":"https://api.github.com/users/chrisdeely/repos","events_url":"https://api.github.com/users/chrisdeely/events{/privacy}","received_events_url":"https://api.github.com/users/chrisdeely/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T22:58:06Z","updated_at":"2015-09-22T22:58:06Z","body":"Thanks, I'll give it a try. In 7.2, could I suggest a 'setupError' event be thrown so that we could message our users directly?"}}