我正在玩主动事件,但卡在了本地化属性的事情上。所以我使用了媒体内容可用架构,它有两个本地化属性,我找不到关于如何同时使用其中两个的示例。任何想法?所以基本上,这有效:
{
"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": {}
}
}
显然,这是一个简单的修复,尽管我在任何文档中都找不到它。
需要做的是将本地化属性更改为:
"localizedAttributes": [
{
"locale": "en-US",
"providerName": "Lindsborg Covenant Church",
"contentName": "Who Wrote the Bible? - 01/13/2019"
}
],
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句