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

CommentFileSizeAuthor
media_recorder-uri_scheme_support.patch796 bytesbohemier
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bohemier created an issue. See original summary.

Donit’s picture

I'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?

bohemier’s picture

Title: Add support for selecting them proper uri scheme with media browser » Add support for selecting the proper uri scheme with media browser
bohemier’s picture

Hi 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?

Donit’s picture

Hi bohemier,

yes, but only with the widget "Media Recorder", not with the widget "Media Browser".

bohemier’s picture

Yes, this is why I made this patch, to make the uri scheme work with media browser... were you able to make it work?

Donit’s picture

No. I went on with the recorder widget instead of the browser. But I would appreciate a solution.

bohemier’s picture

You'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...

Donit’s picture

Sounds good. I will definitely test/review it then.

Donit’s picture

Have you had the chance to take another look into it, bohemier?

bohemier’s picture

Sorry 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.

Donit’s picture

Any news, bohemier?