Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-960

videoPlayer issue with 'proxied' urls (php etc.) - quite urgent

    Details

      Description

      {html}<div><p>Something appears to have recently changed in how the
      videoPlayer works.</p>
      <p>I'm often seeing this output:<br></p>
      <pre>
      <code>[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 -<a>TiMediaVideoPlayerProxy play:</a><br>
      <br>


      <br>
      [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 -<a>TiMediaVideoPlayerProxy play:</a></code>
      </pre>
      <p>As you can see the url I'm sending it from phreadz needs to be a
      php file.<br>
      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</p>
      <p>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.</p>
      <p>I'm calling the videoPlayer like this:<br></p>
      <pre>
      <code> Ti.API.info('VIDEO!!'+media_url);<br>
      <br>


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


      <br>
      activeMovie.play();
      </pre>
      <p>I did try setting mediaTypes or sourceTypes to the video
      constants too.</p>
      <p>This is very urgent for a few apps I'm building for some vip
      clients.</p></div>{html}

        Attachments

          Activity

            People

            • Assignee:
              rseagraves Reggie Seagraves
              Reporter:
              kosso kosso
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-919
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration