fix(generator): add hotKey to Group and Cue

This commit is contained in:
Thorsten Bus 2026-03-30 08:04:08 +02:00
parent e46e7e5f9c
commit 6f79982283
2 changed files with 16 additions and 3 deletions

View file

@ -93,6 +93,19 @@ class Group
return $uuids;
}
/**
* Get the group's hotKey.
*/
public function getHotKey(): ?\Rv\Data\HotKey
{
$group = $this->cueGroup->getGroup();
if ($group === null) {
return null;
}
return $group->getHotKey();
}
/**
* Get the underlying protobuf CueGroup object.
*/

View file

@ -782,7 +782,7 @@ class ProFileGeneratorTest extends TestCase
// Navigate to the first slide's media action
$cue = $song->getPresentation()->getCues()[0];
$action = $cue->getActions()[0]; // media action
$url = $action->getMedia()->getUrl();
$url = $action->getMedia()->getElement()->getUrl();
$this->assertNotNull($url);
$this->assertNotNull($url->getLocal());
@ -816,7 +816,7 @@ class ProFileGeneratorTest extends TestCase
// Navigate to the first slide's media action
$cue = $song->getPresentation()->getCues()[0];
$action = $cue->getActions()[0]; // media action
$url = $action->getMedia()->getUrl();
$url = $action->getMedia()->getElement()->getUrl();
$this->assertNotNull($url);
$this->assertNotNull($url->getLocal());
@ -850,7 +850,7 @@ class ProFileGeneratorTest extends TestCase
// Navigate to the first slide's media action
$cue = $song->getPresentation()->getCues()[0];
$action = $cue->getActions()[0]; // media action
$url = $action->getMedia()->getUrl();
$url = $action->getMedia()->getElement()->getUrl();
$this->assertNotNull($url);
$this->assertNotNull($url->getLocal());