{"action":"created","issue":{"url":"https://api.github.com/repos/wang-bin/QtAV/issues/412","labels_url":"https://api.github.com/repos/wang-bin/QtAV/issues/412/labels{/name}","comments_url":"https://api.github.com/repos/wang-bin/QtAV/issues/412/comments","events_url":"https://api.github.com/repos/wang-bin/QtAV/issues/412/events","html_url":"https://github.com/wang-bin/QtAV/issues/412","id":67907666,"number":412,"title":"由于url时效性导致的播放器异常退出","user":{"login":"writethesky","id":7201443,"avatar_url":"https://avatars.githubusercontent.com/u/7201443?v=3","gravatar_id":"","url":"https://api.github.com/users/writethesky","html_url":"https://github.com/writethesky","followers_url":"https://api.github.com/users/writethesky/followers","following_url":"https://api.github.com/users/writethesky/following{/other_user}","gists_url":"https://api.github.com/users/writethesky/gists{/gist_id}","starred_url":"https://api.github.com/users/writethesky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/writethesky/subscriptions","organizations_url":"https://api.github.com/users/writethesky/orgs","repos_url":"https://api.github.com/users/writethesky/repos","events_url":"https://api.github.com/users/writethesky/events{/privacy}","received_events_url":"https://api.github.com/users/writethesky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-12T12:14:25Z","updated_at":"2015-04-13T05:42:42Z","closed_at":null,"body":"问题出现在HLS（m3u8）的视频中\r\n\r\n假设视频地址为www.aaa.com/test.m3u8?t=11111111\r\n\r\n假设test.m3u8里面包含的url如下：\r\n     www.aaa.com/a.mp4?t=1212\r\n这时候我们通过qtav可以正常播放视频（第一次播放）\r\n(注：一般设计视频服务器的时候会对视频的时效性进行设置，也就是说“www.aaa.com/a.mp4?t=1212”这个url只在一段时间内访问是有效的，过了一段时间可能就要访问“www.aaa.com/a.mp4?t=1313”才是有效的，也就是说test.m3u8里面的url列表是会动态变化的)\r\n\r\n过了一段时间（假设此时test.m3u8里面的url已经产生变化），再次使用qtav进行播放（第二次播放）\r\n此时将qtav的播放地址设置为www.aaa.com/test.m3u8?t=2222222（这么做是为了刷新缓存）\r\n\r\n发现此时qtav已经不能正常播放视频了\r\n\r\n分析视频服务器日志发现\r\n\r\nqtav请求的视频地址仍然是“www.aaa.com/a.mp4?t=1212”（旧的）\r\n\r\n而我通过浏览器下载“www.aaa.com/test.m3u8?t=2222222”，得到的内容中url是“www.aaa.com/a.mp4?t=1313”\r\n\r\n说明test.m3u8里面存储的url是正确，而qtav请求的地址却是旧的。\r\n\r\n怀疑qtav在第一次播放的时候把test.m3u8文件缓存了，导致视频加载失败而形成的闪退。"},"comment":{"url":"https://api.github.com/repos/wang-bin/QtAV/issues/comments/92220489","html_url":"https://github.com/wang-bin/QtAV/issues/412#issuecomment-92220489","issue_url":"https://api.github.com/repos/wang-bin/QtAV/issues/412","id":92220489,"user":{"login":"wang-bin","id":785206,"avatar_url":"https://avatars.githubusercontent.com/u/785206?v=3","gravatar_id":"","url":"https://api.github.com/users/wang-bin","html_url":"https://github.com/wang-bin","followers_url":"https://api.github.com/users/wang-bin/followers","following_url":"https://api.github.com/users/wang-bin/following{/other_user}","gists_url":"https://api.github.com/users/wang-bin/gists{/gist_id}","starred_url":"https://api.github.com/users/wang-bin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wang-bin/subscriptions","organizations_url":"https://api.github.com/users/wang-bin/orgs","repos_url":"https://api.github.com/users/wang-bin/repos","events_url":"https://api.github.com/users/wang-bin/events{/privacy}","received_events_url":"https://api.github.com/users/wang-bin/received_events","type":"User","site_admin":false},"created_at":"2015-04-13T05:42:42Z","updated_at":"2015-04-13T05:42:42Z","body":"这个不清除，需要看ffmpeg代码"}}