JavaZone this year had for the first time two mobile applications showing the programme. One for android and one for iPhone. There is a wish to make the videos available both via the java.no websites and also in the mobile applications.
I'm the developer of the iPhone application. I don't know too much about the android one - but - I do know that if I can get the streams to play on an iOS device then the android app
will be able to use the same stream.
3G vs. WIFIThis point was in the original mail but is more a wish than something I expect to get done in the near future ;)Apple sets a restriction on streaming video. If a video is longer than 10 mins it requires use of Live HTTP Streaming:
Apple have sent this in to IETF but that's about it so far:
http://tools.ietf.org/html/draft-pantos-http-live-streaming-04I do not believe that this is currently supported in TCS - but for iOS applications in future this would be a fantastic addition.
For JZ 2010 I can go forward with WIFI only but in future it would be really nice to be able to stream with this technology.
Video streamingNormal video can be streamed over WIFI - but again with certain restrictions. From the MediaPlayer framework documentation:
This class plays any movie or audio file supported in iOS. This includes both streamed content and fixed-length files. For movie files, this typically means files with the extensions .mov, .mp4, .mpv, and .3gp and using one of the following compression standards:
* H.264 Baseline Profile Level 3.0 video, up to 640 x 480 at 30 fps. (The Baseline profile does not support B frames.)
* MPEG-4 Part 2 video (Simple Profile)
In addition - the iOS devices will only start playing before downloading is complete if the video is set up as "fast start"
JavaZone have two TCS servers currently. One (tcs.java.no) has video from JZ 2009 and streaming.java.no is being set up for JZ 2010.
I have successfully played video from the older installation on tcs.java.no when the video is locally downloaded and in the app. However - trying to play it from the TCS server directly fails - and testing in the iOS safari application gives "The server is not correctly configured".
I'm currently pulling the video links from the RSS feed - for testing I have used http://tcs.java.no/tcs/download/0B6A2F03-53AD-4A13-A3D5-66D4E7C5C7E9.mp4Looking at the HTTP headers for this I see:
Content-Type: application/force-download
Content-Disposition: attachment; filename="For å løpe fort så må du ha balanse!.mp4"
Content-Transfer-Encoding: binary
Content-Length: 15593875
I believe the iPhone is expecting at least the mp4 content type (video/mp4) and probably a content disposition of inline.
Does TCS provide a method to obtain the mp4 content with the correct headers for stream playing without using the player javascript in TCS?