Cross Device Resume View (Deprecated)

You can use the following code sample to work with Cross Device Resume.

Important: Ooyala Player V3 is deprecated and is scheduled to be disabled on 2018-01-31. After that date, Player V3 will no longer play your video or audio content. Customers still using Player V3 need to migrate to Player V4 (see Migrating from Player V3 and Player Migration FAQ).

The code sample includes multiple client web pages or views illustrating each feature and a seventh code sample that shows all the features working in combination. To implement each client page, you will need all the standard elements that you normally use such as your API Key, pcode, and so forth.

Where to Find the Code

To explore this code sample view in GitHub, go to:


Cross Device Resume (XDR) Client Code

The cross_resume.php file code implements a client-side version of Ooyala Cross Device Resume (XDR) as a sample. We have implemented a simple version of XDR so you can see how it works. Cross-Device Resume, of course, is designed to work with our mobile SDKs and from the desktop or mobile device to an appropriate TV type. For more information about XDR, see “ "Player for Cross Device Resume."
Note: Before you work with any feature, including Ooyala Cross Device Resume (XDR), you need to make sure the feature is enabled. Contact your Customer Success Manager to set this up. If you do not have XDR enabled, you can make a request but the server will give you an empty response. You may not be able to quickly debug the empty response as there is no specific message indicating that you have not enabled the feature.  Make sure you have the feature enabled before you start.

How the XDR Sample Works

In implementing XDR for this sample, we limited the code to perform XDR from desktop to desktop for simplicity.  XDR supports start and resume across mobile devices, desktops,  and XTV enabled TVs. For more information about XDR, see “ Player for Cross Device Resume.

In this XDR client sample, we pass the playhead time from the PHP server to var playheadTime. We create the player with OO.Player.create () function and set the embedToken parameter and pass the playheadTime to the initialTime parameter.

해당 내용이 도움 되었습니까?