src/OpenTok/OpenTok.php
public function getStream($sessionId, $streamId)
    {
        Validators::validateSessionId($sessionId);
        Validators::validateStreamId($streamId);
      
        // make API call
        $streamData = $this->client->getStream($sessionId, $streamId);
        return new Stream($streamData);
        
    }
public function getStream($sessionId, $streamId)
    {
        Validators::validateSessionId($sessionId);
        Validators::validateStreamId($streamId);
      
        // make API call
        $streamData = $this->client->getStream($sessionId, $streamId);
        return new Stream($streamData);
        
    }
public function getStream ( $ sessionId , $ streamId ) { Validators :: validateSessionId ( $ sessionId ) ; Validators :: validateStreamId ( $ streamId ) ; // make API call $ streamData = $ this -> client -> getStream ( $ sessionId , $ streamId ) ; return new Stream ( $ streamData ) ; }
Gets an Stream object, providing information on a given stream.

@param String $sessionId The session ID for the OpenTok session containing the stream.

@param String $streamId The stream ID.

@return Stream The Stream object.
Gets an Stream object providing information on a given stream .