(function (window, document, $, setTimeout, clearTimeout) { var currentPlayer; var lastPlayerState; var isPositionSliderActive; function populateChapters(elem, chapters, itemId, runtimeTicks) { var html = ''; for (var i = 0, length = chapters.length; i < length; i++) { var chapter = chapters[i]; html += '
'; var extras = []; if (s.Language) { extras.push(s.Language); } if (s.Layout) { extras.push(s.Layout); } else if (s.Channels) { extras.push(s.Channels + ' ch'); } if (s.BitRate) { extras.push((parseInt(s.BitRate / 1000)) + ' kbps'); } streamHtml += extras.join(' - '); streamHtml += '
'; streamHtml += (s.Codec || '').toUpperCase(); streamHtml += '
'; html += ' | ' + Globalize.translate('HeaderName') + ' | '; html += '' + Globalize.translate('HeaderAlbum') + ' | '; html += '' + Globalize.translate('HeaderArtist') + ' | '; html += '' + Globalize.translate('HeaderAlbumArtist') + ' | '; html += '' + Globalize.translate('HeaderTime') + ' | '; html += '|
---|---|---|---|---|---|---|
'; html += ' | '; html += '' + name + ''; html += ' | '; html += ''; if (parentName) { var parentId = item.AlbumId || item.SeriesId || item.ParentId; html += '' + parentName + ''; } html += ' | '; html += ''; html += LibraryBrowser.getArtistLinksHtml(item.ArtistItems || []); html += ' | '; html += ''; if (item.AlbumArtist) { html += LibraryBrowser.getArtistLinksHtml(item.AlbumArtists || []); } html += ' | '; html += '' + Dashboard.getDisplayTime(item.RunTimeTicks) + ' | '; html += ''; html += ' |