The TVML JS element nowPlayingMenuItem shows black screen with tvOS 11.3 (15L5198d) and earlier betas. I have a bug report for this here but i fear it will not be fixed before the release. What can i do?
https://bugreport.apple.com/web/?problemID=38170063
In Xcode debug log i see this:
Presenting view controllers on detached view controllers is discouraged <TVPMusicNowPlayingViewController: 0x7f918b1a2800>.
2018-03-18 09:28:34.895374+0100 Radio.de[77567:12991780] Attachment range (0.000000,-1738.000000) must include 0 for sliding attachment type <UIAttachmentBehavior: 0x60400019fe40> <UIView: 0x7f918a4d41d0; frame = (0 0; 2 10); layer = <CALayer: 0x60400103b0e0>> <- D -> {1, 4.9999995231628418}
2018-03-18 09:28:34.918558+0100 Radio.de[77567:12991780] Unbalanced calls to begin/end appearance transitions for <_TVPlaybackViewController: 0x7f918a4abc00>.
The presentation happens automatically by the nowPlayingMenuItem and not by my code, it looks like an internal error.
I just use the nowPlayingMenuItem element and it worked like a charme before with tvOS 11 until 11.3 beta:
<?xml version="1.0" encoding="UTF-8" ?>
<document>
<head>
<style>
.descriptionLayout {
tv-text-max-lines: 8;
}
@media tv-template and (tv-theme:dark) {
.badge {
tv-tint-color: rgba(255, 255, 255, 1.0);
tv-highlight-color: rgba(0, 0, 0, 1.0);
}
}
</style>
</head>
<menuBarTemplate>
<menuBar>
<menuItem homeDocumentURL="/templates/Home.xml">
<title id="homeTitle">Home</title>
</menuItem>
<menuItem discoverDocumentURL="/templates/Discover.xml">
<title id="discoverTitle">Discover</title>
</menuItem>
<menuItem searchDocumentURL="/templates/Search.xml">
<title id="searchTitle">Search</title>
</menuItem>
<nowPlayingMenuItem>
<title id="playingTitle">Playing</title>
</nowPlayingMenuItem>
</menuBar>
</menuBarTemplate>
</document>