A. Open the product parameter/article parameter function in the background function of the X system. The name of the product video parameter is written as: product video, and the name of the article video parameter is written as: article video.
B. Configuration code: insert the calling code in the info_product.swan or info_articlet.swan file. If it is a video on the article details page, {{cpsp}} is changed to {{wzsp}}}.
<view class="wrap">
<view class="video-wrap">
<video id="myde" style="width: 100%;" src="/{{info.cpsp}}" controls bindplay="play" bindpause="pause" bindfullscreenchange="fullscreen" bindended="ended"autoplay="true"> </video>
</view>
</view>
C. Insert the style code at the end of index.css.
.video-wrap{width:100%;padding:20rpx 0;}
D. Add video links when publishing articles or products, which must be MP4 format videos.
E、 Re package the applet to preview the effect in the developer tool.
This article is written by Fuwei SEO Special Training Camp Edit and organize.
Search outside and focus SEO training And Saas service solutions around SEO. Over the past 10 years, more than 50000 students have gained technical improvement and contacts here.
SEO courses include mobile search, zero foundation station building, group station SEO thinking, Sowai 6 system, introduction to SEM, etc.
The registration time for Class B 190 is from May 15 to May 31. Please add enrollment customer service Xiaomo WeChat: seowy2021.
WeChat code scanning to add customer service personnel
Our goal is to make it easy for non-technical personnel to learn Internet technology.