{"action":"created","issue":{"url":"https://api.github.com/repos/carlonluca/pi/issues/42","labels_url":"https://api.github.com/repos/carlonluca/pi/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/carlonluca/pi/issues/42/comments","events_url":"https://api.github.com/repos/carlonluca/pi/issues/42/events","html_url":"https://github.com/carlonluca/pi/issues/42","id":112244890,"number":42,"title":"Path solve error for explicit local files","user":{"login":"Nightmare204","id":4441252,"avatar_url":"https://avatars.githubusercontent.com/u/4441252?v=3","gravatar_id":"","url":"https://api.github.com/users/Nightmare204","html_url":"https://github.com/Nightmare204","followers_url":"https://api.github.com/users/Nightmare204/followers","following_url":"https://api.github.com/users/Nightmare204/following{/other_user}","gists_url":"https://api.github.com/users/Nightmare204/gists{/gist_id}","starred_url":"https://api.github.com/users/Nightmare204/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nightmare204/subscriptions","organizations_url":"https://api.github.com/users/Nightmare204/orgs","repos_url":"https://api.github.com/users/Nightmare204/repos","events_url":"https://api.github.com/users/Nightmare204/events{/privacy}","received_events_url":"https://api.github.com/users/Nightmare204/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-19T22:20:12Z","updated_at":"2015-10-19T22:36:04Z","closed_at":"2015-10-19T22:34:40Z","body":"I'm working on a project with my qml files in a qrc, but the video files are local.\r\nThat's why I need to pass the source strings as \"file://home/pi/Videos/.......\"\r\n\r\nThe problem is that in this case the path is trimmed as it can be seen in the next debug output\r\n```\r\n17:09:46.587 DEBUG: Entering: virtual void OpenMAXILPlayerControl::setMedia(const QMediaContent&, QIODevice*).\r\n17:09:46.587 DEBUG: [0x6d13b470] Media: file://home/pi/Videos/720p_ci24.mov.\r\n17:09:46.588 DEBUG: [0x6d13b470] setMedia thread is: 0x554758.\r\n17:09:46.588 VERBOSE: Media status changing from MEDIA_STATUS_NO_MEDIA to MEDIA_STATUS_LOADING...\r\n17:09:46.588 VERBOSE: Entering: bool OMX_MediaProcessor::setFilenameInt(const QString&).\r\n17:09:46.589 DEBUG: [0x6d13b470] virtual void OpenMAXILPlayerControl::play()\r\n17:09:46.589 VERBOSE: Opening file://home/pi/Videos/720p_ci24.mov...\r\n17:09:46.590 DEBUG: [0x6d13b470] virtual void OpenMAXILPlayerControl::play()\r\n17:09:46.609 ERROR: Failed to open source /pi/Videos/720p_ci24.mov.\r\n17:09:46.609 VERBOSE: Media status changing from MEDIA_STATUS_LOADING to MEDIA_STATUS_INVALID_MEDIA...\r\n```\r\n\r\nLooking into the sources I found at omx_mediaprocessor.cpp:\r\n```\r\n   // It seems that omxplayer expects path and not local URIs.\r\n   QUrl url(filename);\r\n   if (url.isLocalFile() && filename.startsWith(\"file://\"))\r\n      filename = url.path();\r\n```\r\n\r\nTo get the correct path I have to double the home directory as follows:\r\n```\r\n\"file://home/home/pi/Videos/720p_ci24.mov\"\r\n```\r\n\r\nIt seems to be a minor bug"},"comment":{"url":"https://api.github.com/repos/carlonluca/pi/issues/comments/149367017","html_url":"https://github.com/carlonluca/pi/issues/42#issuecomment-149367017","issue_url":"https://api.github.com/repos/carlonluca/pi/issues/42","id":149367017,"user":{"login":"Nightmare204","id":4441252,"avatar_url":"https://avatars.githubusercontent.com/u/4441252?v=3","gravatar_id":"","url":"https://api.github.com/users/Nightmare204","html_url":"https://github.com/Nightmare204","followers_url":"https://api.github.com/users/Nightmare204/followers","following_url":"https://api.github.com/users/Nightmare204/following{/other_user}","gists_url":"https://api.github.com/users/Nightmare204/gists{/gist_id}","starred_url":"https://api.github.com/users/Nightmare204/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nightmare204/subscriptions","organizations_url":"https://api.github.com/users/Nightmare204/orgs","repos_url":"https://api.github.com/users/Nightmare204/repos","events_url":"https://api.github.com/users/Nightmare204/events{/privacy}","received_events_url":"https://api.github.com/users/Nightmare204/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T22:36:04Z","updated_at":"2015-10-19T22:36:04Z","body":"I'm sorry, my bad!"}}