2

I am working on Webinar Live Streaming Service. I used Ant Media Server to transcode WebRTC to RTMP. Now I am working on making new broadcasting instance.

this.antMediaService.createLiveStream('LiveApp', 
this.newStream).subscribe((response) => {
      this.streamId = 'test';
      this.webRTCAdaptor.publish(this.streamId);
    }, (error) => {
      console.log('unexpected error', error);
    });

But I faced such an issue

ailed to load http://domain:5080/LiveApp/rest/broadcast/create: Response to the preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:4300' is therefore not allowed access.

How can I resolve it? Thanks

georgeawg
  • 46,994
  • 13
  • 63
  • 85
Jordan
  • 21
  • 2
  • 1
    This is related to CORS. check out https://stackoverflow.com/questions/35588699/response-to-preflight-request-doesnt-pass-access-control-check – Osvaldo Maria Aug 30 '18 at 12:15
  • Also : https://github.com/ant-media/Ant-Media-Server/issues/17#issuecomment-361275274 – Pogrindis Aug 30 '18 at 13:29
  • Hi, This issue is fixed with v1.4.0+ version, please check it out. If you are still having the same issue, Please open issue in Github >> https://github.com/ant-media/Ant-Media-Server/ – Selim Emre Toy Jan 02 '19 at 23:31

0 Answers0