Using the Video capture APIs

Alert:

All mobile and mobile-related features are removed in ColdFusion (2025 release).

View Deprecated features in ColdFusion for more information.

Before you begin, see Video Functions.

Capturing the video

<cfclientsettings enableDeviceAPI=true>
<cfclient>
<cfset opt = cfclient.video.getOptions()>
<cfset cfclient.video.capture(opt,'func1')>
<cffunction name="func1">
<cfargument name="mediaFileArray">
<cfset document.getElementById('result').innerHTML="Options object: #JSON.stringify(mediaFileArray)#">
</cffunction>
</cfclient>
<div id="result"/>
<cfclientsettings enableDeviceAPI=true> <cfclient> <cfset opt = cfclient.video.getOptions()> <cfset cfclient.video.capture(opt,'func1')> <cffunction name="func1"> <cfargument name="mediaFileArray"> <cfset document.getElementById('result').innerHTML="Options object: #JSON.stringify(mediaFileArray)#"> </cffunction> </cfclient> <div id="result"/>
<cfclientsettings enableDeviceAPI=true>

<cfclient>
 
<cfset opt = cfclient.video.getOptions()> 
<cfset cfclient.video.capture(opt,'func1')> 

<cffunction name="func1">
<cfargument name="mediaFileArray"> 
<cfset document.getElementById('result').innerHTML="Options object: #JSON.stringify(mediaFileArray)#"> 
</cffunction>

</cfclient>
 
<div id="result"/>

Get help faster and easier

New user?