# Mini Program opens WeChat Channels video

In order to meet the needs of different developers, the Mini Program provides two ways to open WeChat Channels videos:

  1. Jump Open WeChat Channels Video: No Subject Restrictions

  2. Embedded WeChat Channels Video:

  • From base library versions 2.25.1 to 2.31.1, Mini Programs need to have the same subject or associated subject as a WeChat Channels video
  • Starting with base library version 2.31.1, non-personal subject Mini Programs can be embedded with non-personal subjects/Related Subjects WeChat Channels Video

# Get the parameters

# finderUserName

On behalf of WeChat ChannelsID, get WeChat ChannelsID need to login[WeChat Channels Assistant](https://channels.weixin.qq .com ), you can check your WeChat ChannelsID on the homepage.

# feedId

A unique identifier representing the video of WeChat Channels, you need to login to get the feedId of the video[WeChat Channels Assistant](https://channels.weixin.qq .com ), InDynamic managementThe module can copy the feedId for each video it publishes.

# feed-token

From the base library 2.31.1 Start support

Represents the identity of the non-subject WeChat Channels video, and the non-personal subject Mini Program can be accessed through thechannel-videoComponent, embedded in the Mini Program non-subject WeChat Channels video.

The steps to get feed-token are as follows:

  1. LandMP Platform, InSetting - Basic Settings - Privacy and SecurityfindGet Access to WeChat Channels Video ID, and turn the switch on

  2. The mobile terminal finds the WeChat Channels video you want to embed, and copies the feed-token of the video, as shown below:

When using this capability, developers need to pay attention to:

  1. Time Limit: Effective within 24 hours after the switch is turned on. The mobile terminal will not display after the failureRefer to the video in the Mini ProgramIf you want to continue to get, you need to turn on the switch again

  2. Effective range: The switch on state is only effective for the current operator. That is, the above steps 1 and 2 need to be the same operator, if developer A opens in the MP platform.Get Access to WeChat Channels Video IDSwitch, only A can copy the feed-token of WeChat Channels video on the mobile terminal, and other developers with Mini programs do not show the mobile terminal.Refer to the video in the Mini ProgramEntrance

# Methods of Use

# Jump Open WeChat Channels Video

From the base library 2.19.2 Start support

Small programs can be accessed throughwx.openChannelsActivityInterface to jump to the video page of the specified WeChat Channels to watch the video, no subject requirements.

# Embedded WeChat Channels Videos

From the base library 2.25.1 Start support

Small programs can be accessed throughchannel-videoComponent embedded in the Mini Program WeChat Channels video, and support no pop-up jump to open WeChat Channels corresponding video, use the component should pay attention to:

  1. No qualification requirements for component invocation
  2. Image-only WeChat Channels Content Not Available
  3. Before Base Library 2.31.1, only WeChat Channels videos with subjects or associated subjects can be referenced and Mini Programs, and starting from Base Library 2.31.1, non-personal subject Mini Programs can be supported to embed WeChat Channels videos with different subjects or associated subjects.

# Substantive judgment

# Subject information query

The main information of the Mini Program can be inquired through the Mini Program Information Page - Development Team, and the main information of the WeChat Channels can be inquired through the Home Page - Authentication of the WeChat Channels.

# Subjective judgment logic

If the Mini Program has the same body as WeChat Channels, the relevant interface can be invoked. If the Mini Program is different from the body of WeChat Channels and the following three conditions are met at the same time, the relevant interface can be called:

  1. The Mini Program is boundWeChat Open Platformaccount
  2. The relationship between the Mini Program and the WeChat open platform account is the same subject orRelated subject
  3. Subjects with WeChat Channels in the list of subjects and associated subjects of WeChat Open Platform accounts The application process for associated subjects can be referred to: https://kf.qq.com/faq/190726e6JFja190726qMJBn6.html