Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-960] videoPlayer issue with 'proxied' urls (php etc.) - quite urgent

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:54:48.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.4.0
ComponentsiOS
Labelsios, iphone, php, urls, videoplayer
Reporterkosso
AssigneeReggie Seagraves
Created2011-04-15T02:40:18.000+0000
Updated2011-04-17T01:54:48.000+0000

Description

Something appears to have recently changed in how the videoPlayer works.

I'm often seeing this output:

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


[INFO] VIDEO!!http://api.12seconds.tv/videosrv/389492.mp4 [WARN] Invalid type passed to function. Tried to play movie player without a valid url, media, or contentURL property in -TiMediaVideoPlayerProxy play:

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

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

I'm calling the videoPlayer like this:

                        Ti.API.info('VIDEO!!'+media_url);

                    var activeMovie = Titanium.Media.createVideoPlayer({
                        url:media_url,
                        backgroundColor:'#111',
                        movieControlMode:Titanium.Media.VIDEO_CONTROL_DEFAULT,
                        scalingMode:Titanium.Media.VIDEO_SCALING_MODE_FILL
                    });



activeMovie.play();

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

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

Comments

  1. Jeff Haynie 2011-04-15

    resolved.

JSON Source