src/MediaServices/MediaServicesRestProxy.php
public function startAdvertisementChannel($channel, $duration, $cueId, $showSlate)
    {
        $op = $this->sendStartAdvertisementChannelOperation($channel, $duration, $cueId, $showSlate);

        // waiting for create operation finishes
        $op = $this->awaitOperation($op);

        // true if succeeded
        return $op->getState() == OperationState::Succeeded;
    }
public function startAdvertisementChannel($channel, $duration, $cueId, $showSlate)
    {
        $op = $this->sendStartAdvertisementChannelOperation($channel, $duration, $cueId, $showSlate);

        // waiting for create operation finishes
        $op = $this->awaitOperation($op);

        // true if succeeded
        return $op->getState() == OperationState::Succeeded;
    }
public function startAdvertisementChannel ( $ channel , $ duration , $ cueId , $ showSlate ) { $ op = $ this -> sendStartAdvertisementChannelOperation ( $ channel , $ duration , $ cueId , $ showSlate ) ; // waiting for create operation finishes $ op = $ this -> awaitOperation ( $ op ) ; // true if succeeded return $ op -> getState ( ) == OperationState :: Succeeded ; }
Start Advertisement on Channel.

@param Channel|string $channel Channel data or channel Id
@param $duration
@param $cueId
@param $showSlate

@return bool true if succeeded
Start Advertisement on Channel .