Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This only requires two changes to support https://drupal.org/project/media_recorder
hook_audioconverter_allowed_fields needs to return 'media_recorder' so that it shows up on the fields widget page.
The other is dropping the requirement for audiofield; though not a direct requirement it's not nessecary to use this module if you have media_recorder
Comment | File | Size | Author |
---|---|---|---|
#1 | audioconverter-media-recorder-2250199-1.patch | 726 bytes | btopro |
Comments
Comment #1
btopro CreditAttribution: btopro commentedpatch
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedWow, thanks btopro. I will try out the patch and report back asap. This is a current feature request for the Media Recorder:
https://drupal.org/node/2164211
Comment #3
btopro CreditAttribution: btopro commentedGlad to hear, hope we can get this more visibility and pushed through
From planet recently -- this is working via patches: https://drupal.psu.edu/content/html5-audio-recording-drupal
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedThanks again btpro, installed the patch and it is working great for new content. For some reason I couldn't get the audioconverter cron update option to run, but that is a minor point for me.
Also, why did you switch to avconv? Do you have any instructions on the install with FFMPEG?
Once again, thank you. This was the number one issue holding me back from widespread usage of the media recorder module!
Comment #5
Anonymous (not verified) CreditAttribution: Anonymous commentedMay have jumped the gun. The conversion is happening to mp3, but the media recorder field display is still linked to the wav file. Thoughts?
Comment #6
btopro CreditAttribution: btopro commentedDo you have the settings such that it will remove the original file and link to the new one. I have a feature in the rubric module that has settings that work OOTB as long as the patches are applied.
http://drupalcode.org/project/rubric.git/tree/refs/heads/7.x-1.x:/featur...
Comment #7
Anonymous (not verified) CreditAttribution: Anonymous commentedFound the problem. I had not setup the correct path for the Audio Converter module settings when using ffmpeg. I set the path to the directory that contained ffmpeg but did not include the program executable. In my case:
I had this:
usr/bin/ffmpeg
and I needed this:
usr/bin/ffmpeg/ffmpeg
Seems to be working perfectly now. This is a huge feature improvement for the Media Recorder module, btopro. Thank you once again for contributing to Drupal!
Comment #8
Anonymous (not verified) CreditAttribution: Anonymous commentedOne other issue may have cropped up. I set Audio converter to run on cron to convert my older saved wav files but it seems like the Media Recorder field does not change to the new mp3 file after cron runs. Alternatively, I may have just messed up the cron run for audioconverter, not sure.
Comment #9
btopro CreditAttribution: btopro commentedgotcha, haven't tested that; I just do it on the fly.
Comment #10
Anonymous (not verified) CreditAttribution: Anonymous commentedI will do more testing to see what is happening, could be user error or an issue with Media Recorder.
tamerzg has agreed to consider a commit for the patch. Great work, this is an extremely useful feature improvement.
Comment #11
sylvaticus CreditAttribution: sylvaticus commentedI can confirm that the two-lines patch in #1 is working, even for cron jobs. Any chance this will be committed to audioconverter ?
Comment #12
ws.agency CreditAttribution: ws.agency at Websolutions Agency commentedPatch in #1 works.
Comment #13
tamerzg CreditAttribution: tamerzg commentedPushed to git.
Comment #14
tamerzg CreditAttribution: tamerzg commented