With the help of the Video sample for direct streaming I have developed a multiple camera view page. Once we browse that it successfully return the stream, but unfortunately the stream get stopped.
When I checked on the browser console I saw that there is a close stream command is been send automatically. Is there any reason for that?
Hi Kesara,
I’ve a couple of questions:
- Does the camera stream in your application’s UI, even after CloseStream is called?
- Is it possible that your camera’s codec is H265?
Br,
Nikolay
Hi,
If Web Client is working fine, I cannot really help answer why is your app behaving like that.
Please try to debug your client code and see what logic is causing this CloseStream call… then try to fix it.
Thanks for the reply, I have used almost the same code as per the sample and only difference is the UI that was done by me. That’s the reason why I have asked this
I have noted that stream get closed when the shadow DOM element doesn’t have the focus. when I clicked on the stream container there will be no close stream command send. Does anyone have an idea on this?
Hi, Kesara,
Is it possible to show me the detailed event and message there to check the reason for closing the stream? You can find these details two rows before the command to send a close stream on the image you post it.
<?xml version="1.0" encoding="utf-8"?>c1b6d7c4-ce92-40af-8ac3-3804e4260856RequestCloseStream
This is the request that’s going out.
As per the new finding the video tag doesn’t seem to be auto starting when i right click and click on the play button on the video tag it works.
Yep, but this is post factor the main reason to send this command is here:
Could you check the content of the marked object?
It say’s “Falling back because the video player has been restarted more than : 1 time(s) for a specific time.”
Ok, the closing is because you receive the data from the server but the browser player is not starting. Which browser do you use? Is it possible to update the browser to latest version?
I have used the Google chrome and it has the latest update.
As I have mentioned in the previous comments the stream sample is working fine.
I have used Angular JS on this development will that be an issue in the stream not getting started automatically? That’s the only concern that i have no this.
I do not know how you do implementation on Angular JS but my advice is when the element is loaded or appears on the page you can call videoElement.dispatchEvent(new CustomEvent(‘start’)); and the video will start automatically. If this is not working could you share your code where implemet videos-stream web componet?
Please find the code that I’m starting the stream play based on the cameras that was selected to play.
How many cameras do you try to start?
for the testing i’m trying for a single camera at the moment.
I have tried it by changing the count to 5 and still the same result. I have done a sample html with basic to see if it is an issue with the code, that sample also same. 