Advertisement
Guest User

Untitled

a guest
Aug 15th, 2017
73
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.19 KB | None
  1. <?php
  2. use Illuminate\Http\Request;
  3. use Kaltura\Client\Configuration as KalturaConfiguration;
  4. use Kaltura\Client\Client as KalturaClient;
  5. use Kaltura\Client\FilterPager as FilterPager;
  6. use Kaltura\Client\Enum\SessionType as KalturaSessionType;
  7. use Kaltura\Client\ApiException;
  8. use Kaltura\Client\ClientException;
  9. use Kaltura\Client\Type\MediaEntryFilter as KalturaMediaEntryFilter;
  10. use Kaltura\Client\Type\FilterPager as KalturaFilterPager;
  11. use Kaltura\Client\Enum\MediaType as KalturaMediaType;
  12. use Kaltura\Client\Type\PlaylistFilter as KalturaPlaylistFilter;
  13. class KalController extends Controller
  14. {
  15.     public function getLisMP(){
  16.  
  17.     $adminSecret = '';
  18.     $partnerId = ;  
  19.     $uiConfId = ;  
  20.     $this->serviceUrl = 'http://mp.streamamg.com/';
  21.     $userId = 'tesUser';
  22.     $config = new KalturaConfiguration($partnerId);
  23.     $config->serviceUrl = 'mp.streamamg.com/';
  24.     $client = new KalturaClient($config);
  25.     $ks = $client->generateSession($adminSecret, $userId, KalturaSessionType::ADMIN, $partnerId);
  26.     $client->setKs($ks);
  27.     $filter = null;
  28.     $pager =   null;
  29.     $result = $client->playlist->listAction($filter, $pager);
  30.     var_dump('<pre>',$result);die();
  31.     }
  32. }
Advertisement
RAW Paste Data Copied
Advertisement