return m3u8 content to the MediaObject

For performance reasons I am calling the m3u8 URL in PlayVideo to then create the VideoClipObject using the m3u8 URL.

If I extract the resolution from the m3u8 file at this stage is it possible to “return” that information back to the MediaObject?

@xxNoxiouSxx said:
For performance reasons I am calling the m3u8 URL in PlayVideo to then create the VideoClipObject using the m3u8 URL.

If I extract the resolution from the m3u8 file at this stage is it possible to “return” that information back to the MediaObject?

You can set the @deferred decorator on MediaObjectsForURL. That way you can make http requests inside MediaObjectsForURL without slowing down the loading of long lists with videos. Calls to MediaObjectsForURL are postponed until the pre-play screen is loaded. The Comedy Central URL Service is an example of a service using this method (in this case it’s not done for the resolution, but for the variable number of “parts” a video can contain, but this could work for grabbing resolution info as well).