You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered:
Code: @ViewChild('streamContainer', { static: true, read: ElementRef })
streamContainer: ElementRef;
ngAfterViewInit(): void {
// Setup the WebSocket connection and start the player
const client = new WebSocket('ws://localhost:9999/');
new JSMpeg.VideoElement(this.streamContainer.nativeElement, client);
}
It does not work...
Code: @ViewChild('streamContainer', { static: true, read: ElementRef })
streamContainer: ElementRef;
ngAfterViewInit(): void {
// Setup the WebSocket connection and start the player
const client = new WebSocket('ws://localhost:9999/');
new JSMpeg.VideoElement(this.streamContainer.nativeElement, client);
}
It does not work...
The second parameter supports a URL. you can directly use the address of WebSocket.
...
- const client = new WebSocket('ws://localhost:9999/');- new JSMpeg.VideoElement(this.streamContainer.nativeElement, client);+ const url = 'ws://localhost:9999/';+ new JSMpeg.VideoElement(this.streamContainer.nativeElement, url);
...
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: