I’m using APL in Alexa, but after 20 seconds more or less during the playing of an audio it returns to the default screen (black background, name and “is playing” in the foreground). How can I stop this? I just want to decide my own screen.
Default screen in Alexa and APL
jan
#3
The Alexa Audioplayer doesn’t work with APL. You can only pass track metadata (e.g. artwork image): https://www.jovo.tech/marketplace/jovo-platform-alexa/interfaces/audio-player#set-track-metadata
Il_Mil1
#5
this.$alexaSkill.$audioPlayer
.setOffsetInMilliseconds(0).addArtwork(imageUrl)
.play(stream, 'token');
Like this is not working, imageUrl is an URL from Firebase.
It’s doesn’t show neither the title with the setTitle.
The audio is working as always and in the correct way.
Il_Mil1
#7
"version": "1.0",
"response": {
"shouldEndSession": true,
"directives": [
{
"type": "AudioPlayer.Play",
"playBehavior": "REPLACE_ALL",
"audioItem": {
"stream": {
"url": "*",
"token": "token",
"offsetInMilliseconds": 0
},
"metadata": {
"title": "Radio 4.0",
"subtitle": "La diretta",
"art": {
"sources": [
{
"url": "firebase/image"
}
]
}
}
}
}
],
"card": {
"type": "Standard",
"image": {
"smallImageUrl": "firebase/image",
"largeImageUrl": "firebase/image"
},
"title": "Radio 4.0",
"text": "Adesso in riproduzione"
}
},
"sessionAttributes": {}
}
>>>>> Request - 2021-03-17T08:13:55.431Z
{
"version": "1.0",
"context": {
"Viewports": [
{
"type": "APL",
"id": "main",
"shape": "ROUND",
"dpi": 160,
"presentationType": "STANDARD",
"canRotate": false,
"configuration": {
"current": {
"mode": "HUB",
"video": {
"codecs": [
"H_264_41"
]
},
"size": {
"type": "DISCRETE",
"pixelWidth": 480,
"pixelHeight": 480
}
}
}
}
],
"AudioPlayer": {
"offsetInMilliseconds": 0,
"token": "token",
"playerActivity": "PLAYING"
},
"Viewport": {
"experiences": [
{
"arcMinuteWidth": 144,
"arcMinuteHeight": 144,
"canRotate": false,
"canResize": false
}
],
"mode": "HUB",
"shape": "ROUND",
"pixelWidth": 480,
"pixelHeight": 480,
"dpi": 160,
"currentPixelWidth": 480,
"currentPixelHeight": 480,
"touch": [
"SINGLE"
],
"keyboard": [],
"video": {
"codecs": [
"H_264_41"
]
}
},
"Extensions": {
"available": {
"aplext:backstack:10": {}
}
},
"System": {
"application": {
"applicationId": "*"
},
"user": {
"userId": "*"
},
"device": {
"deviceId": "*",
"supportedInterfaces": {
"AudioPlayer": {}
}
},
"apiEndpoint": "https://api.eu.amazonalexa.com",
"apiAccessToken": "*"
}
},
"request": {
"type": "AudioPlayer.PlaybackStarted",
"requestId": "*",
"timestamp": "2021-03-17T08:13:55Z",
"locale": "it-IT",
"token": "token",
"offsetInMilliseconds": 0
}
}
So, this morning without changing anything the artwork works, but the title and subtitle are not shown
jan
#8
Which device are you testing it on? The JSON looks correct, so this might be a device related issue
Il_Mil1
#10
The problem was with the cache, I needed to switch off and then switch on to make it work