Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WidgetProvider's Media (video player) component shows the play button cut in half. #4694

Open
lbdalmendrayMyradar opened this issue Sep 5, 2024 · 1 comment

Comments

@lbdalmendrayMyradar
Copy link

Describe the bug

I want to create a widget with a Media component that let users play a video, but the Play button appears cut in half when I deploy the project. Please see the Image1 attached.

If I use the https://adaptivecards.io/designer/, it appears not cut in half. Please see Image2

Here I attached a template.json with that shows that issue. Remember to replace the <VIDEO_URL-MP4> with a valid video url :

{
  "type": "AdaptiveCard",
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "version": "1.6",
  "body": [

    {
      "type": "TextBlock",
      "text": "Video Title",
      "wrap": true,
      "style": "heading"
    },
    {
      "type": "Media",
      "sources": [
        {
          "mimeType": "video/mp4",
          "url": "<VIDEO_URL-MP4>"
        }
      ]
    }
  ]
}

 

Steps to reproduce the bug

  1. Go to https://learn.microsoft.com/en-us/samples/microsoft/windowsappsdk-samples/widgets/
  2. Download the Widgets.zip file clicking the "Download ZIP" button.
  3. Open the .sln file with VS 2022 in cs-console-packaged\CsConsoleWidgetProvider folder
  4. Replace the CountingWidgetTemplate.json content with the code shared in the Bug Description.
  5. Play "Provider on launch"
  6. Find the widget provider associated in the Widget Dashboard and add the CountingWidget to see the issue.

Expected behavior

I want to see a common Play button.

Screenshots

Image1
image

Image2
image

NuGet package version

None

Packaging type

No response

Windows version

No response

IDE

Visual Studio 2022

Additional context

Windows version: 23H2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants
@codendone @RDMacLachlan @lbdalmendrayMyradar and others