| 123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- namespace Easemob\Agora;
- /**
- * @ignore
- */
- class ServiceRtc extends Service
- {
- const SERVICE_TYPE = 1;
- const PRIVILEGE_JOIN_CHANNEL = 1;
- const PRIVILEGE_PUBLISH_AUDIO_STREAM = 2;
- const PRIVILEGE_PUBLISH_VIDEO_STREAM = 3;
- const PRIVILEGE_PUBLISH_DATA_STREAM = 4;
- public $channelName;
- public $uid;
- public function __construct($channelName = "", $uid = "")
- {
- parent::__construct(self::SERVICE_TYPE);
- $this->channelName = $channelName;
- $this->uid = $uid;
- }
- public function pack()
- {
- return parent::pack() . Util::packString($this->channelName) . Util::packString($this->uid);
- }
- public function unpack(&$data)
- {
- parent::unpack($data);
- $this->channelName = Util::unpackString($data);
- $this->uid = Util::unpackString($data);
- }
- }
|