Forum Discussion
Hi Mary,
The reason why Owen's example starts with story_content/external_files is because he has placed his audio under the Resources tab (edit the Player options to add Resources) and these are then automatically added to a folder called external_files, which is a sub-folder of the story_content folder. If you don't create any resources, the external_files folder is not created.
I notice from your javascript that you have set up your audio file as:
audio.src="story_content/WebObjects/605VS0Dcn6h/audiofile.mp3"
If, when you publish your file to the web (or LMS), you have a WebObjects/605VS0Dcn6h/ folder in your story_content folder, which contains your audio file named audiofile.mp3, then it should play. If you don't have the folder, you can manually add it once you have published your course and also add the audio file and it should then work.
The advantage of including your audio in Resources is that the folder structure is automatically created for you every time you publish the course. The disadvantage is that it creates a Resources tab and shows your audio in it, which you may not want.
Hope this helps, but if you are still having problems, just get back to me here.
By the way, don't worry about the "black art" of javascript. I hadn't used it before I saw Owen's tutorial either!
As a workaround for the resources tab, you can use a custom player. Only show the resources on the slide with the external javascript libraries. And on your main slides ensure it uses a player that doesnot has the resources. Then you wont see it.