Closed hazhayder closed 3 months ago
@hazhayder could you copy and paste the code or attach the file for run easy from the code? It is hard to debug this if the mantainer has to write every line in the image
@hazhayder could you copy and paste the code or attach the file for run easy from the code? It is hard to debug this if the mantainer has to write every line in the image ` public function attempt(string $token) { $s3Upload = (new S3Upload())->setAccessKey("HasnainHaider")->setSecret("HasnainHaider")->setEndpoint("https://minio.exodevs.com")->setBucket("livekit")->setRegion(""); $roomServiceClient = new RoomServiceClient(env('LIVEKIT_HOST'), env('LIVEKIT_API_KEY'), env('LIVEKIT_API_SECRET')); $newRoomOptions = new RoomCreateOptions(); $roomEgress = new RoomEgress(); $autoTrackEgress = new AutoTrackEgress(); $autoTrackEgress = $autoTrackEgress->setS3($s3Upload)->setFilepath("livekit/{room_name}-{publisher_identity}-{time}"); $roomEgress = $roomEgress->setTracks($autoTrackEgress); $newRoomOptions = $newRoomOptions->setEgress($roomEgress); $newRoomOptions = $newRoomOptions->setName("HasnainNewRoom");
$roomServiceClient->createRoom($newRoomOptions);
$rooms = $roomServiceClient->listRooms();
$egressClient = new EgressServiceClient(env('LIVEKIT_HOST'), env('LIVEKIT_API_KEY'), env('LIVEKIT_API_SECRET'));
$outputConfig = new EncodedFileOutput();
return view('test.attempt');
}`
@hazhayder
$s3Upload = (new S3Upload())
->setAccessKey(config('linode.key'))
->setSecret(config('linode.secret'))
->setEndpoint(config('linode.endpoint'))
->setRegion(config('linode.region'))
->setBucket(config('linode.bucket'));
$tracks= (new AutoTrackEgress())
->setFilepath('livekit/test')
->setS3($s3Upload);
$roomEgress = (new RoomEgress())->setTracks($tracks);
$opts = (new RoomCreateOptions())
->setName($roomName)
->setEmptyTimeout(15)
->setEgress($roomEgress);
$this->roomServiceClient->createRoom($opts);
And the error is
Expect integer. file":"....vendor/google/protobuf/src/Google/Protobuf/Internal/GPBUtil.php:111"
@hazhayder
$s3Upload = (new S3Upload()) ->setAccessKey(config('linode.key')) ->setSecret(config('linode.secret')) ->setEndpoint(config('linode.endpoint')) ->setRegion(config('linode.region')) ->setBucket(config('linode.bucket')); $tracks= (new AutoTrackEgress()) ->setFilepath('livekit/test') ->setS3($s3Upload); $roomEgress = (new RoomEgress())->setTracks($tracks); $opts = (new RoomCreateOptions()) ->setName($roomName) ->setEmptyTimeout(15) ->setEgress($roomEgress); $this->roomServiceClient->createRoom($opts);
And the error is
Expect integer. file":"....vendor/google/protobuf/src/Google/Protobuf/Internal/GPBUtil.php:111"
Were you able to get around this error?
I don't think any tests have been written about this specific case. I'll do some testing on my end, and report back as soon as I can.
@p-delorme i have found an issue. created pr
Great Catch. I'll get that fix asap. Thanks @ashwin-nath-m
The PR has been merged.
A new release has been created. Feel free to test and report if this fixes the issue.
I am trying to set AutoEgress while creating room I am using docker-compose to deploy livekit on VPS, below is the code snippet and the output is attached below
![image](https://github.com/agence104/livekit-server-sdk-php/assets/12206002/dba62868-a088-4fc6-8f5d-d2793db9f8d2)