Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

How to disable seeking on media response? #17

Open
shivan opened this issue Dec 4, 2020 · 17 comments
Open

How to disable seeking on media response? #17

shivan opened this issue Dec 4, 2020 · 17 comments

Comments

@shivan
Copy link

shivan commented Dec 4, 2020

How can I disable seeking on media responses? So the user cannot seek forward/backwards in the current playing track?

This is how I currently do it:

conv.add(new Media({
        mediaObjects: [{
        name: 'Trance Track 1',
        description: 'Media description',
        url: 'https://my-url.de/Trance1.mp3',
        image: {
          large: new Image({
            url: 'https://somewhere/whateverimage.jpg',
            alt: 'my image here'
          })
        }
    }],
        mediaType: MediaType.Audio,
        optionalMediaControls: [OptionalMediaControl.Paused, OptionalMediaControl.Stopped],
        startOffset: '0s'
    }));

I didn't find anything in the documentations on https://developers.google.com/assistant/conversational/prompts-media

Also didn't find anything on stackoverflow and didn't get any answer on stackoverflow, yet:
https://stackoverflow.com/questions/65039702/how-to-disable-manual-seeking-on-google-actions-assistant-conversations-media

So my last option is to ask here.

@Fleker
Copy link
Member

Fleker commented Dec 4, 2020

Is there a strict need for the user to be unable to seek? Potentially you can use a livestream of an mp3 rather than a static media file, which would make the content play as if it was live.

@shivan
Copy link
Author

shivan commented Dec 4, 2020

@Fleker, yes, there is a strict need, as it will be an action for a radio station but the files are static media files.

@shivan
Copy link
Author

shivan commented Dec 16, 2020

Any news here? Or any other suggestions than streaming?
Because seeking by code at the start should be possible, but not by the user. This is because it simulates radio streaming and should start at the same offset where the current "stream" is.

I also asked here:
https://stackoverflow.com/questions/65039702/how-to-disable-manual-seeking-on-google-actions-assistant-conversations-media

But no solution, yet :-(

@Fleker
Copy link
Member

Fleker commented Dec 16, 2020

From my understanding sending a standard media file will always show seeking.

@shivan
Copy link
Author

shivan commented Dec 17, 2020

But how does tunein and the others solve this - do all a "real" stream? For example SWR1 - there is no "live" icon like on tunein so is this still a stream?

We would really need to disable seeking, as this is a licensing limitation.

@Fleker
Copy link
Member

Fleker commented Dec 17, 2020

TuneIn to my knowledge actually streams radio live.

@shivan
Copy link
Author

shivan commented Dec 18, 2020

Mhm... what can I do? As far as I know, there is no Developer Support contact mail address.

@Fleker
Copy link
Member

Fleker commented Dec 18, 2020

What developer support are you looking for?

@shivan
Copy link
Author

shivan commented Dec 19, 2020

Like amazon is providing direct support for alexa skill developers in a ticketing system. Which such a support I was able to solve several problems with alexa already. For example devices behaving different or other problems.

Because without being able to disable seeking we cannot use google assistant. :-(

@Fleker
Copy link
Member

Fleker commented Dec 23, 2020

I've filed a ticket internally.

@shivan
Copy link
Author

shivan commented Feb 9, 2021

Any news here?

@shivan
Copy link
Author

shivan commented Feb 10, 2021

Additionally I would need to disallow "next" (and "previous"). As skipping to the next track must be prevented, too.
(later I should be able to enable track skipping but with a very complex rule set)

@shivan
Copy link
Author

shivan commented Apr 15, 2021

@Fleker do you have any status update on that?

@Fleker
Copy link
Member

Fleker commented Apr 16, 2021

I don't have an update to share.

@shivan
Copy link
Author

shivan commented Sep 1, 2021

Hello @Fleker , and now? How could we get forward here?

Streaming isn't an alternative, as it has two problems:

  1. Metadata for changing tracks will not be shown
  2. the player uses "Content-Length" as stream length, this cannot be disabled.

It would be nice to hear from you.

@taycaldwell
Copy link
Contributor

Hello @shivan,

Unfortunately, the Media response API does not support the features you are requesting (i.e. disable seeking, prevent skip track, skip track w/ complex rule set, etc.).

To get a full overview on what features Media response provides, as well as it's limitations, please refer to our documentation:
https://developers.google.com/assistant/conversational/prompts-media

As @Fleker mentioned previously, we have filed tickets for the feature requests you are suggesting here and in #31.

Best,

@shivan
Copy link
Author

shivan commented Oct 20, 2021

Thanks for your answer. Would be nice to have those features implemented.

@Fleker or @taycaldwell
How does spotify work? As they have skipping policies (only x skips left), they seem to have a possibility to interact with the skipping intent by code. How is this done?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants