BlinkMonitorProtocol icon indicating copy to clipboard operation
BlinkMonitorProtocol copied to clipboard

Problems viewing the livestream

Open usmcBowden opened this issue 4 years ago • 10 comments

I've successfully been able to implement most of the key features that I wanted on my desktop program, thanks to this documentation, but I've never actually dealt with something using live streams.

The api returns the server as such immis://3.133.151.88:443/XXXXXXXXXXXXXXXXXXX?client_id=228

What do I actually do with the url to view the livestream? I tried using VLC media players network streaming, but it just tells me it can not open the stream. I'm assuming I need some sort of authentication for that.

Sorry if this is a simple, obvious question. This is just stumping me.

usmcBowden avatar Mar 24 '21 22:03 usmcBowden

I'm running into same issue, no ideas how to fix.

elmbrent118 avatar May 10 '21 08:05 elmbrent118

I read that it's supposed to return rtsps-URLs. Maybe you're outside the local network and thus get an URL that is "proxied" through a vendor-gateway? "immis" sounds like it's the vendor and port 443 might be https. Is that some URL you can access through https? If so, will it return a videostream or maybe a website?

neufeind avatar Oct 07 '21 13:10 neufeind

This project has been so helpful for me, thanks. But I also need to get a live stream of my camera blink but i don´t have idea how to get the correct RTSP URL. Now the URL that returns me the requests is "immis://52.14.239.175:443/xxxxxxxxx__xxxx_G8V000000000F0J0?client_id=123456" Do you know how i can get the live view with this URL or how to get RTSP URL?

lidiaromo avatar Apr 12 '22 22:04 lidiaromo

This doesn't seem to work at all for me, I just get <h1>Not Found</h1> in the response.

The URL I am using is (substituting the correct values for account, network and camera https://rest-prod.immedia-semi.com/api/v5/accounts/111111/networks/22222/cameras/33333/liveview

And also using https://rest.e002.immedia-semi.com/api/v5/accounts/111111/networks/22222/cameras/33333/liveview

JasonBSteele avatar Dec 20 '22 21:12 JasonBSteele

Same for me...

agavrel avatar Dec 27 '22 00:12 agavrel

OK, had a stray CR at the end of my URL which seemed to cause a problem for my query using Postman. I have fixed it and exported to curl to get:

curl --location --request POST 'https://rest.e002.immedia-semi.com/api/v5/accounts/11111/networks/22222/cameras/33333/liveview' \
--header 'token-auth: xxxxxxxxxxxxxxxxxxxxxx' \
--header 'Content-Type: application/json' \
--data-raw '{"intent":"liveview","motion_event_start_time":""}'

This returned

{
    "command_id": xxxxxxxxxxxxxxxx,
    "join_available": true,
    "join_state": "available",
    "server": "immis://3.71.3.xx:443/_T_xxxxxxxxxxxxxxxx__IMDS_xxxxxxxxxxxxxx?client_id=116",
    "duration": null,
    "extended_duration": 5400,
    "continue_interval": 30,
    "continue_warning": 10,
    "polling_interval": 15,
    "submit_logs": true,
    "new_command": true,
    "media_id": null,
    "options": {}
}

which I guess most of you are getting.

Googling about... and no one seems to know how to view the "immis" stream :(

JasonBSteele avatar Dec 27 '22 12:12 JasonBSteele

Have you tried replacing immis with rtsps?

Also not sure what you did with Postman, I have this (notice that I use owls instead of cameras):

curl --location --request POST 'https://rest-xxxx.immedia-semi.com/api/v5/accounts/xxxxxx/networks/xxxxxx/owls/xxxxxx/liveview' \
--header 'token-auth: xxxxxxxxxxxxxxxxxxxxxx' \
--header 'Content-Type: application/json' \
--data-raw '{"intent":"liveview", "motion_event_start_time":""}'

and it is returning status code 404 with <h1>Not Found</h1>

agavrel avatar Dec 31 '22 02:12 agavrel

Have you tried replacing immis with rtsps?

Also not sure what you did with Postman, I have this (notice that I use owls instead of cameras):

curl --location --request POST 'https://rest-xxxx.immedia-semi.com/api/v5/accounts/xxxxxx/networks/xxxxxx/owls/xxxxxx/liveview' \
--header 'token-auth: xxxxxxxxxxxxxxxxxxxxxx' \
--header 'Content-Type: application/json' \
--data-raw '{"intent":"liveview", "motion_event_start_time":""}'

and it is returning status code 404 with <h1>Not Found</h1>

Yes, tried replacing it and using VLC to view it but got: Your input can't be opened: VLC is unable to open the MRL 'rtsps://3.72.113.184:443/0hmQtWIoAH5K73p4__IMDS_821447022?client_id=116'. Check the log for details.

I set up the log file for VLC and restarted it and tried again - but didn't get anything at all in the log (I may be doing something wrong).

It's strange you are unable to even get the immis link back. The curls look almost identical... apart from the owls :)

JasonBSteele avatar Jan 02 '23 15:01 JasonBSteele

Same problem here, immis link can't be open in vlc

simon2022 avatar Dec 06 '23 01:12 simon2022