{"action":"closed","issue":{"url":"https://api.github.com/repos/xr-dev/com.xrdev.musicast/issues/25","labels_url":"https://api.github.com/repos/xr-dev/com.xrdev.musicast/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/xr-dev/com.xrdev.musicast/issues/25/comments","events_url":"https://api.github.com/repos/xr-dev/com.xrdev.musicast/issues/25/events","html_url":"https://github.com/xr-dev/com.xrdev.musicast/issues/25","id":55152749,"number":25,"title":"Reprodução de vídeos usando playlists","user":{"login":"xr-dev","id":7648213,"avatar_url":"https://avatars.githubusercontent.com/u/7648213?v=3","gravatar_id":"","url":"https://api.github.com/users/xr-dev","html_url":"https://github.com/xr-dev","followers_url":"https://api.github.com/users/xr-dev/followers","following_url":"https://api.github.com/users/xr-dev/following{/other_user}","gists_url":"https://api.github.com/users/xr-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/xr-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xr-dev/subscriptions","organizations_url":"https://api.github.com/users/xr-dev/orgs","repos_url":"https://api.github.com/users/xr-dev/repos","events_url":"https://api.github.com/users/xr-dev/events{/privacy}","received_events_url":"https://api.github.com/users/xr-dev/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/xr-dev/com.xrdev.musicast/labels/chromecast","name":"chromecast","color":"fbca04"},{"url":"https://api.github.com/repos/xr-dev/com.xrdev.musicast/labels/receiver","name":"receiver","color":"fef2c0"},{"url":"https://api.github.com/repos/xr-dev/com.xrdev.musicast/labels/sender","name":"sender","color":"fef2c0"}],"state":"closed","locked":false,"assignee":{"login":"xr-dev","id":7648213,"avatar_url":"https://avatars.githubusercontent.com/u/7648213?v=3","gravatar_id":"","url":"https://api.github.com/users/xr-dev","html_url":"https://github.com/xr-dev","followers_url":"https://api.github.com/users/xr-dev/followers","following_url":"https://api.github.com/users/xr-dev/following{/other_user}","gists_url":"https://api.github.com/users/xr-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/xr-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xr-dev/subscriptions","organizations_url":"https://api.github.com/users/xr-dev/orgs","repos_url":"https://api.github.com/users/xr-dev/repos","events_url":"https://api.github.com/users/xr-dev/events{/privacy}","received_events_url":"https://api.github.com/users/xr-dev/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/xr-dev/com.xrdev.musicast/milestones/4","labels_url":"https://api.github.com/repos/xr-dev/com.xrdev.musicast/milestones/4/labels","id":932395,"number":4,"title":"Protótipo 4","description":"Implementação de interface gráfica ao aplicativo receptor e reprodução de vídeos.","creator":{"login":"xr-dev","id":7648213,"avatar_url":"https://avatars.githubusercontent.com/u/7648213?v=3","gravatar_id":"","url":"https://api.github.com/users/xr-dev","html_url":"https://github.com/xr-dev","followers_url":"https://api.github.com/users/xr-dev/followers","following_url":"https://api.github.com/users/xr-dev/following{/other_user}","gists_url":"https://api.github.com/users/xr-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/xr-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xr-dev/subscriptions","organizations_url":"https://api.github.com/users/xr-dev/orgs","repos_url":"https://api.github.com/users/xr-dev/repos","events_url":"https://api.github.com/users/xr-dev/events{/privacy}","received_events_url":"https://api.github.com/users/xr-dev/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":3,"state":"open","created_at":"2015-01-12T22:24:59Z","updated_at":"2015-01-23T03:32:12Z","due_on":"2015-01-26T02:00:00Z","closed_at":null},"comments":1,"created_at":"2015-01-22T13:27:09Z","updated_at":"2015-01-23T03:32:12Z","closed_at":"2015-01-23T03:32:12Z","body":"Nova classe global: QueueList, vai manter a lista de reprodução atual e o playlistId do Spotify.\r\n\r\n- Iterator passa pela TrackActivity.ListView, se TrackItem.wasFound() adiciona o item à queueList, obtem o getLast().getIndex() e inclui o valor ao indexQueue do TrackItem;\r\n- Após iterar, enviar os objetos da queueList ao Receiver usando loadPlaylist(). Não dar playVideo().\r\n- Criar a queueListView, adicionando os itens da queueList;\r\n- Anexar a queueListView ao Fragment de lista de reprodução.\r\n- Ao clicar num objeto de uma ListView inicial, verificar se a lista atual do Spotify é a mesma que está em execução, usando o playlistId. Se não houver QueueList, criá-la.\r\n- Se for a mesma lista, enviar ao sender apenas um playVideoAt(), usando o queueIndex, e atualizar a QueueList;\r\n- Se for outra lista, recriar a QueueList."}}