actions-on-google / assistant-conversation-nodejs

A developer friendly way to fulfill Actions SDK handlers for the Google Assistant
https://actions-on-google.github.io/assistant-conversation-nodejs
Apache License 2.0
104 stars 38 forks source link

startOffset - simulator issue #8

Open lhanusiak-tcp opened 4 years ago

lhanusiak-tcp commented 4 years ago

Following the example here , following code always is playing media file from the beginning.

conv.add(new Media({
    mediaObjects: [
      {
        name: 'Media name',
        description: 'Media description',
        url: 'https://storage.googleapis.com/automotive-media/Jazz_In_Paris.mp3',
        image: {
          large: JAZZ_IN_PARIS_IMAGE,
        }
      }
    ],
    mediaType: 'AUDIO',
    optionalMediaControls: ['PAUSED', 'STOPPED'],
    startOffset: '5.0000001s'
  }));

It is look like startOffset is always ignored on simulator.

Fleker commented 4 years ago

Is it just in the simulator or does it happen on devices as well?

lhanusiak-tcp commented 4 years ago

Only in the simulator. It is working well on mobile device.