Video Player Component

Are basic authentication username and password properties on the roadmap to add to the Perspective Video Player Component?

@Trent.Boudreaux, something like that might be necessary for supporting formats that pass credentials in the URL. I havenā€™t had a chance to work on this yet, but hopefully will soon.

@jball
Passing credentials in the URL appears to be no longer supported by chrome.
https://www.chromestatus.com/feature/5669008342777856

I think weā€™d need to pass the basic authentication in the headers.
Iā€™m assuming thatā€™s how the Vision IP Camera Viewer componentā€™s username and password properties are being handled, since that component works with our cameras without problems (Mobotix)

Iā€™m having a hard time finding a workaround for the Perspective Video Player Component in the meantime.

@Trent.Boudreaux, ah, thatā€™s right; thanks for posting. Passing via headers may be necessary. Will need to find the best solution once I get a chance to get back on this.

I get live video to work in perspective designer .

using the following format

http://x.x.x.x:80/video.cgi

But when I open the webpage it does not work.

I am using a dlink DCS 932L for what its worth.

If any one does get IP camera feed to work in a perspective web page. Do let me know.

@rs326, any errors in the browser console?

Has there been any update on the Perspective Video Player support for Basic Authentication?
Weā€™ve ran into this roadblock again when attempting to stream video from Wave VMS.

Thanks,
-Trent

@Trent.Boudreaux, Iā€™ve opened a feature request on this issue, but it has not been assigned out for development yet.

Is there a way to make Ignition the gateway for the video source?

What i mean is that when Ignition gets a source from a video, it then serves as a gateway for the clients?
This is useful when you use VPN networks for cameras etc, so that clients dont needs to be connected to the vpn network itself.

Is this possible or will it require alot of resources on ignition end besides bandwidht?

Also, is there any update to the components itself regarding drivers? I had no luck getting a video feed with low latency to work :frowning:

You might find this useful:

Though its primary purpose is to re-encode other stream types to MJPEG, it effectively makes the gateway a video server.

2 Likes

Itā€™s poop but you can turn off User Access Control under Maintenance > Admin > Server Setting

On the gateway home page?

On your camera web page

http://your.camera.IP.address/advanced.htm

Any update on this, i have the same problem as well, in vision component, its just work, but in perspective none of the url is workingā€¦

For future reference,

i have find solution, easy but tricky,

i have tried it in windows ecosystem, and i think it will work on other OS as wellā€¦

  1. First, install VLC Player

  2. Try the rtsp link of the cctv on ā€œopen network streamā€ menu , if it works and able to play the cctv stream, now you can close the VLC (this step is optional, just to verify the rstp link).

  3. create batch file, and save it as .bat

:: The following line is neccessary if you need an ability to restart the streams with this batch file
:: Kill all existing streams (the command actually suspends ALL the vlc processes):
taskkill /f /im "vlc.exe"

:: Run two instances of VLC. These would transcode MP4 rtsp-stream to Motion JPEG http-stream:
start vlc -vvv -Idummy rtsp://192.18.13.20:8080/h264_pcm.sdp --sout #transcode{vcodec=MJPG,venc=ffmpeg{strict=1},fps=10,width=640,height=360}:standard{access=http{mime=multipart/x-mixed-replace;boundary=--7b3cc56e5f51db803f790dad720ed50a},mux=mpjpeg,dst=:9911/}
::start vlc -vvv -Idummy rtsp://login:password@192.168.0.3/streaming/channels/2/preview --sout #transcode{vcodec=MJPG,venc=ffmpeg{strict=1},fps=10,width=640,height=360}:standard{access=http{mime=multipart/x-mixed-replace;boundary=--7b3cc56e5f51db803f790dad720ed50a},mux=mpjpeg,dst=:9912/}

:: In order to execute VLC with `vlc` as in exapmle above, you have to add corresponding value to the PATH variable.
:: Otherwise you have to use full path e.g `"C:\Program Files\VLC\vlc.exe"`.

:: Such rtsp-stream uri as rtsp://login:password@127.0.0.1/streaming/channels/2/preview is specific for Hikvision cameras.

:: Access the http-streams like that:
:: For the first camera: http://127.0.0.1:9911 
:: For the the second camera: http://127.0.0.1:9912 
:: For external access change `127.0.0.1` to the address of the server (or PC) you are running VLC on.
:: Your server's Ports you are using for streaming (9911 and 9912 from current example) must be open for external access.
  1. Change the RTSP link with your link, run the file by double click, and the open your browser and input the url of http://127.0.0.1:911, if it work, the you can use the url on the video player component or inline frame component, change the 127.0.0.1 with your server IP so other client able to see the video.

  2. Make sure you run the .bat file at windows start.

i hope this help

Regards

Any update on this development? Same issue as others, Running Amcrest cameras, tried all HTTP and RTSP URLā€™s; cannot get anything through the iFrame or Videoplayer in perspective, had them working in a test screen in Vision.

Tried with and without authentication. Would really need this to be available as we use IP camā€™s for monitoring specific areas.

Hey iboh, I had a similar issue. I was using Axis cameras. I ended up programming a stream profile called VidPlayer in the Axis camera and then accessed the stream, like this:

http://:@xxx.xxx.xxx.xxx/axis-cgi/mjpg/video.cgi?streamprofile=VidPlayer

Donā€™t know too much about Amcrest cameras but this may be possible.

Thatā€™s my first iteration. I havenā€™t tried yet, but going next to an rtsp stream and video compression.

Hi,

I have success with some Hikvision gem model PTZ-N2404I-DE3 with the following url : http://user:password@ip-address/ISAPI/Streaming/channels/102/httpPreview

This is working well in web browser as well as in Perspective iFrame; detailed instruction here https://www.hikvision.com/content/dam/hikvision/en/support/download/how-to/ipc/How%20to%20Get%20IPC%20MJPEG%20Stream%20via%20HTTP%20Commands.pdf

I am using a hikvision IP cam and I have it working in a browser when I can type the username and password into the login box that pops up, but it doesnā€™t work in perspective workstation. It has been almost a year since there has been any official comment from an IA employee on this feature. @jball is there any update on a full featured IP camera view for perspective?

1 Like

I bumped our internal ticket for this request. As of yet, no work has been done. This has been a fairly hot topic from our support folks as well. We certainly see the need and will be looking into how we can best support RTSP.

2 Likes