src/OpenTok/Broadcast.php
public function stop()
    {
        if ($this->isStopped) {
            throw new BroadcastDomainException(
                'You cannot stop a broadcast which is already stopped.'
            );
        }

        $broadcastData = $this->client->stopBroadcast($this->data['id']);

        try {
            Validators::validateBroadcastData($broadcastData);
        } catch (InvalidArgumentException $e) {
            throw new BroadcastUnexpectedValueException('The broadcast JSON returned after stopping was not valid', null, $e);
        }

        $this->data = $broadcastData;
        return $this;
    }
public function stop()
    {
        if ($this->isStopped) {
            throw new BroadcastDomainException(
                'You cannot stop a broadcast which is already stopped.'
            );
        }

        $broadcastData = $this->client->stopBroadcast($this->data['id']);

        try {
            Validators::validateBroadcastData($broadcastData);
        } catch (InvalidArgumentException $e) {
            throw new BroadcastUnexpectedValueException('The broadcast JSON returned after stopping was not valid', null, $e);
        }

        $this->data = $broadcastData;
        return $this;
    }
public function stop ( ) { if ( $ this -> isStopped ) { throw new BroadcastDomainException ( 'You cannot stop a broadcast which is already stopped.' ) ; } $ broadcastData = $ this -> client -> stopBroadcast ( $ this -> data [ 'id' ] ) ; try { Validators :: validateBroadcastData ( $ broadcastData ) ; } catch ( InvalidArgumentException $ e ) { throw new BroadcastUnexpectedValueException ( 'The broadcast JSON returned after stopping was not valid' , null , $ e ) ; } $ this -> data = $ broadcastData ; return $ this ; }
Stops the broadcast.
Stops the broadcast .