{ "id": "61592", "key": "TIMOB-960", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "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": [ { "id": "11224", "name": "Release 1.4.0", "archived": true, "released": true, "releaseDate": "2010-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:54:48.000+0000", "created": "2011-04-15T02:40:18.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "ios", "iphone", "php", "urls", "videoplayer" ], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:54:48.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

Something appears to have recently changed in how the\nvideoPlayer works.

\n

I'm often seeing this output:

\n
\n[INFO] VIDEO!!http://phreadz.com/service/encoder.php?g=5LPOKP754&iph=1\n[WARN] Invalid type passed to function. Tried to play movie player without a valid url, media, or contentURL property in -TiMediaVideoPlayerProxy play:
\n
\n\n\n
\n[INFO] VIDEO!!http://api.12seconds.tv/videosrv/389492.mp4\n[WARN] Invalid type passed to function. Tried to play movie player without a valid url, media, or contentURL property in -TiMediaVideoPlayerProxy play:
\n
\n

As you can see the url I'm sending it from phreadz needs to be a\nphp file.
\nThis provides privacy controls and mp4 encoding triggers, if\nneeded, and the resulting output is always an MP4 url, with the\ncorrect video/mp4 mimetype set in the header. This all worked fine\nbefore the recent changes to TiMediaVideoPlayerProxy.m

\n

Quite a few providers of mp4 files which Phreadz supports do so\nthrough redirects and proxies on their servers, but do end up\nproviding the correct mimetype and a compatible video file.

\n

I'm calling the videoPlayer like this:

\n
\n                        Ti.API.info('VIDEO!!'+media_url);
\n
\n\n\n
\n
\n
\n                    var activeMovie = Titanium.Media.createVideoPlayer({\n                        url:media_url,\n                        backgroundColor:'#111',\n                        movieControlMode:Titanium.Media.VIDEO_CONTROL_DEFAULT,\n                        scalingMode:Titanium.Media.VIDEO_SCALING_MODE_FILL\n                    });\n
\n
\n\n\n
\nactiveMovie.play();\n
\n

I did try setting mediaTypes or sourceTypes to the video\nconstants too.

\n

This is very urgent for a few apps I'm building for some vip\nclients.

{html}", "attachment": [], "flagged": false, "summary": "videoPlayer issue with 'proxied' urls (php etc.) - quite urgent", "creator": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "environment": null, "comment": { "comments": [ { "id": "124467", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

resolved.

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:40:19.000+0000", "updated": "2011-04-15T02:40:19.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }