Log in or register to post comments

VideoPlayback on remote video

October 11, 2013 - 9:49am #1

Hi,

I'm currently using the VideoPlayback demo code. I have set the EXAMPLE_CODE_REMOTE_FILE macro in order to run this code:

#ifdef EXAMPLE_CODE_REMOTE_FILE

    // Load a remote file for playback

    for (int i = 0; i < NUM_VIDEO_TARGETS; ++i) {

        VideoPlayerHelper* player = [arView getVideoPlayerHelper:i];

        NSLog(@"load remote file");

        [player load:@"http://download.wavetlan.com/SVV/Media/HTTP/H264/Other_Media/H264_test7_voiceclip_mp4_480x360.mp4" playImmediately:NO fromPosition:VIDEO_PLAYBACK_CURRENT_POSITION];

    }

the file is loaded but only the audio is played. Any idea about what could be the problem?

thanks a lot

VideoPlayback on remote video

October 14, 2013 - 7:21am #8

FYI the sample uses a movie encoded using iMovie 09 if that's any help.

N

VideoPlayback on remote video

October 14, 2013 - 6:11am #7

Thanks for your answer,

probably it was just a misunderstanding. At the moment I'm trying different test with several encoding system for MP4. Till now, no luck.
Here the page: http://download.wavetlan.com/SVV/Media/HTTP/http-mp4.htm

Hope somebody will find it useful.

VideoPlayback on remote video

October 14, 2013 - 5:21am #6

 instead the same video works in local but not in remote

You did not mention this in the original post, which is the reason I suggested writing some test code to get it to play at all.

Essentially the VP application is simply a sample of how it is possible to get video playing.  By default for local video it can be decoded and played on a texture, however it is more coplex to do this remotely, which is why the standard sample only plays it full screen.

Remote videos can fail to play properly for a number of reasons, bandwidth, server, codec etc. and each case can be different.  One thing you could do is to set up a set of test videos, some your own and some others to try and track down where the problem may be.

 

HTH

N

 

 

VideoPlayback on remote video

October 14, 2013 - 4:52am #5

Hi, 

the point is that if the codec was the real problem the play wouldn't work in both cases, instead the same video works in local but not in remote. That's why I was wondering if anybody stumbling upon the same problem had some code to integrate. Not a  problem, if I will find it, I will post myself. Maybe it's trivial for you but I'm sure somebody without the same level of expertise will appreciate.

Thanks for your useful answer anyway.

VideoPlayback on remote video

October 14, 2013 - 3:24am #4

Could you please be more specific and provide some test code?

Really, this is up to you.  Search the web and/or search the Apple documentation.

It should be within your capabilities to find this info and build a small test app, hopefully with little more than copy and paste.

thanks,

N

 

 

VideoPlayback on remote video

October 14, 2013 - 3:03am #3

Hi,

thanks for your answer. Could you please be more specific and provide some test code?

 

thanks a lot

VideoPlayback on remote video

October 11, 2013 - 10:01am #2

The video player uses the underlying iOS player, so if this supports the video then great, if not then the codec perhaps is not suitable.

Try playing it with some native code as a test.

 

N

Log in or register to post comments