You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
</span></div></article></div><divclass="docLastUpdate"><em>Last updated on 6/20/2021 by Petr Bela</em></div><divclass="docs-prevnext"><aclass="docs-prev button" href="/docs/guides/volume"><spanclass="arrow-prev">← </span><span>Volume</span></a><aclass="docs-next button" href="/docs/components/ExpandedController"><spanclass="function-name-prevnext">ExpandedController</span><spanclass="arrow-next"> →</span></a></div></div></div><navclass="onPageNav"><ulclass="toc-headings"><li><ahref="#custom-cast-button-and-cast-dialog">Custom Cast Button and Cast Dialog</a></li></ul></nav></div></div><scripttype="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js"></script><script>
91
+
</span></div></article></div><divclass="docLastUpdate"><em>Last updated on 6/21/2021 by Petr Bela</em></div><divclass="docs-prevnext"><aclass="docs-prev button" href="/docs/guides/volume"><spanclass="arrow-prev">← </span><span>Volume</span></a><aclass="docs-next button" href="/docs/components/ExpandedController"><spanclass="function-name-prevnext">ExpandedController</span><spanclass="arrow-next"> →</span></a></div></div></div><navclass="onPageNav"><ulclass="toc-headings"><li><ahref="#custom-cast-button-and-cast-dialog">Custom Cast Button and Cast Dialog</a></li></ul></nav></div></div><scripttype="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js"></script><script>
</span></div></article></div><divclass="docLastUpdate"><em>Last updated on 6/20/2021 by Petr Bela</em></div><divclass="docs-prevnext"><aclass="docs-prev button" href="/docs/guides/volume"><spanclass="arrow-prev">← </span><span>Volume</span></a><aclass="docs-next button" href="/docs/components/ExpandedController"><spanclass="function-name-prevnext">ExpandedController</span><spanclass="arrow-next"> →</span></a></div></div></div><navclass="onPageNav"><ulclass="toc-headings"><li><ahref="#custom-cast-button-and-cast-dialog">Custom Cast Button and Cast Dialog</a></li></ul></nav></div></div><scripttype="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js"></script><script>
91
+
</span></div></article></div><divclass="docLastUpdate"><em>Last updated on 6/21/2021 by Petr Bela</em></div><divclass="docs-prevnext"><aclass="docs-prev button" href="/docs/guides/volume"><spanclass="arrow-prev">← </span><span>Volume</span></a><aclass="docs-next button" href="/docs/components/ExpandedController"><spanclass="function-name-prevnext">ExpandedController</span><spanclass="arrow-next"> →</span></a></div></div></div><navclass="onPageNav"><ulclass="toc-headings"><li><ahref="#custom-cast-button-and-cast-dialog">Custom Cast Button and Cast Dialog</a></li></ul></nav></div></div><scripttype="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js"></script><script>
<p>Simply follow instructions at <ahref="https://github.com/expo/config-plugins/tree/master/packages/react-native-google-cast">@config-plugins/react-native-google-cast</a> which will take care of all the installation and setup steps.</p>
59
59
<p>Then ignore the rest of this page and jump straight to <ahref="usage">Usage</a>.</p>
<p>Support for building for the iOS Simulator on <strong>M1 Macs</strong> is in beta. It's not published to CocoaPods yet so the process is rather manual. See <ahref="https://developers.google.com/cast/docs/ios_sender#xcframework_beta">https://developers.google.com/cast/docs/ios_sender#xcframework_beta</a> for installation instructions. You'll also need to disable autolinking (see b.3) and add this library pod in Manual mode (b.2.iii).</p>
<li><p>If you don't have <ahref="https://cocoapods.org/">CocoaPods</a> set up yet (RN <=0.59), follow instructions in the <ahref="https://reactnative.dev/docs/integration-with-existing-apps#configuring-cocoapods-dependencies">react-native documentation</a>.</p></li>
68
71
<li><p>In your <code>ios/Podfile</code>, add <strong>one</strong> of these snippets:</p>
69
72
<ul>
70
-
<li><p>If you <ahref="https://developers.google.com/cast/docs/ios_sender/ios_permissions_changes#need_to_remove_guest_mode_support">don't need guest mode</a>, add</p>
<li><p>i. If you <ahref="https://developers.google.com/cast/docs/ios_sender/ios_permissions_changes#need_to_remove_guest_mode_support">don't need guest mode</a>, add</p>
pod <spanclass="hljs-string">'google-cast-sdk-no-bluetooth'</span>
73
76
# <spanclass="hljs-keyword">or</span><spanclass="hljs-keyword">for</span> iOS <spanclass="hljs-number">10</span>/<spanclass="hljs-number">11</span> support
74
77
# pod <spanclass="hljs-string">'google-cast-sdk-no-bluetooth'</span>, <spanclass="hljs-string">'4.6.1'</span>
75
78
</code></pre></li>
76
-
<li><p>If you <ahref="https://developers.google.com/cast/docs/ios_sender/ios_permissions_changes#need_to_keep_guest_mode_support">want to support guest mode</a>, add</p>
<li><p>ii. If you <ahref="https://developers.google.com/cast/docs/ios_sender/ios_permissions_changes#need_to_keep_guest_mode_support">want to support guest mode</a>, add</p>
pod <spanclass="hljs-string">'google-cast-sdk'</span>
79
82
# <spanclass="hljs-keyword">or</span><spanclass="hljs-keyword">for</span> iOS <spanclass="hljs-number">10</span>/<spanclass="hljs-number">11</span> support
80
83
# pod <spanclass="hljs-string">'google-cast-sdk'</span>, <spanclass="hljs-string">'4.6.1'</span>
81
84
</code></pre>
82
85
<p>To finish setting up guest mode, don't forget step 5 in the <ahref="setup#ios">Setup</a>.</p></li>
83
-
<li><p>If you want to link the Google Cast SDK manually, add this and follow <ahref="https://developers.google.com/cast/docs/ios_sender#manual_setup">Manual Setup</a></p>
<li><p>iii. If you want to link the Google Cast SDK manually, add this and follow <ahref="https://developers.google.com/cast/docs/ios_sender#manual_setup">Manual Setup</a></p>
<li><p>If you're using RN >= 0.60, and your <code>ios/Podfile</code> contains <code>use_native_modules!</code>, you'll need to disable autolinking for this package, otherwise the dependency you added in the previous step will conflict with the autolinked one. To do so, create <code>react-native.config.js</code> in the root of your project with this content:</p>
@@ -149,7 +152,7 @@ <h4><a class="anchor" aria-hidden="true" id="b-rn-059"></a><a href="#b-rn-059" a
</span></div></article></div><divclass="docLastUpdate"><em>Last updated on 2/26/2022 by Petr Bela</em></div><divclass="docs-prevnext"><aclass="docs-next button" href="/docs/getting-started/setup"><span>Setup</span><spanclass="arrow-next"> →</span></a></div></div></div><navclass="onPageNav"><ulclass="toc-headings"><li><ahref="#expo">Expo</a></li><li><ahref="#ios">iOS</a></li><li><ahref="#android">Android</a></li><li><ahref="#chrome">Chrome</a></li></ul></nav></div></div><scripttype="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js"></script><script>
155
+
</span></div></article></div><divclass="docLastUpdate"><em>Last updated on 4/13/2022 by Petr Bela</em></div><divclass="docs-prevnext"><aclass="docs-next button" href="/docs/getting-started/setup"><span>Setup</span><spanclass="arrow-next"> →</span></a></div></div></div><navclass="onPageNav"><ulclass="toc-headings"><li><ahref="#expo">Expo</a></li><li><ahref="#ios">iOS</a></li><li><ahref="#android">Android</a></li><li><ahref="#chrome">Chrome</a></li></ul></nav></div></div><scripttype="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js"></script><script>
<p>Simply follow instructions at <ahref="https://github.com/expo/config-plugins/tree/master/packages/react-native-google-cast">@config-plugins/react-native-google-cast</a> which will take care of all the installation and setup steps.</p>
59
59
<p>Then ignore the rest of this page and jump straight to <ahref="usage">Usage</a>.</p>
<p>Support for building for the iOS Simulator on <strong>M1 Macs</strong> is in beta. It's not published to CocoaPods yet so the process is rather manual. See <ahref="https://developers.google.com/cast/docs/ios_sender#xcframework_beta">https://developers.google.com/cast/docs/ios_sender#xcframework_beta</a> for installation instructions. You'll also need to disable autolinking (see b.3) and add this library pod in Manual mode (b.2.iii).</p>
<li><p>If you don't have <ahref="https://cocoapods.org/">CocoaPods</a> set up yet (RN <=0.59), follow instructions in the <ahref="https://reactnative.dev/docs/integration-with-existing-apps#configuring-cocoapods-dependencies">react-native documentation</a>.</p></li>
68
71
<li><p>In your <code>ios/Podfile</code>, add <strong>one</strong> of these snippets:</p>
69
72
<ul>
70
-
<li><p>If you <ahref="https://developers.google.com/cast/docs/ios_sender/ios_permissions_changes#need_to_remove_guest_mode_support">don't need guest mode</a>, add</p>
<li><p>i. If you <ahref="https://developers.google.com/cast/docs/ios_sender/ios_permissions_changes#need_to_remove_guest_mode_support">don't need guest mode</a>, add</p>
pod <spanclass="hljs-string">'google-cast-sdk-no-bluetooth'</span>
73
76
# <spanclass="hljs-keyword">or</span><spanclass="hljs-keyword">for</span> iOS <spanclass="hljs-number">10</span>/<spanclass="hljs-number">11</span> support
74
77
# pod <spanclass="hljs-string">'google-cast-sdk-no-bluetooth'</span>, <spanclass="hljs-string">'4.6.1'</span>
75
78
</code></pre></li>
76
-
<li><p>If you <ahref="https://developers.google.com/cast/docs/ios_sender/ios_permissions_changes#need_to_keep_guest_mode_support">want to support guest mode</a>, add</p>
<li><p>ii. If you <ahref="https://developers.google.com/cast/docs/ios_sender/ios_permissions_changes#need_to_keep_guest_mode_support">want to support guest mode</a>, add</p>
pod <spanclass="hljs-string">'google-cast-sdk'</span>
79
82
# <spanclass="hljs-keyword">or</span><spanclass="hljs-keyword">for</span> iOS <spanclass="hljs-number">10</span>/<spanclass="hljs-number">11</span> support
80
83
# pod <spanclass="hljs-string">'google-cast-sdk'</span>, <spanclass="hljs-string">'4.6.1'</span>
81
84
</code></pre>
82
85
<p>To finish setting up guest mode, don't forget step 5 in the <ahref="setup#ios">Setup</a>.</p></li>
83
-
<li><p>If you want to link the Google Cast SDK manually, add this and follow <ahref="https://developers.google.com/cast/docs/ios_sender#manual_setup">Manual Setup</a></p>
<li><p>iii. If you want to link the Google Cast SDK manually, add this and follow <ahref="https://developers.google.com/cast/docs/ios_sender#manual_setup">Manual Setup</a></p>
<li><p>If you're using RN >= 0.60, and your <code>ios/Podfile</code> contains <code>use_native_modules!</code>, you'll need to disable autolinking for this package, otherwise the dependency you added in the previous step will conflict with the autolinked one. To do so, create <code>react-native.config.js</code> in the root of your project with this content:</p>
@@ -149,7 +152,7 @@ <h4><a class="anchor" aria-hidden="true" id="b-rn-059"></a><a href="#b-rn-059" a
</span></div></article></div><divclass="docLastUpdate"><em>Last updated on 2/26/2022 by Petr Bela</em></div><divclass="docs-prevnext"><aclass="docs-next button" href="/docs/getting-started/setup"><span>Setup</span><spanclass="arrow-next"> →</span></a></div></div></div><navclass="onPageNav"><ulclass="toc-headings"><li><ahref="#expo">Expo</a></li><li><ahref="#ios">iOS</a></li><li><ahref="#android">Android</a></li><li><ahref="#chrome">Chrome</a></li></ul></nav></div></div><scripttype="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js"></script><script>
155
+
</span></div></article></div><divclass="docLastUpdate"><em>Last updated on 4/13/2022 by Petr Bela</em></div><divclass="docs-prevnext"><aclass="docs-next button" href="/docs/getting-started/setup"><span>Setup</span><spanclass="arrow-next"> →</span></a></div></div></div><navclass="onPageNav"><ulclass="toc-headings"><li><ahref="#expo">Expo</a></li><li><ahref="#ios">iOS</a></li><li><ahref="#android">Android</a></li><li><ahref="#chrome">Chrome</a></li></ul></nav></div></div><scripttype="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js"></script><script>
0 commit comments