Log in or register to post comments

Playing remote videos

November 19, 2014 - 12:29pm #5

Has anyone here successfully played a remote video under recent iOS?

I am using the method that you can find by looking for "Playing video with native player".

I am using this movie file for data: http://clips.vorwaerts-gmbh.de/VfE_html5.mp4

When it starts, I can see some sort of movie controlls in the corner of the screen, which then fade out. The movie plays and I can hear the sound, but there is no video.

 

So, does *anyone* have this actually working?

If so, can you try it with my sample video and see what happens?

Playing remote videos

November 24, 2014 - 3:46pm #4

Playing remote videos

November 25, 2014 - 6:24am #3

I am not able to play that video either. The problem is identical with either source video:

1) I aim at my target and the play button appears as expected

2) I tap the play button and the screen goes black

3) playback controls appear in the upper left corner of the screen

4) playback begins, but only the sound, there is no video

5) none of the controls actually do anything

 

Note that on-texture playback works fine. This has something to do with the full-screen player, and appears to have something to do with the screen layout of the player components. It seems they were positioned using pre-iOS6 layout systems, and these no longer work on modern builds. That may be a red herring though, that's nothing more than my gut feeling.

Playing remote videos

December 1, 2014 - 8:38pm #2

Are you working with the native iOS VideoPlayback sample app or the Unity one? Could you post a screenshot of the controls appearing in the upper left corner?

Playing remote videos

December 29, 2014 - 11:53am #1

I am using the native iOS sample app. Screen snap attached.

In VideoPlayerHelper.mm I have tried...

[_moviePlayer.view setTranslatesAutoresizingMaskIntoConstraints:NO];

Setting it to YES causes a bunch of debugging to appear in the console because it's using the old layout system. If you set it to NO, as here, makes the debugging information disappear, but the problem with the squished up controls remains.
 
 
AttachmentSize
Image icon IMG_0967.PNG13.04 KB
Log in or register to post comments