I got it working changing the content_items value to
{
"@context": "http://purl.imsglobal.org/ctx/lti/v1/ContentItem",
"@graph": [
{
"mediaType": "text/html",
"url": "url",
"text": "<iframe src='url'></iframe>",
"embed": {
"html": "<iframe src='url'></iframe>"
},
"iframe": {
"width": 0,
"height": 0,
"src": "url"
},
"placementAdvice": {
"presentationDocumentTarget": "embed"
},
"@type": "ContentItem"
}
]
}
instead of
{
"@context": "http://purl.imsglobal.org/ctx/lti/v1/ContentItem",
"@graph": [
{
"url": "url",
"embed": {
"html": "<iframe src='url'></iframe>"
},
"iframe": {
"width": 0,
"height": 0,
"src": "url"
},
"@type": "link"
}
]
}
Does anyone knows why the 'link' type didn't work? I can't find the type `ContentItem` in the documentation here : https://www.imsglobal.org/spec/lti-dl/v2p0#link