Glad you figured something out!  Good luck

On Sun, Oct 4, 2015 at 4:24 PM, <[email protected]> wrote:

> Thank you Josh. I found a work around.
>
> The clue is here on line 43
>
> https://github.com/stephenmcd/filebrowser-safe/blob/master/filebrowser_safe/settings.py
>
> If I add a setting FILEBROWSER_EXTENSIONS to my mezzanine project
> settings.py I can redefine what the gallery calls an "Image"
> e.g.
>
> FILEBROWSER_EXTENSIONS = {
> 'Folder': [''],
> 'Image': ['.jpg', '.jpeg', '.gif', '.png', '.tif', '.tiff', '.svg',
> '.mp4'], # <--- added video!
>     'Video': ['.mov', '.wmv', '.mpeg', '.mpg', '.avi', '.rm', '.mp4'],
>     'Document': ['.pdf', '.doc', '.rtf', '.txt', '.xls', '.csv', '.docx'],
>     'Audio': ['.mp3', '.wav', '.aiff', '.midi', '.m4p'],
>     'Code': ['.html', '.py', '.js', '.css']
> }
>
> I just have to modify the gallery template to handle the .mp4 file in a
> different way. It is not appropriate to auto thumbnail obviously.
>
> I got this working and then realised hosting my videos on youtube in a
> better solution for videos anyway.
>
> Thank you.
>
>
>
> On Friday, October 2, 2015 at 9:15:50 AM UTC+13, Josh Cartmell wrote:
>>
>> The image gallery only handles images.  I would recommend building your
>> own page type that also handles videos, looking at the implementation of
>> the image gallery as inspiration, it probably won't be super difficult to
>> handle videos as well!
>>
>> Good luck
>>
>> On Tue, Sep 29, 2015 at 6:22 PM, <[email protected]> wrote:
>>
>>> Images are no problem.
>>>
>>> .mov and mp4 files upload to the media library but can't be added to an
>>> image gallery (the select button is disabled).
>>>
>>> Is this works as designed?
>>>
>>> See attached screenshot please.
>>>
>>> Cheers.
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Mezzanine Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Mezzanine Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to