How to play 360º video in iPhone SDK
Asked Answered
S

4

5

Before downvote please read the question, I also see other question but doesn't find useful.

I have a requirement in my current app, where i needed to play 360º video (Like Panorama). one app on app store doing same Name "GoPano"

http://itunes.apple.com/ke/app/gopano/id459463884?mt=8

Soniasonic answered 16/5, 2012 at 11:53 Comment(0)
S
0

I found that it is embeded player of GoPano. what they done is play video from Java script and with flex.

Soniasonic answered 10/9, 2012 at 10:50 Comment(2)
Do you mean to say www.panframe.com are using goPano video player ?Martel
No my mean to say this app uses itunes.apple.com/ke/app/gopano/id459463884?mt=8.Soniasonic
F
16

I created a framework over the last 2.5 years, which plays back 360° panoramic video playback on iOS, similar to your requirements. It is compatible with versions 4.3 up to 6.x at this point.

You can download it at www.panframe.com and try if this is what you are looking for.

The framework supplies a UIView that you can easily add as a child and an asset class which you can connect to the view and which will take care of playing spherical panoramic content. You can look at the interface I used.

You can use it like this dynamically for example in your UIViewController at runtime:

    // initialize an PFView
    PFView pfView = [PFObjectFactory viewWithFrame:[self.view bounds]];
    pfView.autoresizingMask = (UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight);

    // set the appropriate navigation mode PFView
    [pfView setNavigationMode:PF_NAVIGATION_MOTION];

    // add the view to the current stack of views
    [self.view addSubview:pfView];
    [self.view sendSubviewToBack:pfView];

And when you want to play an 360 video asset (from a file URL) you implement the following:

    PFView pfAsset = [PFObjectFactory assetFromUrl:[NSURL fileURLWithPath:filePath] observer:(PFAssetObserver*)self];

    if ([pfAsset getStatus] != PF_ASSET_ERROR)
    {
        [pfView displayAsset:pfAsset];
        [pfAsset play];
    }

Update: In case some one wants to use it in cordova apps, you can find plugin here

Fenderson answered 22/11, 2012 at 7:0 Comment(2)
Welcome to Stack Overflow! Thanks for posting your answer! Please be sure to read the FAQ on Self-Promotion carefully. Also note that it is required that you post a disclaimer every time you link to your own site/product.Tideway
@Ron Bakker can you please give suggestion for continue play video with their state in the panframe demo?Ginter
P
9

I found these repos useful when creating my own video 360° player:


The last one is mine, and here is it's description.

Punic answered 7/3, 2016 at 14:31 Comment(1)
I put together another pretty basic SceneKit implementation which can be found here: github.com/alfiehanssen/ThreeSixtyPlayerEfrenefron
D
1

Google recently released the CardboardSDK for IOS, which supports 360 video playing.

https://developers.google.com/cardboard/ios/

Derron answered 21/4, 2016 at 22:18 Comment(0)
S
0

I found that it is embeded player of GoPano. what they done is play video from Java script and with flex.

Soniasonic answered 10/9, 2012 at 10:50 Comment(2)
Do you mean to say www.panframe.com are using goPano video player ?Martel
No my mean to say this app uses itunes.apple.com/ke/app/gopano/id459463884?mt=8.Soniasonic

© 2022 - 2024 — McMap. All rights reserved.