First time here? Check out the FAQ!
![]() | 1 | initial version | |
Hi rmalik,
The src attribute will accept a url relative to the ServletContext. (the root of your webapp) This said, you can still use a file located outside of your ServletContext by using the setContent() method on Audio, and passing the File directly:
myAudio.setContent(new AAudio(new File("D:\\test\\file.mp3")));
(test here on windows, but works the same on linux)
![]() | 2 | No.2 Revision |
Hi rmalik,
The src attribute will accept a url relative to the ServletContext. (the root of your webapp) This said, you can still use a file located outside of your ServletContext by using the setContent() method on Audio, and passing the File directly:
myAudio.setContent(new AAudio(new File("D:\\test\\file.mp3")));
(test here on windows, but works the same on linux)
You can do this in a composer, or by returning the AAudio in a getter of your viewModel in MVVM