Get number of audio tracks for currently playing video - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12) +--- Thread: Get number of audio tracks for currently playing video (/showthread.php?tid=347091) |
Get number of audio tracks for currently playing video - jurialmunkey - 2019-09-08 Does anyone know of a way to check if the VideoPlayer has more than one audio track available? I want to include a button in videoosd to switch audio tracks but only if there is another track to switch to. RE: Get number of audio tracks for currently playing video - sualfred - 2019-09-08 Here you go https://github.com/sualfred/script.embuary.helper/wiki/Service:-Running-tasks#player-audio-track-detection and https://github.com/sualfred/script.embuary.helper/wiki/Service:-Running-tasks#player-audio-and-subtitle-info-labels Edit: The first one is required if you want to have this switch button for PVR too where audiotracks can change from show to show. RE: Get number of audio tracks for currently playing video - jurialmunkey - 2019-09-08 (2019-09-08, 08:57)sualfred Wrote: Here you go Awesome! Thanks I'm surprised that there isn't an infolabel for this. |