<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: error package MediaLoadRequestData does not exist Chromecast Codelab error in Smart Home Developer Forum</title>
    <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/error-package-MediaLoadRequestData-does-not-exist-Chromecast-Codelab-error/m-p/211254#M315</link>
    <description>&lt;UL&gt;
&lt;LI style="font-weight: 400;" aria-level="3"&gt;&lt;SPAN&gt;Could you please&amp;nbsp; open up an issue on the &lt;A href="http://%20https://issuetracker.google.com/issues/new?component=655104&amp;amp;template=1284148" target="_self"&gt;public issue tracker&lt;/A&gt;. From there we can redirect it to the necessary/appropriate internal team.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Tue, 02 Aug 2022 15:54:20 GMT</pubDate>
    <dc:creator>sipriyadarshi</dc:creator>
    <dc:date>2022-08-02T15:54:20Z</dc:date>
    <item>
      <title>error package MediaLoadRequestData does not exist Chromecast Codelab error</title>
      <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/error-package-MediaLoadRequestData-does-not-exist-Chromecast-Codelab-error/m-p/206917#M294</link>
      <description>&lt;P&gt;I am following Google Codelab to setup a Chromecast sender app. In section 6 -&amp;gt; casting video content They provide me following code.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.google.com/cast/codelabs/cast-videos-android#5" target="_blank" rel="noopener"&gt;https://developers.google.com/cast/codelabs/cast-videos-android#5&lt;/A&gt;&lt;A href="https://www.myskingym.co.uk/" target="_self"&gt;-myskingym&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To build MediaInfo object to model my item, which is going to be displayed they provide&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;buildMediaInfo()&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;private&lt;/SPAN&gt; MediaInfo &lt;SPAN class=""&gt;buildMediaInfo&lt;/SPAN&gt;&lt;SPAN class=""&gt;()&lt;/SPAN&gt; {
        &lt;SPAN class=""&gt;MediaMetadata&lt;/SPAN&gt; &lt;SPAN class=""&gt;movieMetadata&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;new&lt;/SPAN&gt; &lt;SPAN class=""&gt;MediaMetadata&lt;/SPAN&gt;(MediaMetadata.MEDIA_TYPE_MOVIE);

        movieMetadata.putString(MediaMetadata.KEY_SUBTITLE, mSelectedMedia.getStudio());
        movieMetadata.putString(MediaMetadata.KEY_TITLE, mSelectedMedia.getTitle());
        movieMetadata.addImage(&lt;SPAN class=""&gt;new&lt;/SPAN&gt; &lt;SPAN class=""&gt;WebImage&lt;/SPAN&gt;(Uri.parse(mSelectedMedia.getImage(&lt;SPAN class=""&gt;0&lt;/SPAN&gt;))));
        movieMetadata.addImage(&lt;SPAN class=""&gt;new&lt;/SPAN&gt; &lt;SPAN class=""&gt;WebImage&lt;/SPAN&gt;(Uri.parse(mSelectedMedia.getImage(&lt;SPAN class=""&gt;1&lt;/SPAN&gt;))));

        &lt;SPAN class=""&gt;return&lt;/SPAN&gt; &lt;SPAN class=""&gt;new&lt;/SPAN&gt; &lt;SPAN class=""&gt;MediaInfo&lt;/SPAN&gt;.Builder(mSelectedMedia.getUrl())
                .setStreamType(MediaInfo.STREAM_TYPE_BUFFERED)
                .setContentType(&lt;SPAN class=""&gt;"videos/mp4"&lt;/SPAN&gt;)
                .setMetadata(movieMetadata)
                .setStreamDuration(mSelectedMedia.getDuration() * &lt;SPAN class=""&gt;1000&lt;/SPAN&gt;)
                .build();
    }&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and also while establishing client from casting session they give&amp;nbsp;&lt;/SPAN&gt;loadRemoteMedia()&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;private&lt;/SPAN&gt; &lt;SPAN class=""&gt;void&lt;/SPAN&gt; &lt;SPAN class=""&gt;loadRemoteMedia&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;SPAN class=""&gt;int&lt;/SPAN&gt; position, &lt;SPAN class=""&gt;boolean&lt;/SPAN&gt; autoPlay)&lt;/SPAN&gt; {
    &lt;SPAN class=""&gt;if&lt;/SPAN&gt; (mCastSession == &lt;SPAN class=""&gt;null&lt;/SPAN&gt;) {
        &lt;SPAN class=""&gt;return&lt;/SPAN&gt;;
    }
    &lt;SPAN class=""&gt;RemoteMediaClient&lt;/SPAN&gt; &lt;SPAN class=""&gt;remoteMediaClient&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; mCastSession.getRemoteMediaClient();
    &lt;SPAN class=""&gt;if&lt;/SPAN&gt; (remoteMediaClient == &lt;SPAN class=""&gt;null&lt;/SPAN&gt;) {
        &lt;SPAN class=""&gt;return&lt;/SPAN&gt;;
    }
    remoteMediaClient.load(&lt;SPAN class=""&gt;new&lt;/SPAN&gt; &lt;SPAN class=""&gt;MediaLoadRequestData&lt;/SPAN&gt;.Builder()
                .setMediaInfo(buildMediaInfo())
                .setAutoplay(autoPlay)
                .setCurrentTime(position).build());
}&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However AS doesn't see&amp;nbsp;&lt;/SPAN&gt;(new MediaLoadRequestData.Builder&lt;BR /&gt;()&lt;SPAN&gt;&amp;nbsp;and building project gives me an error. What is the issue?&lt;BR /&gt;&lt;BR /&gt;&lt;IMG src="https://i.stack.imgur.com/JqPpt.png" border="0" /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Jul 2022 15:10:41 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/error-package-MediaLoadRequestData-does-not-exist-Chromecast-Codelab-error/m-p/206917#M294</guid>
      <dc:creator>reece04</dc:creator>
      <dc:date>2022-07-26T15:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: error package MediaLoadRequestData does not exist Chromecast Codelab error</title>
      <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/error-package-MediaLoadRequestData-does-not-exist-Chromecast-Codelab-error/m-p/211036#M313</link>
      <description>&lt;P&gt;Hi reece04,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to the Chromecast Community forum!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For developer concerns, I'd suggest you join the &lt;A href="https://bit.ly/3Sh22uZ" target="_blank"&gt;Google Developer Groups or Community&lt;/A&gt; for further help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Jennifer&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 06:21:53 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/error-package-MediaLoadRequestData-does-not-exist-Chromecast-Codelab-error/m-p/211036#M313</guid>
      <dc:creator>JenniferV</dc:creator>
      <dc:date>2022-08-02T06:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: error package MediaLoadRequestData does not exist Chromecast Codelab error</title>
      <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/error-package-MediaLoadRequestData-does-not-exist-Chromecast-Codelab-error/m-p/211254#M315</link>
      <description>&lt;UL&gt;
&lt;LI style="font-weight: 400;" aria-level="3"&gt;&lt;SPAN&gt;Could you please&amp;nbsp; open up an issue on the &lt;A href="http://%20https://issuetracker.google.com/issues/new?component=655104&amp;amp;template=1284148" target="_self"&gt;public issue tracker&lt;/A&gt;. From there we can redirect it to the necessary/appropriate internal team.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 02 Aug 2022 15:54:20 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/error-package-MediaLoadRequestData-does-not-exist-Chromecast-Codelab-error/m-p/211254#M315</guid>
      <dc:creator>sipriyadarshi</dc:creator>
      <dc:date>2022-08-02T15:54:20Z</dc:date>
    </item>
  </channel>
</rss>

