Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

HTTP Live Streaming to iPad/iPhone

Hi there,

Is Apple's HTTP Live Streaming (for streaming video) supported by Titanium? I've checked the docs, which are a little sparse, and in the forum but I haven't seen it mentioned apart from here http://developer.appcelerator.com/question/60801/app-store-approval-tips.

We're interested because it's a prerequisite for iPhone/iPad applicatations intended to play content longer than 10 minutes (or 5MB data), and also we'd like to make use of the encryption.

Thanks,

Toby

— asked September 20th 2010 by Toby Mathews
  • ipad
  • iphone
  • streaming
  • video
0 Comments

4 Answers

  • To answer my own question, pointing setUrl (of the video player) at a sample movie set up to test HTTP live streaming (http://devimages.apple.com/iphone/samples/bipbopgear2.html in this case) seems to work just fine, in the simulator at least.

    — answered September 21st 2010 by Toby Mathews
    permalink
    0 Comments
  • I was about to ask the same question when I realized that Apple prefer you use the HTML5 view port to do HTTP Streaming and since that is just HTML in a web view I would think Titanium already supports it. You also get a better user experience over the native player .. (why I have no idea but you get a nice loading bar etc and user notifications)

    — answered January 27th 2011 by Craig Williams
    permalink
    1 Comment
    • Uh, the native player actually works really well. Plus, it is easier to add event listeners to handle the playbackstate to fix any issues during the stream.

      — commented February 8th 2011 by John Welch
  • What api function did you use for this? The setURL that is?

    Thanks,

    — answered February 8th 2011 by Anthony james
    permalink
    0 Comments
  • What api function did you use for this? The setURL that is?

    Thanks,

    — answered February 8th 2011 by Anthony james
    permalink
    1 Comment
    • I'm not sure if this is deprecated, but this is what I use, and has been working for 5 months in the App Store:

      var contentURL = Ti.App.Properties.getString("videoURL");

      var activeMovie = Titanium.Media.createVideoPlayer({
      contentURL: contentURL,
      backgroundColor:'#3c3c3c',
      scalingMode:Titanium.Media.VIDEO_SCALING_MODE_FILL
      });

      — commented February 8th 2011 by John Welch
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.