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