Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Video browsing in Salesforce Classic

A very similar approach to what has been just described for the recording capabilities can be followed for the browsing requirements you have in Classic. This time, the VideoList Lightning Component can be mapped by a VisualForce component called nativevideo:list. Let's take a look again at how to map it under both one to one and one to many scenarios.


As described in the "Recording and browsing one video per record" section, and showcase a couple of examples of video recording and browsing VF components configured for Salesforce Classic, and embedded in a VisualForce pagethe equivalent of the point and click configuration described in paragraph 3 would be a VisualForce page that embeds the NativeVideo browsing component:

Code Block
languagexml
themeEmacs
linenumberstrue
<apex:page showHeader="false" sidebar="false" standardController="FAQ__c">
    <nativevideo:list 
        queryObject="FAQ__c"
        queryRecordID="{!id}"
        selectVideoField="Video__c"
        hideFooter="true"
    />
</apex:page>

This VisualForce page will then check the Video__c lookup field on the FAQ__c object and, if populated, it will display a video player with the associated file that has been previously either recorded or uploaded.

Let's take now a look on how to display a list of videos associated to a single Salesforce record, as originally described in section 3 of "Recording and browsing multiple videos per record". As mentioned already, we won't be able to drag and drop any predefined component, but we will have to defined a new VisualForce page that embeds a code similar to the following one:

Code Block
languagexml
themeEmacs
linenumberstrue
<apex:page showHeader="false" sidebar="false" standardController="Opportunity">
	<nativevideo:list
		parentObject="Opportunity"
		filterByField="Opportunity__c"
		filterByValue="{!id}"
		hideFooter="true"
	/>
</apex:page>

As you can see, with just few lines of VisualForce code you can render the list of videos associated to a Salesforce record.



Conclusion & Next Steps

In this chapter we have briefly introduced how to map the out of the box Lightning components to Salesforce Classic, offering the same video recording and capabilities within VisualForce. As mentioned, unfortunately there is no equivalent in Salesforce Classic for the Point and Click interface, so few coding is required.

In the next and final section we will go through some of the common technical questions we have heard so far, and please get in touch if you have more.

...