Skip to content

Commit

Permalink
feat: fix issue with removing manager post-playback
Browse files Browse the repository at this point in the history
  • Loading branch information
gabidobo committed Mar 21, 2024
1 parent 807a13b commit 1a1160e
Show file tree
Hide file tree
Showing 8 changed files with 616 additions and 904 deletions.
282 changes: 152 additions & 130 deletions Docs/Classes/APSChromecastControlPlugin.html
Original file line number Diff line number Diff line change
@@ -1,156 +1,178 @@
<!DOCTYPE html>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">

<title>APSChromecastControlPlugin Class Reference</title>

<link rel="stylesheet" href="../css/style.css">
<meta name="viewport" content="initial-scale=1, maximum-scale=1.4">
<meta name="generator" content="appledoc 2.2.1 (build 1334)">
</head>
<body class="appledoc">
<header>
<div class="container" class="hide-in-xcode">

<h1 id="library-title">
<a href="../index.html">Veeplay Google Ima SDK Plugin </a>
</h1>

<p id="developer-home">
<a href="../index.html">Veeplay</a>
</p>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title></title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />

</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">Veeplay Google Ima SDK Plugin </a></h1>
<a id="developerHome" href="../index.html">Veeplay</a>
</div>

</div>
</header>

<aside>
<div class="container">
<nav>
<ul id="header-buttons" role="toolbar">
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>

<li id="on-this-page" role="navigation">
<label>
On This Page

<div class="chevron">
<div class="chevy chevron-left"></div>
<div class="chevy chevron-right"></div>
</div>

<select id="jump-to">
<div id="title" role="banner">
<h1 class="hideInXcode"></h1>
</div>
<ul id="headerButtons" role="toolbar">
<li id="toc_button">
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
</li>
<li id="jumpto_button" role="navigation">
<select id="jumpTo">
<option value="top">Jump To&#133;</option>

<option value="overview">Overview</option>













</select>
</label>
</li>
</ul>
</nav>
</div>
</aside>
</li>
</ul>
</header>
<nav id="tocContainer" class="isShowingTOC">
<ul id="toc" role="tree">

<article>
<div id="overview_contents" class="container">
<div id="content">
<main role="main">
<h1 class="title">APSChromecastControlPlugin Class Reference</h1>


<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<th>Inherits from</th>
<td>NSObject</td>
</tr><tr>
<th>Conforms to</th>
<td>APSControlPluginProtocol</td>
</tr><tr>
<th>Declared in</th>
<td>APSChromecastControlPlugin.h<br />APSChromecastControlPlugin.m</td>
</tr>
</tbody></table></div>




<div class="section section-overview">
<a title="Overview" name="overview"></a>
<h2 class="subtitle subtitle-overview">Overview</h2>
<ul>
<li><p>The Chromecast video control plugin. This control only appears when a Chromecast ready device is detected in the current network. To use, register with <code>APSMediaPlayer</code>:</p>

<pre><code> [[APSMediaPlayer sharedInstance] registerAdapter:[APSChromecastControlPlugin new] inGroup:kAPSMediaPlayerControlPluginsGroup];
</code></pre></li>
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="" name="top"></a>
<div class="main-navigation navigation-top">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>


<p>Registration is handled automatically when using <a href="../Classes/APSChromecastManager.html"><code>APSChromecastManager</code></a> to set your application ID.</p>

<p>You can display the Chromecast playback control in the control bar by adding <code>chromecast</code> into the components array, under the <code>controls</code> section in your JSON configuration file:</p>

<pre><code> {
"content": [
"url": "http://......",
"autoplay": true,
"controls": {
"components": [
"playback",
"totalTime",
"slider",
"currentTime",
"chromecast"
]
}
]
}
</code></pre>

<p>Also, you can configure this programatically by adding <code>kAPSChromecastControl</code> to the <code>controlsParameters</code> property on <code>APSMediaUnit</code>:</p>

<pre><code> unit.controlsParameters = @{kAPSControlsComponents: @(APSPlaybackControl|APSCurrentTimeControl|APSTimeSliderControl|APSTotalTimeControl|kAPSChromecastControl|APSFullScreenControl)};
</code></pre>
</div>
</div>
<div id="header">
<div class="section-header">
<h1 class="title title-header"></h1>
</div>
</div>
<div id="container">












</main>

<footer>
</div>
<div class="main-navigation navigation-bottom">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="footer">
<hr />
<div class="footer-copyright">

<p class="copyright">Copyright &copy; 2022 Veeplay. All rights reserved. Updated: 2022-07-18</p>


<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1334)</a>.</p>
<p><span class="copyright">&copy; 2024 Veeplay. All rights reserved. (Last updated: 2024-03-21)</span><br />

</div>
</footer>
</div>
</div>
</div>
</article>

<script src="../js/script.js"></script>
</body>
</article>
<script type="text/javascript">
function jumpToChange()
{
window.location.hash = this.options[this.selectedIndex].value;
}

function toggleTOC()
{
var contents = document.getElementById('contents');
var tocContainer = document.getElementById('tocContainer');

if (this.getAttribute('class') == 'open')
{
this.setAttribute('class', '');
contents.setAttribute('class', '');
tocContainer.setAttribute('class', '');

window.name = "hideTOC";
}
else
{
this.setAttribute('class', 'open');
contents.setAttribute('class', 'isShowingTOC');
tocContainer.setAttribute('class', 'isShowingTOC');

window.name = "";
}
return false;
}

function toggleTOCEntryChildren(e)
{
e.stopPropagation();
var currentClass = this.getAttribute('class');
if (currentClass == 'children') {
this.setAttribute('class', 'children open');
}
else if (currentClass == 'children open') {
this.setAttribute('class', 'children');
}
return false;
}

function tocEntryClick(e)
{
e.stopPropagation();
return true;
}

function init()
{
var selectElement = document.getElementById('jumpTo');
selectElement.addEventListener('change', jumpToChange, false);

var tocButton = document.getElementById('table_of_contents');
tocButton.addEventListener('click', toggleTOC, false);

var taskTreeItem = document.getElementById('task_treeitem');
if (taskTreeItem.getElementsByTagName('li').length > 0)
{
taskTreeItem.setAttribute('class', 'children');
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
}

var tocList = document.getElementById('toc');

var tocEntries = tocList.getElementsByTagName('li');
for (var i = 0; i < tocEntries.length; i++) {
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
}

var tocLinks = tocList.getElementsByTagName('a');
for (var i = 0; i < tocLinks.length; i++) {
tocLinks[i].addEventListener('click', tocEntryClick, false);
}

if (window.name == "hideTOC") {
toggleTOC.call(tocButton);
}
}

window.onload = init;

// If showing in Xcode, hide the TOC and Header
if (navigator.userAgent.match(/xcode/i)) {
document.getElementById("contents").className = "hideInXcode"
document.getElementById("tocContainer").className = "hideInXcode"
document.getElementById("top_header").className = "hideInXcode"
}

</script>
</body>
</html>
Loading

0 comments on commit 1a1160e

Please sign in to comment.