{"action":"created","issue":{"url":"https://api.github.com/repos/jvcleave/ofxOMXPlayer/issues/99","repository_url":"https://api.github.com/repos/jvcleave/ofxOMXPlayer","labels_url":"https://api.github.com/repos/jvcleave/ofxOMXPlayer/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/jvcleave/ofxOMXPlayer/issues/99/comments","events_url":"https://api.github.com/repos/jvcleave/ofxOMXPlayer/issues/99/events","html_url":"https://github.com/jvcleave/ofxOMXPlayer/issues/99","id":194848492,"number":99,"title":"seekToTimeInSeconds and looping","user":{"login":"smarques","id":137272,"avatar_url":"https://avatars.githubusercontent.com/u/137272?v=3","gravatar_id":"","url":"https://api.github.com/users/smarques","html_url":"https://github.com/smarques","followers_url":"https://api.github.com/users/smarques/followers","following_url":"https://api.github.com/users/smarques/following{/other_user}","gists_url":"https://api.github.com/users/smarques/gists{/gist_id}","starred_url":"https://api.github.com/users/smarques/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smarques/subscriptions","organizations_url":"https://api.github.com/users/smarques/orgs","repos_url":"https://api.github.com/users/smarques/repos","events_url":"https://api.github.com/users/smarques/events{/privacy}","received_events_url":"https://api.github.com/users/smarques/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-11T18:50:19Z","updated_at":"2016-12-11T19:06:54Z","closed_at":null,"body":"I am a bit lost, I will try to explain what I am trying to do and maybe you can give me a hint.\r\nWhat I need is to control video speed and direction using a sensor.\r\nJust imagine one of those pre-cinema boxes where you would rotate a handle that would turn a sequence of images giving the illusion of animation.\r\nI am trying to reproduce the effect with video.\r\nI know I could use an ImageArrayLoader of some kind, but then I think on the raspberry I would have memory problems if the images are big, and it might not be very fluid.\r\n\r\nMy solution for now is to have two videos, one of which is the exact copy of the other, but reversed.\r\nMy idea was to have two players and switch from one or the other according to the direction.\r\nWhich works fine. I can set speed on each player and I am almost there.\r\n\r\nMy problem is, when the direction changes I need to move the reversed video to the corresponding frame where the forward video has stopped and start playing from there.\r\nAt this point perfect clock sync is not really important.\r\nWhat would be nice would be to be able to do something like:\r\n\r\n`backwardPlayer.setCurrentFrame(totalFrames - forwardPlayer.getCurrentFrame())`\r\n\r\nDo you think that would be possibile? Or am I missing a more obvious solution?\r\n\r\nI tried using seekToTimeInSeconds but that seems to reload the video and reset the looping so that the loop now starts always at whatever time was seekd, while I only need to move the 'cursor' there.\r\n\r\nThank so much in advance\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jvcleave/ofxOMXPlayer/issues/comments/266300527","html_url":"https://github.com/jvcleave/ofxOMXPlayer/issues/99#issuecomment-266300527","issue_url":"https://api.github.com/repos/jvcleave/ofxOMXPlayer/issues/99","id":266300527,"user":{"login":"jvcleave","id":150037,"avatar_url":"https://avatars.githubusercontent.com/u/150037?v=3","gravatar_id":"","url":"https://api.github.com/users/jvcleave","html_url":"https://github.com/jvcleave","followers_url":"https://api.github.com/users/jvcleave/followers","following_url":"https://api.github.com/users/jvcleave/following{/other_user}","gists_url":"https://api.github.com/users/jvcleave/gists{/gist_id}","starred_url":"https://api.github.com/users/jvcleave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvcleave/subscriptions","organizations_url":"https://api.github.com/users/jvcleave/orgs","repos_url":"https://api.github.com/users/jvcleave/repos","events_url":"https://api.github.com/users/jvcleave/events{/privacy}","received_events_url":"https://api.github.com/users/jvcleave/received_events","type":"User","site_admin":false},"created_at":"2016-12-11T19:06:54Z","updated_at":"2016-12-11T19:06:54Z","body":"I was working on a seekToFrame method that is in the develop-filters branch\r\n\r\nhowever that is the last time I have messed with it and was trying to solve some other issues and may have created new ones\r\n\r\nhttps://github.com/jvcleave/ofxOMXPlayer/blob/develop-filters/src/ofxOMXPlayer.h#L57"}}
{"actor":{"display_login":"jvcleave"}}