VistaCam 700 and 900 stream url

New to HA and been trying to set up cameras that I previously used with Vera. They are Vistacam 700 and 900 models. I can access the video streams using VLC player but can’t seem to find the right configuration to view the streams in HA. HA does however display the still image. Have tried both the generic and mjpeg platforms with no luck. Any thoughts on what I might be doing wrong? Here’s the main two configs I’ve used.

stream: 
camera:
  - platform: mjpeg
    name: Basement
    still_image_url: http://192.168.1.144/img/snapshot.cgi?size=x
    mjpeg_url: http://192.168.1.144/img/main.cgi?next_file=main.htm
    username: "admin"
    password: "admin"`

-and-

stream: 
camera:
  - platform: generic
    still_image_url: http://192.168.1.144/img/snapshot.cgi?size=x
    stream_source: http://192.168.1.144/img/main.cgi?next_file=main.htm
    name: Basement
    verify_ssl: false
    username: "admin"
    password: "admin"
    authentication: digest`

Figured it out. Used the config below:

camera:
  - platform: mjpeg
    name: Basement
    still_image_url: http://192.168.1.144/img/snapshot.cgi?size=x
    mjpeg_url: http://admin:[email protected]/img/video.mjpeg

Hi,
Could you please explain a bit more where you add the codes?