Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to upload videos into custom object record like as photo upload in rich text field. no need to display a link i want to display a video

share|improve this question

Salesforce doesn't really shine as a streaming video provider ;) so the best route for an admin is to integrate with a third party service like Youtube. They handle encoding, hosting, and the video player:

  1. create a YouTubeId__c text field on your custom object to hold the youtube ?v= id,

  2. write a WidgetVideoPlayer Visualforce Page which embeds the content, for example:

    <apex:page standardController="Widget__c" showHeader="false">
      <apex:iframe height="240" src="{!Widget__c.YouTubeId__c}" />

Then you can edit the Page Layout for your Custom Object and place your Visualforce Page in a section alongside the other fields.

embedded video player

It will be taxing to get this functionality embedded in a rich text field. If you did store the videos on platform, you could write a shortcode parser and use JWPlayer to attempt to tighten the integration.

share|improve this answer
hi user320 what datatype YouTubeId__c and what id to store YouTubeId__c field. – nagarjuna Dec 17 '13 at 10:44
@user320 nice video must check that out! ;-) – Andrew Fawcett Dec 17 '13 at 11:53
thanks user320. its working fine. can i store this video in salesforce. no need to call external youtube website – nagarjuna Dec 17 '13 at 12:32
Not easily, @user4812. How much time+resource do you have? Big videos could be uploaded as Chatter Files. It will live at /sfc/servlet.shepherd/version/download/068_version_id_here which you might be able to feed to JWPlayer but I don't recommend it. – bigassforce Dec 17 '13 at 13:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.