If you don't find an answer, please click here to post your question.
Reply
Occasional Contributor
Posts: 3
Registered: ‎04-02-2013
Accepted Solution

IOS video Playback

Hi all, 

 

Fairly new to IOS dev so excuse any ignorance.

 

We work with a cms in which we feed Ooyala video into, this system outputs an XML feed which *MUST* be used as the data feed for the App i'm building.

 

I have parsed nodes successfully, and have a numbers of these displaying within my views and I have a static video working.

 

However the video feed within the xml is like such:

http://player.ooyala.com/player_v2.swf?embedCode=VibmpqYTqNQumJFokQbH918ZEdedovQT&keepEmbedCode=true...

 

I need to pass it a  direct link. i.e for testing i was using:

http://trailers.apple.com/movies/independent/holla2/holla2-tlr1_h480p.mov

 

Perhaps I am going about the SDK in the wrong way to what it's intended use is - interacting with backlot through the account ID's.

 

What i'm looking/hoping for is  a method call to which i can pass it the video ID i.e VibmpqYTqNQumJFokQbH918ZEdedovQT and have it return the hardlink to the correct video for IOS?

 

The closest i've found by description is:

- (OOVideo *) videoFromEmbedCode:(NSString *) embedCodewithCurrentItem:(OOVideo *) currentItem;

 

but am uncertain about its implementation/setup/purpose.

 

 

Any help/direction would be gratefully recieved

 

 


Accepted Solutions
Ooyalan
Posts: 31
Registered: ‎06-26-2012

Re: IOS video Playback

Hello

 

Ooyala does provide ways to get the encoded streams ( m3u8s files).

 

You can get this from an iPhone  MRSS. Example:

 

http://api.ooyala.com/syndication/m3u8_redirect?embed_code=M5MDBhOTp5fPrbDCalUD53cqy6e0lABF&embed_ty...

 

Or you can also get this via streams API. Example:

The result will provide all the encoded streams including the m3u8 like this;

 

{
"video_codec": "h264",
"muxing_format": "TS",
"average_video_bitrate": "316",
"audio_codec": "aac",
"audio_bitrate": "96",
"profile": "baseline",
"is_source": "false",
"stream_type": "abr",
"url": "http://player.ooyala.com/player/iphone/M5MDBhOTp5fPrbDCalUD53cqy6e0lABF.m3u8",
"video_height": "360",
"video_width": "640",
"file_size": "8010490"
},

 

I dont know if this works for you considering you must use the information from the xml from your cms. 

 

 

 

View solution in original post


All Replies
Ooyalan
Posts: 31
Registered: ‎06-26-2012

Re: IOS video Playback

Hello

 

Ooyala does provide ways to get the encoded streams ( m3u8s files).

 

You can get this from an iPhone  MRSS. Example:

 

http://api.ooyala.com/syndication/m3u8_redirect?embed_code=M5MDBhOTp5fPrbDCalUD53cqy6e0lABF&embed_ty...

 

Or you can also get this via streams API. Example:

The result will provide all the encoded streams including the m3u8 like this;

 

{
"video_codec": "h264",
"muxing_format": "TS",
"average_video_bitrate": "316",
"audio_codec": "aac",
"audio_bitrate": "96",
"profile": "baseline",
"is_source": "false",
"stream_type": "abr",
"url": "http://player.ooyala.com/player/iphone/M5MDBhOTp5fPrbDCalUD53cqy6e0lABF.m3u8",
"video_height": "360",
"video_width": "640",
"file_size": "8010490"
},

 

I dont know if this works for you considering you must use the information from the xml from your cms. 

 

 

 

Ooyalan
Posts: 31
Registered: ‎06-26-2012

Re: IOS video Playback

Forgot to include the API path.

The API path to get the streams is /v2/assets/video_id/streams
Advisor
Posts: 17
Registered: ‎08-10-2018

Re: IOS video Playback

it was working smooth on my iPad Pro when it was running on ios 10 however as I have updated to ios 11.3 whenever now I am opening the app it only loads a blank screen on the start up and crashes after a while automatically. How do I fix it? with regrads