tumblr:从视频 html 字符串中检索视频 ID

tumblr: retreive the video id from the video html string

我已经通过 php 连接到 tumblr 并且我已经获得了视频代码,但是当视频是 mp4 并且插入时没有覆盖播放按钮。我注意到,如果我采用独特的视频参考并将其传递给 iframe,它就可以工作。

以下内容来自tumblr。如何在输出中获取数字“123988138584”,以便以不同的方式使用?我需要循环执行此操作,所以我无法搜索该数字,我想我需要在源代码中获取第 5 和第 6 之间的数字。

<video id="embed-59724c3fde66d663835959" class="crt-video crt-skin-default" width="250" height="141" poster="https://31.media.tumblr.com/tumblr_nrfpgvIFCb1twbtyc_frame1.jpg" preload="none" muted="" data-crt-video="" data-crt-options="{&quot;autoheight&quot;:null,&quot;duration&quot;:17,&quot;hdUrl&quot;:&quot;https:\/\/clarestrand.tumblr.com\/video_file\/t:8tTSaNxZkkAOPCxNMgJHPw\/123988138584\/tumblr_nrfpgvIFCb1twbtyc\/720&quot;,&quot;filmstrip&quot;:{&quot;url&quot;:&quot;https:\/\/33.media.tumblr.com\/previews\/tumblr_nrfpgvIFCb1twbtyc_filmstrip.jpg&quot;,&quot;width&quot;:&quot;200&quot;,&quot;height&quot;:&quot;112&quot;}}" controls="controls">
    <source src="https://clarestrand.tumblr.com/video_file/t:8tTSaNxZkkAOPCxNMgJHPw/123988138584/tumblr_nrfpgvIFCb1twbtyc/480" type="video/mp4">
</video>

我对其他想法持开放态度。我需要视频上的播放按钮。

谢谢

preg_match 就是这样

preg_match("/\/video_file\/t\:.*\/(.*)\/.*\/.*\//", "$html", $matches, null, 0);

测试时间:https://xrg.es/#1kiuxbb