{"action":"created","issue":{"url":"https://api.github.com/repos/Red5/red5-server-common/issues/10","labels_url":"https://api.github.com/repos/Red5/red5-server-common/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/Red5/red5-server-common/issues/10/comments","events_url":"https://api.github.com/repos/Red5/red5-server-common/issues/10/events","html_url":"https://github.com/Red5/red5-server-common/issues/10","id":99897533,"number":10,"title":"Audio Only Stream - ClassCastException (AudioData -> VideoData) in RTMPProtocolEncoder ","user":{"login":"mkalamar","id":27289,"avatar_url":"https://avatars.githubusercontent.com/u/27289?v=3","gravatar_id":"","url":"https://api.github.com/users/mkalamar","html_url":"https://github.com/mkalamar","followers_url":"https://api.github.com/users/mkalamar/followers","following_url":"https://api.github.com/users/mkalamar/following{/other_user}","gists_url":"https://api.github.com/users/mkalamar/gists{/gist_id}","starred_url":"https://api.github.com/users/mkalamar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkalamar/subscriptions","organizations_url":"https://api.github.com/users/mkalamar/orgs","repos_url":"https://api.github.com/users/mkalamar/repos","events_url":"https://api.github.com/users/mkalamar/events{/privacy}","received_events_url":"https://api.github.com/users/mkalamar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-09T13:30:57Z","updated_at":"2015-08-27T14:47:37Z","closed_at":"2015-08-26T21:03:06Z","body":"I was streaming audio through red5 and occasionaly getting ClassCastException in RTMPProtocolEncoder in line 316 when it was trying to drop frames of video which didn't exist.\r\n\r\nI added if( message instanceof VideoData) in line 316, and it solved the problem. But maybe you want to look into the process of dropping frames if the stream is only audio.\r\n\r\n\t\t\t\tif (isDroppable) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(message instanceof VideoData) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tVideoData video = (VideoData) message;\r\n\r\n\r\nRed 5 is realy great! Thank you all for doing so good job :)\r\n\r\nBest Regards,\r\nMarta Kalamar"},"comment":{"url":"https://api.github.com/repos/Red5/red5-server-common/issues/comments/135457034","html_url":"https://github.com/Red5/red5-server-common/issues/10#issuecomment-135457034","issue_url":"https://api.github.com/repos/Red5/red5-server-common/issues/10","id":135457034,"user":{"login":"ritzalam","id":184672,"avatar_url":"https://avatars.githubusercontent.com/u/184672?v=3","gravatar_id":"","url":"https://api.github.com/users/ritzalam","html_url":"https://github.com/ritzalam","followers_url":"https://api.github.com/users/ritzalam/followers","following_url":"https://api.github.com/users/ritzalam/following{/other_user}","gists_url":"https://api.github.com/users/ritzalam/gists{/gist_id}","starred_url":"https://api.github.com/users/ritzalam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ritzalam/subscriptions","organizations_url":"https://api.github.com/users/ritzalam/orgs","repos_url":"https://api.github.com/users/ritzalam/repos","events_url":"https://api.github.com/users/ritzalam/events{/privacy}","received_events_url":"https://api.github.com/users/ritzalam/received_events","type":"User","site_admin":false},"created_at":"2015-08-27T14:47:37Z","updated_at":"2015-08-27T14:47:37Z","body":"Saw this too. Was about to send a PR. Thanks for fixing."}}