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.
When using the media browser widget, media_recorder does not load the configured uri scheme in the field settings. Instead, the default public:// scheme is used. This makes it impossible to record private audio with media browser.
The following patch adds support for this by inspecting the media browser settings passed as query arguments in the form's #action
Comment | File | Size | Author |
---|---|---|---|
media_recorder-uri_scheme_support.patch | 796 bytes | bohemier |
Comments
Comment #2
Donit CreditAttribution: Donit commentedI've tested your patch with the latest alpha11 and dev version (caches cleared, database updated) - without success.
The files (audio or video) stay public in a field with Media browser widget and with a private upload destination and private URI scheme - other non-Recorder files stay private, though. A private destination works currently, even without your patch, just with the Media Recorder widget.
I also don't see the files that a recorder within the browser widget without enabled public URI scheme.
Anything else that you did change?
Comment #3
bohemier CreditAttribution: bohemier commentedComment #4
bohemier CreditAttribution: bohemier commentedHi Donit.
I checked my version and I am using alpha11, with the patch. As far as I remember, without it, I was unable to save private audio. You're saying that private scheme works without the patch for uploaded files?
Comment #5
Donit CreditAttribution: Donit commentedHi bohemier,
yes, but only with the widget "Media Recorder", not with the widget "Media Browser".
Comment #6
bohemier CreditAttribution: bohemier commentedYes, this is why I made this patch, to make the uri scheme work with media browser... were you able to make it work?
Comment #7
Donit CreditAttribution: Donit commentedNo. I went on with the recorder widget instead of the browser. But I would appreciate a solution.
Comment #8
bohemier CreditAttribution: bohemier commentedYou're right, I tried it in a new install and it doesn't seem to work... I'm going to have to look into what I did exactly because I was able to make it work. I am also doing some custom conversion at the end of the upload to make all audios the same format... perhaps there is something there...
Comment #9
Donit CreditAttribution: Donit commentedSounds good. I will definitely test/review it then.
Comment #10
Donit CreditAttribution: Donit commentedHave you had the chance to take another look into it, bohemier?
Comment #11
bohemier CreditAttribution: bohemier commentedSorry I didn't have time to look into that project yet... I will be doing some upgrade in january though... Will try to look as soon as I can.
Comment #12
Donit CreditAttribution: Donit commentedAny news, bohemier?