name: Media playback bug report
description: Create a bug report related to media playback
labels:
  - bug
  - playback
body:
  - type: checkboxes
    id: before-posting
    attributes:
      label: "This issue respects the following points:"
      description: All conditions are **required**.
      options:
        - label: I have discussed this issue in the [Jellyfin forum](https://forum.jellyfin.org/) and/or [troubleshooting chat](https://jellyfin.org/contact) before opening this issue.
          required: true
        - label: This issue is **not** already reported on [GitHub](https://github.com/jellyfin/jellyfin-androidtv/issues?q=is%3Aopen+is%3Aissue) _(I've searched it)_.
          required: true
        - label: I agree to follow Jellyfin's [Code of Conduct](https://jellyfin.org/docs/general/community-standards.html#code-of-conduct).
          required: true
        - label: This report addresses only a single issue; If you encounter multiple issues, kindly create separate reports for each one.
          required: true
  - type: markdown
    attributes:
      value: |
        ## Bug information  
  - type: textarea
    id: description
    attributes:
      label: Describe the bug
      description: |
        A clear and concise description of the bug, including steps to reproduce it and the normally expected behavior.
        You can also attach screenshots or screen recordings to help explain your issue.
      placeholder: |
        1. Go to …
        2. Click on …
        3. Scroll down to …
        4. See error / the app crashes

        Instead, I expect …
    validations:
      required: true
  - type: textarea
    id: mediainfo
    attributes:
      label: Media info of the file
      description: |
        Please share the media information for the file causing issues. You can use a variety of tools to retrieve this information.
        - Use ffprobe (`ffprobe ./file.mp4`)
        - Copy the media info from the web interface
      placeholder: Paste media info…
      render: shell
  - type: textarea
    id: mediacapabilitiesreport
    attributes:
      label: Media capabilities report
      description: |
        Please share the media capability report generated from within the app. To do some follow these steps:
        1. Open the Jellyfin for Android TV app
        2. Connect to a server **that you have admin access to**
        3. Go to Preferences -> Playback -> Advanced playback preferences
        4. On the bottom, press the "Report playback capabilities to server" button
        5. Go to the logs in your Jellyfin dashboard (in your browser)
        6. Open the newest log file, it should be named similar to `upload_Jellyfin Android TV[...].log`
        7. Press the "Download" button and paste the file contents
      placeholder: Paste capability report contents…
  - type: markdown
    attributes:
      value: |
        ## Logs
  - type: textarea
    id: logs
    attributes:
      label: Client logs
      description: |
        Please paste your crash logs here if applicable. You can find these in your servers dashboard under "logs".
        The file name should start with "upload_org.jellyfin.androidtv".
        Make sure that they don't contain any sensitive information like server URL, auth tokens or passwords.
      placeholder: Paste logs…
  - type: textarea
    id: logs-ffmpeg
    attributes:
      label: FFmpeg logs
      description: |
        Please paste your FFmpeg logs here. You can find these in your servers dashboard under "logs".
      placeholder: Paste logs…
      render: shell
  - type: markdown
    attributes:
      value: |
        ## Environment
  - type: input
    id: app-version
    attributes:
      label: Application version
      description: The version of the installed Jellyfin Android TV app.
      placeholder: 0.18.2
    validations:
      required: true
  - type: dropdown
    id: installation-source
    attributes:
      label: Where did you install the app from?
      description: Choose the appropriate app store or installation method.
      options:
        - Google Play Store
        - Amazon Appstore
        - F-Droid
        - Sideloaded APK
  - type: input
    id: device-info
    attributes:
      label: Device information
      description: Manufacturer and model
      placeholder: Nvidia Shield TV Pro (2019), Fire TV Stick HD (2020)
    validations:
      required: true
  - type: input
    id: android-version
    attributes:
      label: Android version
      description: Version of the OS and other information (e.g. custom ROM / OEM skin)
      placeholder: Android 13, Fire OS 7
    validations:
      required: true
  - type: input
    id: server-version
    attributes:
      label: Jellyfin server version
      description: If on unstable, please specify the commit hash.
      placeholder: 10.10.2
    validations:
      required: true
  - type: markdown
    attributes:
      value: |
        ## Additional
  - type: input
    id: other-sources
    attributes:
      label: Other sources
      description: Please link the related forum topics or chat messages that prompted you open this issue.
      placeholder: https://forum.jellyfin.org/…
    validations:
      required: false
