-4

i have a url

http://admin:123@192.168.1.100/stw-cgi/video.cgi?msubmenu=stream&action=view&Profile=1

when i put this url in an Img tag in html and open then html in chrome or any other browser i can see the live view of my Samsung Winset IPCamera the only problem is this html file when open from chrome in android phone i cannot see the live camera and i got error "uncaught referenceerror: chrome is not defined, source: js/plugincontrol.js line:361" how can i solve this problem? any idea? i write my project with flutter and Image.network cannot show this live camera i have to use webview_flutter library to load html file to show the live camera, IOS is ok but android i have this error

i try to change the UserAgent and something else but its not work

  • 1
    no way to know why your JS code throws the error without seeing the code. Please provide a [repro] of your code. – tacoshy Aug 11 '23 at 13:31
  • "if (typeof chrome.app.window != 'undefined') { // Chrome App" - this is 361 line of code, but its not important because i cannot fix or edit this js file, its on camera – Arman Zahmatkesh Aug 11 '23 at 13:38
  • So if there's an error in code that you cannot change... what kind of solutions are you expecting to have? – Chris Barr Aug 11 '23 at 14:32
  • that code because its in camera cannot be change, i'm looking for solution to solve my problem on client side, my flutter code or html or anything – Arman Zahmatkesh Aug 11 '23 at 14:52
  • the important thing is everything working fine, expect chrome on android mobile – Arman Zahmatkesh Aug 11 '23 at 14:56

0 Answers0