1

I wonder if it is possible at all to create/use audio player as a custom field and add it to the custom object.

My target is to have a "Phonecall" custom object and store call data in that object such as:

  • Call ID
  • Call Date & Time
  • Service Number
  • URL To call Recording

I also want to be able to play that call recording using some audio player.

Something like in the screenshot attached.

enter image description here

Would the audio player have to be a field belonging to that object? Or a visualforce page ? I am a bit lost I don't know how to "merge" the player with the object.

2
  • from where you are getting the details like Call ID, Call Date & Time, Service Number and URL?
    – Saroj Bera
    Commented Apr 27, 2016 at 14:10
  • @SarojBera from third-party telephony provider
    – zachu
    Commented Apr 27, 2016 at 14:11

1 Answer 1

1

Intriguing use-case you have here. I don't believe there would be any way to render in something as complex as an audio player from a formula field (or at least, no way that would be relatively simple/lightweight and secure).
My suggestion would be to make a Visualforce page embedded on the page layout, and have it display the audio player using apex:flash or maybe raw JavaScript depending on what kind of audio player you intend to use.

edit: Apparently, HTML5 directly supports audio as long as your clients are using a browser modern enough for HTML5

2
  • I have managed to render audio player using HTML5. How do I link my "Phonecall" custom object to visualforce page with media player?
    – zachu
    Commented Apr 27, 2016 at 14:33
  • 1
    Make your VF page use standardController="Phonecall__c" then in the audio source tag, set the src attribute to something like src="{!Phonecall__c.Recording_URL__c}". Commented Apr 27, 2016 at 15:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .