{"action":"created","issue":{"url":"https://api.github.com/repos/CarGuo/GSYVideoPlayer/issues/632","repository_url":"https://api.github.com/repos/CarGuo/GSYVideoPlayer","labels_url":"https://api.github.com/repos/CarGuo/GSYVideoPlayer/issues/632/labels{/name}","comments_url":"https://api.github.com/repos/CarGuo/GSYVideoPlayer/issues/632/comments","events_url":"https://api.github.com/repos/CarGuo/GSYVideoPlayer/issues/632/events","html_url":"https://github.com/CarGuo/GSYVideoPlayer/issues/632","id":278696066,"number":632,"title":"开启硬解码播放不了rtsp","user":{"login":"tpnet","id":17380722,"avatar_url":"https://avatars2.githubusercontent.com/u/17380722?v=4","gravatar_id":"","url":"https://api.github.com/users/tpnet","html_url":"https://github.com/tpnet","followers_url":"https://api.github.com/users/tpnet/followers","following_url":"https://api.github.com/users/tpnet/following{/other_user}","gists_url":"https://api.github.com/users/tpnet/gists{/gist_id}","starred_url":"https://api.github.com/users/tpnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tpnet/subscriptions","organizations_url":"https://api.github.com/users/tpnet/orgs","repos_url":"https://api.github.com/users/tpnet/repos","events_url":"https://api.github.com/users/tpnet/events{/privacy}","received_events_url":"https://api.github.com/users/tpnet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-12-02T16:23:28Z","updated_at":"2017-12-03T15:23:17Z","closed_at":null,"author_association":"NONE","body":"依赖\r\n```\r\n    compile 'com.shuyu:gsyVideoPlayer-java:2.1.1'\r\n    //支持mpeg编码和其他补充协议,但是so包相对变大。\r\n    compile 'com.shuyu:gsyVideoPlayer-ex_so:2.1.1'\r\n```\r\n\r\n播放的方法：\r\n```\r\n    override fun onClick(v: View) {\r\n        when(v.id){\r\n            R.id.btn_mediaplayer -> {\r\n                //开启硬解码\r\n                GSYVideoType.enableMediaCodec()\r\n                GSYVideoType.enableMediaCodecTexture()\r\n                //重新播放\r\n                playVideo(url)\r\n            }\r\n            R.id.btn_ijkplayer -> {\r\n                //关闭硬解码\r\n                GSYVideoType.disableMediaCodec()\r\n                GSYVideoType.disableMediaCodecTexture()\r\n                //重新播放\r\n                playVideo(url)\r\n            }\r\n        }\r\n    }\r\n\r\n\r\n    private fun playVideo(url: String) {\r\n        mPlayer.release()\r\n        gsyVideoOptionBuilder.setUrl(url)\r\n                .setVideoTitle(\"测试视频\")\r\n                .setCacheWithPlay(false)\r\n                .build(mPlayer)\r\n        gsyVideoOptionBuilder?.build(mPlayer)\r\n        mPlayer.postDelayed(Runnable { mPlayer.startPlayLogic() }, 1000)\r\n    }\r\n```\r\n如果点击的是硬解码播放，，视频一直在转圈圈，播放不了， 。。。软解码就可以播放。\r\n\r\n\r\n手机： 小米note，系统Android6.0\r\n "},"comment":{"url":"https://api.github.com/repos/CarGuo/GSYVideoPlayer/issues/comments/348783124","html_url":"https://github.com/CarGuo/GSYVideoPlayer/issues/632#issuecomment-348783124","issue_url":"https://api.github.com/repos/CarGuo/GSYVideoPlayer/issues/632","id":348783124,"user":{"login":"tpnet","id":17380722,"avatar_url":"https://avatars2.githubusercontent.com/u/17380722?v=4","gravatar_id":"","url":"https://api.github.com/users/tpnet","html_url":"https://github.com/tpnet","followers_url":"https://api.github.com/users/tpnet/followers","following_url":"https://api.github.com/users/tpnet/following{/other_user}","gists_url":"https://api.github.com/users/tpnet/gists{/gist_id}","starred_url":"https://api.github.com/users/tpnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tpnet/subscriptions","organizations_url":"https://api.github.com/users/tpnet/orgs","repos_url":"https://api.github.com/users/tpnet/repos","events_url":"https://api.github.com/users/tpnet/events{/privacy}","received_events_url":"https://api.github.com/users/tpnet/received_events","type":"User","site_admin":false},"created_at":"2017-12-03T15:23:16Z","updated_at":"2017-12-03T15:23:16Z","author_association":"NONE","body":"你这个是设置tcp噢，。。。我自己编译了ijk的库来用，不用你exso，不会出现一直加载了，但是画面刚刚开始是黑的，然后过了几秒就变成了 灰色了。。。。"}}
{"actor":{"display_login":"tpnet"}}