How to convert to amp-video for Videopack
-
I converted the video tag to the amp-video tag.
the_content = preg_replace (‘/ <video (. *?)> / I’,'<amp-video layout = “responsive” $ 1> </ amp-video>’, $ the_content);
$ the_content = preg_replace (‘/ <video (. *?) \ /> / i’,'<amp-video layout = “responsive” $ 1> </ amp-video>’, $ the_content);————————————————– ————————————————– ――――
<amp-video layout = “responsive” id = “video_kgvid_6” controls = “” preload = “none” poster = “https://womandream.jp/wp-content/uploads/2021/12/MXGS-581_thumb1.jpg” width = “640” height = “360” class = “fitvidsignore video-js kg-video-js-skin”> </ amp-video>
<source src = “https://womandream.jp/wp-content/uploads/2021/11/MXGS-581.mp4?id=6” type = “video / mp4” data-res = “288p”>
.
</ div>
——————————————-If a person is using Videopack, it will be converted like this, but the parent tag of the “tag” source “is” div “, but only” picture “can be used. I got the error message from Google.
Does anyone know how to convert for Videopack?
The page I need help with: [log in to see the link]
- The topic ‘How to convert to amp-video for Videopack ’ is closed to new replies.