Picture of Ulrich Kerzel
Re: V2: completion tracking with media component with external video (vimeo)
by Ulrich Kerzel - Friday, 7 August 2015, 6:45 AM
 

Hi Matt,

 

actually, it works with YouTube using the code below.

(guess now I need to find out if youtube serves my needs)

All the best

Uli

 

 

{
"_id":"L1_co01_a01_b02_c01",
"_parentId":"L1_co01_a01_b02",
"_type":"component",
"_component":"media",
"_classes":"",
"_layout":"full",
"_comment": "_setCompletionOn = inview | play | ended",
"title":"Media component testing video streaming",
"displayTitle":"",
"body": "",
"instruction":"",
"_setCompletionOn":"play",
"_useClosedCaptions": false,
"_media": {
"source": "https://www.youtube.com/embed/UdEmaPd0nz8",
"type" : "video/youtube",
"cc": [
{
"srclang": "",
"src": ""
}
]
},
"_transcript": {
"_inlineTranscript": false,
"_externalTranscript": false,
"inlineTranscriptButton": "Transcript",
"inlineTranscriptCloseButton": "Close Transcript",
"inlineTranscriptBody": "Transcript body text should go here",
"transcriptLinkButton": "Transcript",
"transcriptLink": ""
},
"_pageLevelProgress": {
"_isEnabled": true
}
},