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.
Are there intentions to continue development of this project?
Comment | File | Size | Author |
---|---|---|---|
#4 | combine_audio_fields-1230966-comment-4914498.patch | 9.28 KB | bhosmer |
#3 | combineaudiofields-1230966-2.patch | 0 bytes | bhosmer |
Comments
Comment #1
travist CreditAttribution: travist commentedYes, definitely. I will be jumping back on this project within the next couple of weeks since I have been consumed with a different project at the moment.
Comment #2
bhosmer CreditAttribution: bhosmer commentedRight on! I'm working on a patch to combine the displays. Good to hear from you Travis.
Comment #3
bhosmer CreditAttribution: bhosmer commentedAs the result of the Brevard Drupal meetup, we worked on combining the display of fields for cross-browser compatibility. Chrome supports mp3 and ogg, firefox only supports ogg, and safari only supports mp3.
Two files are needed when adding an audio upload and now with this patch you upload both and the HTML is output like this:
With this patch it is important that the first file be the mp3 and then the second be the ogg, otherwise safari will not process the audio files.
Thanks to @ultimike for his help with this during the meetup.
Comment #4
bhosmer CreditAttribution: bhosmer commentedThat first one was empty, this patch should work now:
Comment #5
travist CreditAttribution: travist commentedThanks for this. I will definitely look it over.
I did take a quick glance and noticed that the patch removes a lot of my recent work on implementing a standard media player for browsers with JS enabled. Was this intentional? If not, then I can do a quick diff between this and my current version to see how I can incorporate the changes.
Also, tell Michael (ultimike) that I said hello. :)
Travis.
Comment #6
bhosmer CreditAttribution: bhosmer commentedI must not have seen the recent update you did. No, I did not intend to override the recent media player updates.
I'll pass on the greetings to Mike.
You'll see that I added a checkbox to the menu, "combine" that doesn't actually do anything yet. It was a work in progress just in case users might not want to actually combine the displays.
I wasn't sure about the best way to implement this.
Comment #7
ebieymjunior CreditAttribution: ebieymjunior commentedDoes this module work with the Media module?
Thanks
Comment #8
travist CreditAttribution: travist commentedYes. It works nicely since all it really does is create a field formatter for displaying files as Media within a player. Since Media just uses fields, this module should work fine with the Media module.
Comment #9
ebieymjunior CreditAttribution: ebieymjunior commentedThanks for the quick answer!
Comment #10
travist CreditAttribution: travist commentedSo, I know that this is an old thread, but I have made a big improvement to how this module handles both audio and video as if they are equal. Please try the latest version and let me know if that satisfies the work done with the patches made.
Also, I will be submitting a core patch within a week where this module will simply be a drupal 7 version of that d8 patch.