Hi Terry,
> On the Pi 3, doing the above results in all the files having 'rwx'
> permissions for the user and no permissions, eg '---' for the world
> and group. Once I had spotted this and corrected them to give 'r-x'
> permissions, the server worked.
I wouldn't expect HTML files, etc., to have an execute bit set.
Directories require it to allow them to be searched by name, e.g. does
this directory contain the file `foo'?
> The two web pages (Audio Guide and Children's Quiz) both open
> correctly, but in the Audio Guide, nothing plays when I click on a
> link to an item. It works with the Pi 2, but not the Pi 3.
Have you found nginx's log files yet? It will give you a clue whether
the request for the MP3 is reaching it from the browser, and what it did
in turn.
I find I first get re-directed.
$ curl -sSI 'http://www.hadrian-way.co.uk/WMT/Guide/2)%20Gardens%20Area.mp3'
HTTP/1.1 301 Moved Permanently
Content-Type: text/html; charset=iso-8859-1
Connection: keep-alive
Keep-Alive: timeout=15
Date: Sun, 19 Feb 2017 18:23:21 GMT
Server: Apache
Location: http://www.hadrian-way.co.uk/WMT/Guide/2)%20Gardens%20Area.MP3
And then told it's audio/mpeg.
$ curl -sSI 'http://www.hadrian-way.co.uk/WMT/Guide/2)%20Gardens%20Area.MP3'
HTTP/1.1 200 OK
Content-Type: audio/mpeg
Content-Length: 3333768
Connection: keep-alive
Keep-Alive: timeout=15
Date: Sun, 19 Feb 2017 18:23:39 GMT
Server: Apache
Last-Modified: Sun, 19 Feb 2017 12:21:56 GMT
ETag: "32de88-548e1315f1ce6"
Accept-Ranges: bytes
> Are there any codecs or encoders that need to be installed on the
> server for the audio tag to work in html5?
nginx is just serving up files and stating their MIME type. I don't
think it has anything to do with whether audio plays in a browser or
not. Or is your test browser also on the Pi at the moment?
Cheers, Ralph.
--
Next meeting: Bournemouth, Tuesday, 2017-03-07 20:00
Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/
New thread: mailto:[email protected] / CHECK IF YOU'RE REPLYING
Reporting bugs well: http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR