Video streaming Wiremock:mp4的字节范围请求

Video streaming Wiremock:mp4的字节范围请求,video-streaming,html5-video,wiremock,wiremock-standalone,Video Streaming,Html5 Video,Wiremock,Wiremock Standalone,我试图用Wiremock(独立jar)模拟mp4视频的字节范围请求 我的映射当前为: {"mappings": [ { "request": { "method": "GET", "urlPathPattern": "/video/(.*?).mp4" }, "response": { "status": 206, "headers": { "Content-Type": "video/mp4",

我试图用Wiremock(独立jar)模拟mp4视频的字节范围请求

我的映射当前为:

{"mappings": [ {
    "request": {
      "method": "GET",
      "urlPathPattern": "/video/(.*?).mp4"
    },
    "response": {
      "status": 206,
      "headers": {
        "Content-Type": "video/mp4",
        "Transfer-Encoding": "chunked",
        "Content-Range": "bytes 0-1023/146515",
        "Content-Length": "1024"
      },
      "bodyFileName": "video/Big_Buck_Bunny_1080_10s_1MB.mp4"
    }
  }
]}
在前端,我使用了一个标准的HTML5视频标签

不幸的是,没有播放视频。
是否可以模拟视频播放(这种方式)

你找到解决办法了吗?@MatthewWilson不,我放弃了:)这永恒的黑暗是什么?你找到解决办法了吗?@MatthewWilson不,我放弃了:)这永恒的黑暗是什么