<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.catglobe.com/index.php?action=history&amp;feed=atom&amp;title=Add_video_clip</id>
	<title>Add video clip - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.catglobe.com/index.php?action=history&amp;feed=atom&amp;title=Add_video_clip"/>
	<link rel="alternate" type="text/html" href="https://wiki.catglobe.com/index.php?title=Add_video_clip&amp;action=history"/>
	<updated>2026-05-09T12:04:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://wiki.catglobe.com/index.php?title=Add_video_clip&amp;diff=239018&amp;oldid=prev</id>
		<title>Administrator: Created page with &quot;This guide provides the way that you can insert a video from external source or from your computer into the questionnaires.  then please see examples below:  - video with exte...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.catglobe.com/index.php?title=Add_video_clip&amp;diff=239018&amp;oldid=prev"/>
		<updated>2019-03-07T08:23:24Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This guide provides the way that you can insert a video from external source or from your computer into the questionnaires.  then please see examples below:  - video with exte...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This guide provides the way that you can insert a video from external source or from your computer into the questionnaires.&lt;br /&gt;
&lt;br /&gt;
then please see examples below:&lt;br /&gt;
&lt;br /&gt;
- video with external source&amp;lt;br/&amp;gt;[[File:Youtube.png]]&amp;lt;br/&amp;gt;- video with upload from computer&amp;lt;br/&amp;gt;[[File:Single video.png]]&amp;lt;br/&amp;gt;[[File:Multi video.png]]&lt;br /&gt;
&lt;br /&gt;
You can do that with steps below:&lt;br /&gt;
&lt;br /&gt;
== 1.Insert video from external source ==&lt;br /&gt;
&lt;br /&gt;
-Copy link of video from external source that support streaming video like as youtube&lt;br /&gt;
&lt;br /&gt;
-Use tool ‘Media embed’ to insert to question text or answer text&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Insert external video 1.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Insert external video 2.png]]&lt;br /&gt;
&lt;br /&gt;
== 2.Insert videos from attachment of questionnaire ==&lt;br /&gt;
&lt;br /&gt;
- Open questionnaire, go to Attachments tab, and upload files to here&lt;br /&gt;
&lt;br /&gt;
[[File:Video from att 1.png]]&lt;br /&gt;
&lt;br /&gt;
- Copy Resource id of questionnaire, then open Workflow prompt, then run this script with copied id to get link of attachment&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
number qRId = ;//resource id of questionnaire&lt;br /&gt;
number fIndex = 0;//index of file in Attachments (0,1,2..)&lt;br /&gt;
Attachment att = new Attachment(&amp;quot;&amp;quot;, qRId);&lt;br /&gt;
array fs = att.GetChildAttachments(qRId);&lt;br /&gt;
att = fs[fIndex];&lt;br /&gt;
array permissions = {{2, &amp;quot;Read&amp;quot;}};&lt;br /&gt;
updateUserPermission(att.ResourceId, permissions);&lt;br /&gt;
&amp;quot;/public/getattachment.aspx?guid=&amp;quot;+ getResourceGuid(att.ResourceId) + &amp;quot;&amp;amp;noattach=1&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Video from att 2.png]]&lt;br /&gt;
&lt;br /&gt;
- Insert this script in to Javascript of question, remember use link of video in above step&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
Question.bind(&amp;#039;afterShowQuestion&amp;#039;, function() {&lt;br /&gt;
 //this is demo create a element to add video player, or you can add it into question text&lt;br /&gt;
 var el = $(&amp;#039;&amp;lt;div&amp;gt;&amp;#039;).appendTo(&amp;#039;.cg-ui-question &amp;gt; .cg-ui-text&amp;#039;);&lt;br /&gt;
 //apply player&lt;br /&gt;
 el.mediaPlayer({&lt;br /&gt;
 m4v: &amp;quot;link attachment&amp;quot;, //for video mp4, mpeg&lt;br /&gt;
 //flv: &amp;quot;link attachment &amp;quot;, //for flash video&lt;br /&gt;
 //mp3: &amp;quot;link attachment &amp;quot;, //for music mp3&lt;br /&gt;
 });&lt;br /&gt;
});&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;- For Advance setting (use player with list, poster, caption,…), please refer to questionnaire: [http://cg.catglobe.com/QuestionnaireModule/Editor/QuestionnaireJsEditor.aspx?id=506 http://cg.catglobe.com/QuestionnaireModule/Editor/QuestionnaireJsEditor.aspx?id=506]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You save your questionnaire then this is finished here.&lt;br /&gt;
[[Category:Questionnaire]]&lt;/div&gt;</summary>
		<author><name>Administrator</name></author>
	</entry>
</feed>