添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

Hello guys!

I'm not able to stop a camera stream on my chrome tab. The stream starts, I close the dialog, but the camera is still recording.

Afterwards I try to get the stream once more:

navigator.getUserMedia({
				audio: false,
				video: true
			}, function (localMediaStream) {
				video.src = localMediaStream;
			}, onFailSoHard);
  

But I do not manage to receive the stream object in order to kill it.

Any ideas?

Thanks.

This seems to be a possible solution:

//Get the video stream and stop the recording:
const video = document.querySelector('video');
var oTracks = video.srcObject.getVideoTracks();
oTracks[0].stop()
                       Enhancing S/4HANA with SAP HANA Cloud Vector Store and GenAI
                       in Technology Blogs by SAP 
                       Add HANA system with XS advanced and streaming analytics to SAP Cloud ALM?
                       in Technology Q&A 
                       SAP UI5 How to get data using external barcode reader
                       in Technology Q&A 
                       Deploying SAP S/4HANA Containers with Kubernetes
                       in Technology Blogs by SAP 
                       SAP PI - REST Receiver PDF Content application/octet-stream
                       in Technology Q&A