コード例 #1
0
ファイル: Hub.php プロジェクト: why404/pili-sdk-php
 public function listStreams($marker = NULL, $limit = NULL, $title_prefix = NULL, $status = NULL)
 {
     $result = Api::listStreams($this->_transport, $this->_hub, $marker, $limit, $title_prefix, $status);
     $streams = $result["items"];
     foreach ($streams as &$stream) {
         $stream = new Stream($this->_transport, $stream);
     }
     $result["items"] = $streams;
     unset($stream);
     return $result;
 }
コード例 #2
0
 public function snapshot($name, $format, $time = NULL, $notifyUrl = NULL, $pipeline = NULL)
 {
     return Api::streamSnapshot($this->_transport, $this->id, $name, $format, $time, $notifyUrl, $pipeline);
 }