We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f0e8d3 commit c2fb0d5Copy full SHA for c2fb0d5
samples/CommunityToolkit.Maui.Sample/Pages/Views/MediaElement/MediaElementPage.xaml.cs
@@ -274,16 +274,18 @@ async void DisplayPopup(object sender, EventArgs e)
274
275
var popupMediaElement = new MediaElement
276
{
277
+ WidthRequest = 600,
278
+ HeightRequest = 400,
279
AndroidViewType = AndroidViewType.SurfaceView,
280
Source = source,
- MetadataArtworkUrl = "dotnet_bot.png",
281
+ MetadataArtworkUrl = botImageUrl,
282
ShouldAutoPlay = true,
283
ShouldShowPlaybackControls = true,
284
};
285
286
await this.ShowPopupAsync(popupMediaElement);
287
- popupMediaElement.Stop();
- popupMediaElement.Source = null;
288
+ popupMediaElement.Stop();
289
+ popupMediaElement.Source = null;
290
}
291
0 commit comments