Changing Discovery Options (Deprecated)

After installing the sample, you can change Discovery settings.

Note: Ooyala Player V3 has been deprecated and is scheduled to be disabled. For details and alternatives, see the OVP Release Notes.

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?