Skip to main content
Known Participant
November 14, 2012
Question

iOs video capture won't play back

  • November 14, 2012
  • 1 reply
  • 555 views

Sheesh, I have been scratching my head over this one for two days now.

I launch the camera on an ipad 2 using CameraUI (MediaType.VIDEO) and I record some video no problems.

Now, when I click the "use" button on the preview screen, my Flash app fires the necessary events and I can trace the path to the .MOV file as it should.

I then use a Video() , Netconnection and Netstream to try and playback that newly captured video.. but it's not playing. I tried setting render mode to GPU and AdHoc deployment as I read elsewhere.. still no video.

Here;s the part where I try and display the video:

[as3]

video = new Video();

addChild(video);

video.width = 640;

video.height = 480;

var conn:NetConnection = new NetConnection();

conn.connect(null);

//attach a stream  to the video-object

var stream:NetStream = new NetStream(conn);

video.attachNetStream(stream);

stream.client = new MobileClient();

//play the stream

stream.play(media); // media comes from MediaPromise -> media.file.url

[/as3]

Funny enough, it traces out the duration of the video, some weird width and height numbers but says that framerate is undefined. I've seriously looked everywhere for this answer.. even in Flash iOS Apps Cookbook. It just won't play back.

Also, I can't use StageVideo as I need this video to be playing inside of aother movieclips where I need them.

Any advice would be really great.

This topic has been closed for replies.

1 reply

RiaanPAuthor
Known Participant
November 15, 2012

I managed to get hold of the temporary .MOV file that the ipad saves when I've captured the video. It is H264 encoded with AAC audio.

I think I'll try and bundle the video file and see if I can play that when it it not in the TMP directory... possibly I may have to make a copy of the TMP file somewhere where the app can read it...