sillsdev / webonary

Source code for Webonary and related applications that support it
https://www.webonary.org
MIT License
5 stars 3 forks source link

Sound files not working #175

Closed vernastutzman closed 3 years ago

vernastutzman commented 3 years ago

The sound files on the Sos Kundi Webonary site don't play, https://www.webonary.org/soskundi/browse/browse-vernacular-english/#gbdf355fc-c517-47ad-8f8b-452c217ecad0 image

vernastutzman commented 3 years ago

The compiler has just re-uploaded and now the sound files don't work. She is using FLEx on a Linux OS. The sound files were in the correct folder on her machine, /home/correna/.local/share/fieldworks/Projects/Sos Kundi SDK/LinkedFiles/AudioVisual/aak.mp3.

phillip-hopper commented 3 years ago

I'm not familiar with the code, but I see why it isn't working. The URL of the page is

https://www.webonary.org/soskundi/browse/browse-vernacular-english/

On the page the audio file is linked like this:

<audio id="some-id">
  <source src="AudioVisual/aak.mp3"/>
</audio>

which results in the URL of the audio file being

https://www.webonary.org/soskundi/browse/browse-vernacular-english/AudioVisual/aak.mp3

The correct link would be this:

<audio id="some-id">
  <source src="/soskundi/files/AudioVisual/aak.mp3"/>
</audio>

which would point to the correct URL

https://www.webonary.org/soskundi/files/AudioVisual/aak.mp3
vernastutzman commented 3 years ago

soskundi.zip Here is a zip file of what FLEx sent to Webonary. The code of interest is in the configured.xhtml file. It shows as line 3 in Notepad++. Is FLEx writing it incorrectl? She just uploaded on March 2 and she is using the old Webonary system.

vernastutzman commented 3 years ago

The sound files are working now. The last Upload was April 7, 2021.