Hi,
I am trying to create accesscontrol profile from php. I can create profile successfully, but setting the country,ip address restriction is having some problem.
$KalturaAccessControl = new KalturaAccessControl();
$KalturaAccessControl->name = PREMIUM_ACCESS_CONTROLL_NAME;
$KalturaAccessControl->restrictions = array(new KalturaSessionRestriction());
$result = $client->accessControl->add($KalturaAccessControl);
Note: look at the restrictions array, provide additional settings you want on that array.
$KalturaAccessControl = new KalturaAccessControl();
$KalturaAccessControl->name = PREMIUM_ACCESS_CONTROLL_NAME;
$KalturaAccessControl->restrictions = array(new KalturaSessionRestriction());
$result = $client->accessControl->add($KalturaAccessControl);
Note: look at the restrictions array, provide additional settings you want on that array.