Refactor menus module

This commit is contained in:
hensm
2022-04-18 04:41:29 +01:00
parent abf657c0d4
commit 3686340f25
6 changed files with 146 additions and 160 deletions

View File

@@ -45,9 +45,8 @@ enum _MediaCommand {
}
/**
* Takes a media object and a media status object and merges
* the status with the existing media object, updating it with
* new properties.
* Takes a media object and a media status object and merges the status
* with the existing media object, updating it with new properties.
*/
function updateMedia(media: Media, status: MediaStatus) {
if (status.currentTime) {
@@ -179,7 +178,7 @@ export default class Session {
/**
* Sends a media message to the app receiver.
* urn:x-cast:com.google.cast.media
* `urn:x-cast:com.google.cast.media`
*/
#sendMediaMessage = (
message: DistributiveOmit<SenderMediaMessage, "requestId">