JavaScript using mjpeg with basic authentication in cordovaapp

To get a motionjpeg stream from a ip camerIn a native App I would add a RequestHeader to the GET-Request containing the credentials. In an ajax-call I also can append headers to get a single image.

But to show continuous images the only way seem to be using

<img src="url_to_mpjeg">

The webui of the camera is successfully doing the GET-call like this: 1. you enter the ui with a request to index.html, which needs credentials 2. any further request (like the GET request) automatically have the basic authentication injected by the browser

So I also tried calling another URL of the camera with authentication-header in advanced but this doesn't work in cordova. Every single request needs a manual authentication in the header, nothing is magically added to the headerfields.

I think the reason why it automatically works in the camera webui is because the cameras index.html and further requests are all from the same origin, but in my cordovaapp, the UI is coming from file://local somewhere.

Is there a way in javascript to call a jpeg stream with basic authentication?

Answer:1

I have a form. I try to submit this form from a different function. To do so I created a ref. This ref, when printed, has the correct HTML Node and this node also has an submit method. When this ...

I have a form. I try to submit this form from a different function. To do so I created a ref. This ref, when printed, has the correct HTML Node and this node also has an submit method. When this ...

  1. react form onsubmit not working
  2. react form onsubmit get values
  3. react form onsubmit event
  4. react form onsubmit values
  5. react form onsubmit redirect
  6. react form onsubmit typescript
  7. react form onsubmit enter key
  8. react form onsubmit preventdefault
  9. react form onsubmit refresh page
  10. react form onsubmit functional component
  11. react form onsubmit example
  12. react form onsubmit async
  13. react form onsubmit not firing
  14. react form onsubmit this undefined
  15. react form onsubmit hooks
  16. react form onsubmit do nothing
  17. react form onsubmit validation
  18. react form onsubmit doesn't work

Description: Have defined a JSON Object, as a global variable. var JSON_OBJECT = []; [ { "user_id": "123", "AF": [ { "formula_type": 0, "lag": 0 } ...

Description: Have defined a JSON Object, as a global variable. var JSON_OBJECT = []; [ { "user_id": "123", "AF": [ { "formula_type": 0, "lag": 0 } ...

  1. change value json javascript
  2. change value json python
  3. change value json
  4. change value json object jquery
  5. change value json object
  6. change value json java
  7. change value json php
  8. change value json c#
  9. change json value powershell
  10. change json value bash
  11. change json value typescript
  12. change json value jquery
  13. change json value node js
  14. change json value js
  15. change json value android
  16. change json value jq
  17. change json value angularjs
  18. change json value groovy
  19. change value of json object javascript
  20. change value in json file python

I'm currently programming a webstie where the users can Upload .mp4 videos. I would like to make a thumbnail when the user uploads his video and write this image to a .jpg or .png file on my server. ...

I'm currently programming a webstie where the users can Upload .mp4 videos. I would like to make a thumbnail when the user uploads his video and write this image to a .jpg or .png file on my server. ...

  1. canvas save jpeg
  2. save canvas image jpeg

I've hit a snag after a few hours -- wondered if a fresh minded developer can just review the below, the code is simplied to show the problem. I am filtering a property value on an array of objects, ...

I've hit a snag after a few hours -- wondered if a fresh minded developer can just review the below, the code is simplied to show the problem. I am filtering a property value on an array of objects, ...

  1. filter array objects javascript
  2. filter array objects angular 6
  3. filter array objects
  4. filter array objects js
  5. filter array objects swift
  6. filter array objects jquery
  7. filter array objects angularjs
  8. filter array objects lodash
  9. filter array objects angular2
  10. array filter objects php
  11. filter array of objects by property
  12. filter array of objects typescript
  13. filter array of objects javascript es6
  14. filter array of objects by property javascript
  15. filter array of objects javascript by key
  16. filter array of objects by key
  17. filter array of objects by key value
  18. filter array of objects javascript by value
  19. filter array of objects based on property
  20. filter array of objects javascript based on property