MediaViewer not displaying

358 views
Skip to first unread message

Marc Casals

unread,
Jul 21, 2022, 4:35:50 AM7/21/22
to DSpace Technical Support
Hi,

I want to test the image visualizer and ccording documentation in order to display MediaViewer in the frontend I just have to change the config/config.yml file with this:

mediaViewer:
  image: true
  video: true

The problem is that it's like Angular is ignoring the configuration and keeps showing the thumbnail. I tried building again and also I used the filter-media command just in case. Any idea if I have to run a command or if I'm missing some config?

Also I would like to know if someone managed to implement a PDF viewer for the frontend. I know DSpace does not provide a built-in viewer but maybe there is an unofficial implementation of that.

Thanks in advance


Tim Donohue

unread,
Jul 27, 2022, 11:49:26 AM7/27/22
to DSpace Technical Support
Hi,

The `mediaViewer` feature will only work for Items that have files that have a media type (mimetype) starting with "image/" or "video/".  So, "image/gif" would be supported, as would "video/mpg".  But, you would just see the regular thumbnails for all other items.

Also, make sure you are modifying the "config.prod.yml" file if you are running in production mode... similarly modify "config.dev.yml" if you are using dev mode.  You haven't clarified how you are building/running the UI.

If you find that it's still not working properly, you may want to check for errors in the UI layer (using your browser's DevTools).  See our Troubleshooting guide for more details: https://wiki.lyrasis.org/display/DSPACE/Troubleshoot+an+error#Troubleshootanerror-DSpace7.x(orabove)

If you need more help, let us know on this list.

Tim

Message has been deleted
Message has been deleted

Victorhugo Bisangwa

unread,
May 10, 2024, 6:54:20 AM5/10/24
to DSpace Technical Support
Finally got the Media Viewer to work.

=> As it stood, for some reason I do not know, config.prod.yml was being ignored and therefore media viewer on the UI was not activated even when I set the media viewer to true in the config.prod.yml:

mediaViewer:
  image: true
  video: true

=> I had to modify the default-app-config.ts  so as to set the media Viewer to true and after rebuilding the UI, voila, the media viewer displays and now works fine!

Glad I finally got it work after so many Months...….Still do not why config.prod.yml is being ignored in my production version of Dspace 7.6 (Kind of weird, since I setup a VM with Dspace 7.6 installed and the media viewer worked seamlessly after modification of config.prod.yml)  

Hope this helps someone out there with a similar pain in the neck!

Reply all
Reply to author
Forward
0 new messages