Skip to content

feat: add VideoMetadataCarouselView#839

Merged
LuanRT merged 1 commit intoLuanRT:mainfrom
jonz94:add-VideoMetadataCarouselView
Dec 12, 2024
Merged

feat: add VideoMetadataCarouselView#839
LuanRT merged 1 commit intoLuanRT:mainfrom
jonz94:add-VideoMetadataCarouselView

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
@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