function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
lady_syrennelady_syrenne 

Dynamically embed videos in visual force page

Hi there!

 

I'm new in developing visual force page.. Now, I need to embed different videos one by one in one visual force page by clicking an output link associated with the video. How can i do this? Pls.. help me.. its urgent...

TheSwamiTheSwami

What is the format of the videos?  Where are they hosted?  (YouTube, Vimeo?)

ladysyrenneladysyrenne

Hi.. These are videos from different sites... I want to upload it first in my dev org(as document or attachment or in the static resources) so that I can reference it in a call from my visual force page.. is it possible to display and play its content?

TheSwamiTheSwami

If the Videos are relatively few in number and not changing frequently, then static resources is probably the best solution.

Otherwise, you may want to even look at something like Amazon s3 for storing the raw video.

 

For the VF page, you would just insert the appropriate tag for displaying the video.  They all have slightly different tags.

If you have more specifics, I might be able to help more.

 

lady_syrennelady_syrenne

If I would use static resources, is it possible to call the videos dynamically? I mean if I have, 5-10 videos in the static resources can i call it one by one in a single VF page using an outputlink associated with the video?

TheSwamiTheSwami

Sure.  For example, you can put each of the video's code into a div (outputPanel) and set them to hidden (unrendered).

Then when clicking the outputLink, you would show the appropriate video.

 

Are you able to write what you want in HTML?  If you have that, I could tell you how to do it in VisualForce.

lady_syrennelady_syrenne

Hi! I think that's a good idea but the the videos are associated with an instance of an object. Everytime I will insert an instance i also have to upload a video associated with it, so I think hiding the video in the VF page is not the best thing to do. Cause those videos are not statc as it is all through out the usage of the app.I can upload as many videos as I want. How can I do this?

TheSwamiTheSwami

You might look at this:

http://boards.developerforce.com/t5/Visualforce-Development/Image-Upload-using-visualforce-and-saving-in-custom-formula/td-p/335421

 

It shows an example of uploading an image - it could probably be adapted to do videos.

lady_syrennelady_syrenne

Hi! thanks for this. You gave me an idea... but the problem now is that if I uploaded videos as attachments, it can exceed the file size limit for attachments. How can I solve this?

 

 

 

TheSwamiTheSwami

You might try uploading to Content (files).

Mediaframes360Mediaframes360

Please see our new app at the AppExchange:

 

Video, images and audio integration for Salesforce -

 

http://appexchange.salesforce.com/listingDetail?listingId=a0N30000008abcBEAQ

 

 

Coming soon - Streaming videos embedded in articles and Chatter!

 

Callum ChadwickCallum Chadwick
In the event that the Videos are moderately very few and not evolving as often as possible, static assets is likely the best arrangement.
Any other way, you might need to try and see something like Amazon s3 for putting away the crude video.
For the VF page, you would simply embed the suitable tag for showing the video (https://thepinterestvideodownloader.com/). They all have marginally various labels.
Assuming you have more particulars, I could possibly help more.