2008-12-09, 05:19
It would really add a lot of flexibility to the audio aspect of the skinning engine if skinners were able to specify a particular media file to play as a gui media file, meaning it wouldn't show up in playlists, wouldn't interupt currently playing media, and the user wouldn't be able to go to the visualization screen. It would behave the same as the navigation sounds. It could possibly be achieved like this:
XBMC.PlayMedia(gui,Q:/skin/MediaStream/sounds/filename.mp3)
it would be gui as it is here if you want it to play as a gui sound, and perhaps notgui for regular playback.
It would be great if this could be implemented for audio and video as well, allowing use of a video window, but let's go one step at a time..
If implemented right, maybe this could make the feature requested in this http://trac.xbmc.org/ticket/5401 (background audio) possible as well, perhaps with the addition of a <loop> tag for the media, something like
<onfocus>XBMC.PlayMedia([not]gui,[not]loop,Q:/skin/MediaStream/sounds/filename.mp3)</onfocus>
That should allow one to set it so that upon loading the skin it would automatically begin looping the ambient audio and (hopefully) resume automatically after stopping playback of other media
XBMC.PlayMedia(gui,Q:/skin/MediaStream/sounds/filename.mp3)
it would be gui as it is here if you want it to play as a gui sound, and perhaps notgui for regular playback.
It would be great if this could be implemented for audio and video as well, allowing use of a video window, but let's go one step at a time..
If implemented right, maybe this could make the feature requested in this http://trac.xbmc.org/ticket/5401 (background audio) possible as well, perhaps with the addition of a <loop> tag for the media, something like
<onfocus>XBMC.PlayMedia([not]gui,[not]loop,Q:/skin/MediaStream/sounds/filename.mp3)</onfocus>
That should allow one to set it so that upon loading the skin it would automatically begin looping the ambient audio and (hopefully) resume automatically after stopping playback of other media