Changing Discovery Options (Deprecated)

After installing the sample, you can change Discovery settings.

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).

To change the Discovery settings:

  1. Open the ooyala.php library file.
  2. To change the related video settings, locate the get_related_videos function. Then, make any changes to the parameters variable. For example:
          $parameters = array("limit" => "5");
         

    For a complete list of parameters, refer to the Discovery documentation at Discovery REST API Reference.

  3. To change the trending settings, locate the get_trending_videos function. Then, make any changes to the parameters variable. For example:
    $parameters = array('countries' => 'all',
                  'time' => 'now',
                  'window' => 'day',
                  "limit" => 5 );
         

    For a complete list of parameters, refer to the Discovery documentation at Discovery REST API Reference.

  4. Save the file and restart the server.

Was this article helpful?