Hi everyone
I've been trying to create our own media component, with some added features we needed.
I've started out with the original adapt-contrib-media component, and so far, everything has gone as planned. The component and the added features work fine.
However, now I want to add it to the AT, and I don't want to overwrite the existing media component. So, I made the necessary changes to the bower and javascript files and renamed the template file accordingly.
The component still works fine, but suddenly it can't find the svg icons it needs for the controls that are in the adapt/css/ folder.
It looks for the icons here:
GET http://localhost:9001/adapt/css/bigplay.svg 404 (Not Found)
Which I think is a bit strange, as the files get copied to the /assets/ folder, when building, not the adapt/css/ folder...
Why is that? Am I missing something?
If I change the first attribute in the Adapt.register in the .js file, back to "media" and set the .hbs file's name back to "media" as well, then it works again, even though the files are still at the same position :/
Adapt.register('advancedmedia', AdvancedMedia);
to
Adapt.register('media', AdvancedMedia);
Furthermore, the transcript button seems to get bugged as well. It no longer has a width of 100% and the transcript is shown before you click on the transcript button. I don't know whether that info can help narrow down the problem?
Please help! Thanks.
Henrik