BI Video Stream API with a Session

Ed Duran

n3wb
Joined
Dec 1, 2016
Messages
2
Reaction score
1
I'm working on a "Home Remote" plugin for Blue Iris. I'm using the the BI REST API to Login and Authenticate, which gives me the Session-ID, and using that ID get the CamList which allows me to create BI Devices in HR from the list of Cameras available. I'd like to stream video using the Session-ID that I retrieved during Login.

Using Charles Proxy and UI3 and clicking on a camera, I found this URL which seems undocumented:

Code:
https://{MY-IP-ADDRESS}/video/{MY-CAMERA-ID}/2.0
    ?session={AUTHENTICATED-SESSION-ID}
    &audio=1
    &stream=0
    &h=2160
    &kbps=8192
    &extend=2
The response header says: video/mpeg

If I take this URL and drop it into Chrome, instead of a displaying video stream Chrome is "downloading" the video in the background which isn't what I hoped for. Ultimately I'll use this URL in the "Home Remote" MediaElement to display the video stream.

Q: Using the Session-ID and the API above, can I get the camera stream from Blue Iris?
Q: Would documentation for this API be available?

Thanks
 

Ed Duran

n3wb
Joined
Dec 1, 2016
Messages
2
Reaction score
1
I'm working on a "Home Remote" plugin for Blue Iris. I'm using the the BI REST API to Login and Authenticate, which gives me the Session-ID, and using that ID get the CamList which allows me to create BI Devices in HR from the list of Cameras available. I'd like to stream video using the Session-ID that I retrieved during Login.

Using Charles Proxy and UI3 and clicking on a camera, I found this URL which seems undocumented:

Code:
https://{MY-IP-ADDRESS}/video/{MY-CAMERA-ID}/2.0
    ?session={AUTHENTICATED-SESSION-ID}
    &audio=1
    &stream=0
    &h=2160
    &kbps=8192
    &extend=2
The response header says: video/mpeg

If I take this URL and drop it into Chrome, instead of a displaying video stream Chrome is "downloading" the video in the background which isn't what I hoped for. Ultimately I'll use this URL in the "Home Remote" MediaElement to display the video stream.

Q: Using the Session-ID and the API above, can I get the camera stream from Blue Iris?
Q: Would documentation for this API be available?

Thanks
I found that instead of using /video/{ID}/2.0 ... I am using /mjpg/{ID}/video.mjpg ... and it's working :)
 

TonyR

IPCT Contributor
Joined
Jul 15, 2014
Messages
16,716
Reaction score
38,913
Location
Alabama
I found that instead of using /video/{ID}/2.0 ... I am using /mjpg/{ID}/video.mjpg ... and it's working :)
Yep, using "http://BI-user:BI-password@Bi-server-IP:BI-port/mjpg/CamShortName/video.mjpg" plays in Brave (Chromium) browser, so the above {ID} goes in place of CamShortName in the URL it seems.
 
Top