eyeson-team / eyeson-php

eyeson video conferencing API package for PHP
MIT License
7 stars 12 forks source link

Layers not working #35

Closed mccarlosen closed 4 years ago

mccarlosen commented 4 years ago

I have created a room and I am testing the layers, but nothing happens. I am using laravel 7.

Http::post('https://api.eyeson.team/rooms/:access-token/layers', [
    'url' => 'https://eyeson-team.github.io/api/images/eyeson-overlay.png',
    'z-index' => 2,
    'layout' => 'fixed'
]);

Lastly, I have tried with eyeson-js

onEvent({
    type: 'set_layer',
    params: {
        url: 'https://eyeson-team.github.io/api/images/eyeson-overlay.png',
        'z-index': '2',
        layout: 'fixed'
    }
})

image

mccarlosen commented 4 years ago

Excuse me, I already saw the duplicate #22

mccarlosen commented 4 years ago

Hello again,

I have created a room with option 'sfu_mode' => 'disabled' and I am testing the layers, but nothing happens. I am using laravel 7.

$eyeson = new Eyeson($apiKey);
$room = $eyeson->join($userName, $roomName, [
    'sfu_mode' => 'disabled'
]);
//.....
Http::post('https://api.eyeson.team/rooms/:access-token/layers', [
    'url' => 'https://eyeson-team.github.io/api/images/eyeson-overlay.png',
    'z-index' => 2,
    'layout' => 'fixed'
]);

Lastly, I have tried with eyeson-js

onEvent({
    type: 'set_layer',
    params: {
        url: 'https://eyeson-team.github.io/api/images/eyeson-overlay.png',
        'z-index': '2',
        layout: 'fixed'
    }
})

I have created another user for the test, so that they are 2 and nothing. What am I doing wrong?

unused commented 4 years ago

Hi there, please replace the :access-token in your URL with a valid access key, it's meant as a placeholder and otherwise there is no auth given. In your PHP example it's something like Http::post('https://api.eyeson.team/rooms/' + $room->getAccessKey() + '/layers', // .... Best wishes!