{"action":"closed","issue":{"url":"https://api.github.com/repos/myflashlab/videoPlayer-ANE/issues/23","repository_url":"https://api.github.com/repos/myflashlab/videoPlayer-ANE","labels_url":"https://api.github.com/repos/myflashlab/videoPlayer-ANE/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/myflashlab/videoPlayer-ANE/issues/23/comments","events_url":"https://api.github.com/repos/myflashlab/videoPlayer-ANE/issues/23/events","html_url":"https://github.com/myflashlab/videoPlayer-ANE/issues/23","id":290196130,"node_id":"MDU6SXNzdWUyOTAxOTYxMzA=","number":23,"title":"android video issue","user":{"login":"wigginsray","id":5283134,"node_id":"MDQ6VXNlcjUyODMxMzQ=","avatar_url":"https://avatars1.githubusercontent.com/u/5283134?v=4","gravatar_id":"","url":"https://api.github.com/users/wigginsray","html_url":"https://github.com/wigginsray","followers_url":"https://api.github.com/users/wigginsray/followers","following_url":"https://api.github.com/users/wigginsray/following{/other_user}","gists_url":"https://api.github.com/users/wigginsray/gists{/gist_id}","starred_url":"https://api.github.com/users/wigginsray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wigginsray/subscriptions","organizations_url":"https://api.github.com/users/wigginsray/orgs","repos_url":"https://api.github.com/users/wigginsray/repos","events_url":"https://api.github.com/users/wigginsray/events{/privacy}","received_events_url":"https://api.github.com/users/wigginsray/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-01-20T14:29:09Z","updated_at":"2018-12-14T12:15:21Z","closed_at":"2018-12-14T12:15:21Z","author_association":"NONE","body":"Trying to play video - works fine for the \"ON_LINE\" version of the video. \r\n\r\nMy code checks to see if video is in the applicationStorageDirectory, if exists then play the local video. \r\nIn my test, the video is found\r\n\r\nDebugging it returns the nativepath.\r\n\"Playing Local Video:/data/user/0/air.com.xxxxxxx/com.xxxxxxx/Local Store/www/videos/Video-File.mp4\"\r\n\r\nOn the device the video player launches, but gives the following message:\r\n\"Failed to play video. An unknown error has occurred.\"\r\n\r\n\r\n\r\n\r\n```\r\n\r\n\t\tprivate function videoPlayLocalFile(videoName){\r\n\t\t\ttrace(\"Playing Local Video:\"+videoName.nativePath);\r\n\t\t\tvar _ex:VideoPlayer = new VideoPlayer();\r\n\t\t\t_ex.play(videoName.nativePath, VideoType.ON_SD_CARD);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tprivate function videoPlayRemoteFile(videoURL){\r\n\t\t\ttrace(\"Playing Remote Video:\"+videoURL);\r\n\t\t\tvar _ex:VideoPlayer = new VideoPlayer();\r\n\t\t\t_ex.play(videoURL, VideoType.ON_LINE);\r\n\t\t}\r\n\t\t\r\n\t\tprivate function videoPlayLocalOrWeb(videoName,videoURL){\r\n\t\t\tvar videoFileReference:File = File.applicationStorageDirectory.resolvePath(\"www/videos/\"+videoName);\r\n\t\t\tif (videoFileReference.exists){\r\n\t\t\t\tvideoPlayLocalFile(videoFileReference);\r\n\t\t\t}else{\r\n\t\t\t\tvideoPlayRemoteFile(videoURL);\r\n\t\t\t}\r\n\t\t}\r\n```"}}
{"actor":{"display_login":"myflashlab"}}