Not able to Show live camera RTSP streaming with Angular

前端 未结 1 1368
南方客
南方客 2020-12-16 08:01

I\'m developing a web application with angular, I need to add a window that shows a live RTSP streaming. After searching I found that can be done with JSMpeg js library. In

相关标签:
1条回答
  • 2020-12-16 08:20

    change in ngOnInit "this.streamingcanvas" by "this.streamingcanvas.nativeElement" it should be like this

    ngOnInit() {
    ...
    let player = new JSMpeg.Player('ws://localhost:9999', { canvas: this.streamingcanvas.nativeElement, autoplay: true, audio: false, >loop: true }) }

    0 讨论(0)
提交回复
热议问题