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

feat: add VideoMetadataCarouselView #839

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

jonz94
Copy link
Contributor

@jonz94 jonz94 commented Dec 12, 2024

Example RawNode data:

{
  "videoMetadataCarouselViewModel": {
    "carouselTitles": [
      {
        "carouselTitleViewModel": {
          "title": "Live chat replay",
          "previousButton": {
            "buttonViewModel": {
              "iconName": "CHEVRON_LEFT",
              "accessibilityText": "Previous",
              "style": "BUTTON_VIEW_MODEL_STYLE_MONO",
              "trackingParams": "CNwBEPBbIhMI5eDD9JW7iQMViTh7Bx3eBRkg",
              "type": "BUTTON_VIEW_MODEL_TYPE_TONAL",
              "buttonSize": "BUTTON_VIEW_MODEL_SIZE_XSMALL",
              "state": "BUTTON_VIEW_MODEL_STATE_ACTIVE"
            }
          },
          "nextButton": {
            "buttonViewModel": {
              "iconName": "CHEVRON_RIGHT",
              "accessibilityText": "Next",
              "style": "BUTTON_VIEW_MODEL_STYLE_MONO",
              "trackingParams": "CNsBEPBbIhMI5eDD9JW7iQMViTh7Bx3eBRkg",
              "type": "BUTTON_VIEW_MODEL_TYPE_TONAL",
              "buttonSize": "BUTTON_VIEW_MODEL_SIZE_XSMALL",
              "state": "BUTTON_VIEW_MODEL_STATE_ACTIVE"
            }
          }
        }
      }
    ],
    "carouselItems": [
      {
        "carouselItemViewModel": {
          "itemType": "VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT",
          "carouselItem": {
            "textCarouselItemViewModel": {
              "iconName": "MESSAGE_BUBBLE_OVERLAP",
              "text": {
                "content": "See what others said about this video while it was live."
              },
              "onTap": {
                "innertubeCommand": {
                  "clickTrackingParams": "CNkBEOuICSITCOXgw_SVu4kDFYk4ewcd3gUZIA==",
                  "setLiveChatCollapsedStateAction": {}
                }
              },
              "trackingParams": "CNkBEOuICSITCOXgw_SVu4kDFYk4ewcd3gUZIA==",
              "button": {
                "buttonViewModel": {
                  "title": "Open panel",
                  "onTap": {
                    "innertubeCommand": {
                      "clickTrackingParams": "CNoBEPBbIhMI5eDD9JW7iQMViTh7Bx3eBRkg",
                      "setLiveChatCollapsedStateAction": {}
                    }
                  },
                  "style": "BUTTON_VIEW_MODEL_STYLE_MONO",
                  "trackingParams": "CNoBEPBbIhMI5eDD9JW7iQMViTh7Bx3eBRkg",
                  "type": "BUTTON_VIEW_MODEL_TYPE_TONAL",
                  "buttonSize": "BUTTON_VIEW_MODEL_SIZE_XSMALL"
                }
              }
            }
          }
        }
      }
    ]
  }
}

@LuanRT LuanRT merged commit 9a9bb76 into LuanRT:main Dec 12, 2024
4 checks passed
@jonz94 jonz94 deleted the add-VideoMetadataCarouselView branch December 12, 2024 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants