{"action":"created","issue":{"url":"https://api.github.com/repos/popcornmix/omxplayer/issues/308","labels_url":"https://api.github.com/repos/popcornmix/omxplayer/issues/308/labels{/name}","comments_url":"https://api.github.com/repos/popcornmix/omxplayer/issues/308/comments","events_url":"https://api.github.com/repos/popcornmix/omxplayer/issues/308/events","html_url":"https://github.com/popcornmix/omxplayer/issues/308","id":56277570,"number":308,"title":"Next/Previous Video","user":{"login":"OMID-313","id":10815609,"avatar_url":"https://avatars.githubusercontent.com/u/10815609?v=3","gravatar_id":"","url":"https://api.github.com/users/OMID-313","html_url":"https://github.com/OMID-313","followers_url":"https://api.github.com/users/OMID-313/followers","following_url":"https://api.github.com/users/OMID-313/following{/other_user}","gists_url":"https://api.github.com/users/OMID-313/gists{/gist_id}","starred_url":"https://api.github.com/users/OMID-313/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OMID-313/subscriptions","organizations_url":"https://api.github.com/users/OMID-313/orgs","repos_url":"https://api.github.com/users/OMID-313/repos","events_url":"https://api.github.com/users/OMID-313/events{/privacy}","received_events_url":"https://api.github.com/users/OMID-313/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-02T18:57:24Z","updated_at":"2015-02-02T22:10:37Z","closed_at":null,"body":"Hi all,\r\n\r\nI'm using dbuscontrol.sh integrated with LIRC to control the raspberry Pi B+ via an IR remote controller.\r\nI have several video files in a specific folder, and I want to play them in loop. I use some code like this link (http://stackoverflow.com/questions/16470795/bash-script-to-loop-through-all-videos-in-a-folder-on-raspbian-wheezy), so the omxplayer plays them in loop perfectly.\r\n\r\nAlthough the loop works flawlessly, I want to have the control to jump to the next/previous/specific video when I want. There are some options like Next/Previous Audio, Chapter, Subtitle, etc. but it's surprising that there is no command/shortcut for next/previous video. Or maybe I can't find it.\r\n\r\nMy issues:\r\n1. Is this way of playing omxplayer in loop optimum? I mean, are there any other better alternatives?\r\n2. How can I tell to omxplayer to jump to the next/previous video?\r\n3. I want to make use of the remote controller's numeric buttons (ch0 ~ ch9). So how can I tell omxplayer to play e.g. video_5 when I press Button_5 on my remote controller? Is there anyway that omxplayer can assign IDs to the videos in a specific folder?\r\n\r\nThank you very much for your time and support :)"},"comment":{"url":"https://api.github.com/repos/popcornmix/omxplayer/issues/comments/72549094","html_url":"https://github.com/popcornmix/omxplayer/issues/308#issuecomment-72549094","issue_url":"https://api.github.com/repos/popcornmix/omxplayer/issues/308","id":72549094,"user":{"login":"OMID-313","id":10815609,"avatar_url":"https://avatars.githubusercontent.com/u/10815609?v=3","gravatar_id":"","url":"https://api.github.com/users/OMID-313","html_url":"https://github.com/OMID-313","followers_url":"https://api.github.com/users/OMID-313/followers","following_url":"https://api.github.com/users/OMID-313/following{/other_user}","gists_url":"https://api.github.com/users/OMID-313/gists{/gist_id}","starred_url":"https://api.github.com/users/OMID-313/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OMID-313/subscriptions","organizations_url":"https://api.github.com/users/OMID-313/orgs","repos_url":"https://api.github.com/users/OMID-313/repos","events_url":"https://api.github.com/users/OMID-313/events{/privacy}","received_events_url":"https://api.github.com/users/OMID-313/received_events","type":"User","site_admin":false},"created_at":"2015-02-02T22:10:37Z","updated_at":"2015-02-02T22:10:37Z","body":"Thanks @subogero for your quick reply.\r\n\r\nOne more question:\r\nWould you please describe what the second step is? And how should I do that? What exactly should I enter in the command terminal?\r\n\r\nSorry for my stupid questions!"}}