{ "id": "118488", "key": "TIMOB-14880", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2013-08-14T11:08:27.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "supportTeam" ], "versions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:25.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h2. Description\r\n\r\nWhen a video url is not available, the video player just shows a spinning activity indicator. We need a way to check if the media is available and to show an error if it is not.\r\n\r\nh2. Test case\r\n{code}\r\nvar win = Titanium.UI.createWindow({backgroundColor:\"black\"});\r\n \r\nvar activeMovie = Titanium.Media.createVideoPlayer({\r\n url: url\r\n});\r\n \r\nwin.add(activeMovie);\r\n \r\nwin.open();\r\n\r\n// NEED AN EVENT TO GET THE 404 ERROR\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "iOS: Detect if a remote media url is valid in Ti.Media.videoPlayer", "creator": { "name": "rsharma", "key": "rsharma", "displayName": "Rupesh Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rsharma", "key": "rsharma", "displayName": "Rupesh Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "266865", "author": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "body": "As a workaround, a timeout can be set. The timeout can be canceled by the 'load' event.\n\n{code}\nvar timeout = setTimeout(function() {\n\talert(\"TIMEOUT ERROR!\");\n}, 10000);\n\t\nactiveMovie.addEventListener('load', function(e){\n\tclearTimeout(timeout);\n\ttimeout = null;\n});\n{code}", "updateAuthor": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-08-16T14:09:51.000+0000", "updated": "2013-08-16T14:09:51.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }