Embed MP3 into Editor modal window
Embed MP3 into Editor modal window

Hi Alan
I store mp3 call-recording tags in my DB.
Here is an example:
<audio src='http://www.schillmania.com/projects/soundmanager2/demo/_mp3/rain.mp3' controls preload='none'></audio>
These tags render as a sound player in DataTables. However, they obviously render as a tag in a field in the Editor modal window.
It would be beneficial to our workflow if we could play the recording from editor as we are typing notes about the call into the editor.
Unfortunately the recording stops when the Editor modal launches.
Is it possible to inject raw html into the modal so that I can render the player within the modal Editor window?
Many Thanks.
Answers
Hi,
I think this sounds like a perfect option for a custom field type. If all you need to do is have it display the audio controls you could just have it render the audio tag and update the
src
whenever required (set
).Regards,
Allan