我尝试使用dash.js和wowza来播放mpeg视频。我配置VHost.xml以通过端口443流ssl并给它我的keystorepath和keystorepassword。我使用此链接https://maximilian-boehm.com/hp2121/Create-a-Java-Keystore-JKS-from-Let-s-Encrypt-Certificates.htm从letsencrypt证书创建我的jks。我从fullchain.pem和privKey.pem创建了jks。我还在crossdomain.xml中启用了CORS。我可以看到在enginemanager ui中启用了SSL流和CORS。以下是我如何使用端口8087上的wowza rest api创建流。
HTTP POST called : http://ip-address:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/App/streamfiles/96728ede-bda0-4fe7-86e1-724f5ea6237b
Post Response: {"success":true,"message":"","data":null}
HTTP PUT called : http://ip-address:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/streamfiles/96728ede-bda0-4fe7-86e1-724f5ea6237b/actions/connect?connectAppName=App&appInstance=_definst_&mediaCasterType=rtp&vhostName=_defaultVHost_&streamfileName=96728ede-bda0-4fe7-86e1-724f5ea6237b
PUT Response: {"success":true,"message":"Publish stream successfully started [App/_definst_]: mp4:96728ede-bda0-4fe7-86e1-724f5ea6237b.stream","data":null}
我已尝试使用主机名:8087而不是ip-address:8087进行这些POST和PUT请求,并获得相同的错误。 然后从我的js中我在控制台中看到这个错误。
GET https://hostname/App/96728ede-bda0-4fe7-86e1-724f5ea6237b.stream/manifest.mpd 404 (Not Found)
c @ dash.all.min.js:6
(anonymous) @ dash.all.min.js:6
index#/security:1 XMLHttpRequest cannot load https://hostname/App/96728ede-bda0-4fe7-86e1-724f5ea6237b.stream/manifest.mpd. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8090' is therefore not allowed access. The response had HTTP status code 404.
任何人都可以看到我之前做错了什么或者之前遇到过这个问题吗?