Media viewer for non-public files

21 views
Skip to first unread message

Marwa Saada

unread,
Apr 25, 2023, 5:05:35 AM4/25/23
to DSpace Developers
Hello!   i added the media-viewer-video and media-viewer-image components directly in the file-section.component so that there is a viewer for each file (images, videos).
This only works properly if the bitstream is public, and this is the case also when i test the media-viewer in item page in demo7.dspace UI, the image/video is displayed correctly only if this bitstream is accessible with 'Anonymous' group, if access is only for a specific group assigned then it is not displayed, even for this group, but with error message 'No video/image with supported format and MIME type found'.
Does anyone have an idea/solution?
Thanks in advance!
Bildschirmfoto vom 2023-04-25 11-03-32.png

Tim Donohue

unread,
May 1, 2023, 11:13:16 AM5/1/23
to DSpace Developers
Hi,

It sounds like there may be a bug here.  I think it should support the use case of providing streaming to the group it's access restricted to.  

However, there isn't any way to only allow for streaming without the ability to also download the file (just for clarity).  The basic media-viewer is simply using HTML5 (<video> and <audio> tags, etc) to provide streaming capabilities.   So, if you can download the file, you should be able to stream it... and visa versa.

I'd recommend logging a bug ticket so we can assign it. https://github.com/DSpace/dspace-angular/issues

Tim

Reply all
Reply to author
Forward
0 new messages