我当时正在玩一些前摄性事件,但是被本地化的属性卡住了。因此,我使用的是媒体内容可用模式,它具有两个localizedattribute,并且找不到如何立即使用其中两个的示例。任何想法?所以基本上,这可行:
{
"timestamp": "2019-01-25T08:41:01.00Z",
"referenceId": "orangfdetango2221800f44-436a-4c47-8d9f-e14356bb010c",
"expiryTime": "2019-01-26T08:20:01.00Z",
"event": {
"name": "AMAZON.MediaContent.Available",
"payload": {
"availability": {
"startTime": "2019-01-23T21:00:00Z",
"method":"DROP"
},
"content": {
"name": "localizedattribute:contentName",
"contentType":"EPISODE"
}
}
},
"localizedAttributes": [
{
"locale": "en-US",
"contentName": "Who Wrote the Bible? - 01/13/2019"
}
],
"relevantAudience": {
"type": "Multicast",
"payload": {}
}
}
但这不是因为它有两个本地化的属性:
{
"timestamp": "2019-01-25T08:41:01.00Z",
"referenceId": "orangfdetango2221800f44-436a-4c47-8d9f-e14356bb010c",
"expiryTime": "2019-01-26T08:20:01.00Z",
"event": {
"name": "AMAZON.MediaContent.Available",
"payload": {
"availability": {
"startTime": "2019-01-25T21:00:00Z",
"provider": {
"name": "localizedattribute:providerName"
},
"method":"STREAM"
},
"content": {
"name": "localizedattribute:contentName",
"contentType":"EPISODE"
}
}
},
"localizedAttributes": [
{
"locale": "en-US",
"providerName": "Lindsborg Covenant Church"
},
{
"locale": "en-US",
"contentName": "Who Wrote the Bible? - 01/13/2019"
}
],
"relevantAudience": {
"type": "Multicast",
"payload": {}
}
}
答案 0 :(得分:0)
显然,这是一个简单的修复,尽管我在任何文档中都找不到。
需要做的是将本地化属性更改为:
"localizedAttributes": [
{
"locale": "en-US",
"providerName": "Lindsborg Covenant Church",
"contentName": "Who Wrote the Bible? - 01/13/2019"
}
],