# channel-video
Start from base library version 2.25.1. Please remaining backward compatible.
WeChat Windows edition: Support
WeChat Mac edition: Support
Relevant api: WeChat Channels Videos
# Functional description
The Mini Program is embedded in the WeChat Channels video component, which supports playing the WeChat Channels video in the Mini Program, and does not have a pop-up window to jump to the WeChat Channels. Attention:
- If the Mini Program and embedded WeChat Channels video are the same subject, embedded WeChat Channels video can support automatic playback
- Base library 2.31.1 From now on, for the non-personal subject Mini Program, if the Mini Program is not the subject of the embedded WeChat Channels video, the embedded WeChat Channels video cannot be automatically played. autoplay=false。
# Property Dxplaination
attribute | type | Default value | Required | Introductions | Minimum version | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
feed-id | string | yes | Only the WeChat Channels video is valid when the Mini Program is in the same body. If the embedded video is not the subject, use the feed-token。 | |||||||||||
finder-user-name | string | yes | WeChat Channels Id, the id beginning with "sph," can be obtained in the assistant of WeChat Channels. WeChat Channels should have the same main body as the current Mini Program. | |||||||||||
feed-token | string | yes | Only embedded Mini Program is not used when the main WeChat Channels video, access to referenceThis guide。 | 2.31.1 | ||||||||||
autoplay | string | yes | Whether to play automatically. Only WeChat Channel video and Mini Program with the same body support set to true。 | 2.31.1 | ||||||||||
loop | boolean | false | no | Does it loop? | ||||||||||
muted | boolean | false | no | Mute play | ||||||||||
object-fit | boolean | contain | no | When the video size is the same as the video When the container size is inconsistent, the presentation of the video | ||||||||||
| ||||||||||||||
binderror | eventhandle | no | Trigger when video playback goes wrong |
# Bug & Tip
tip
: It does not support pure image WeChat Channels content.