camera stream example

418 views
Skip to first unread message

salvatore fusto

unread,
May 17, 2014, 4:41:18 AM5/17/14
to androi...@googlegroups.com
I'm testing this app and its samples, but i've a problem with camera stream: i've installed the video stream demo on my laptop as requested, then i run the camera stream sample on my tablet, click on connect button ,getting an error:

NO PC'S Found!
check that VideoStreamDemo in running on your PC and that you are in wifi range.

Of course on my pc the video stream is running as it visualizes the windows, and my pc is in wififi range, as i edit samples on it: can anyony help to solve?
thancks and regards
salvatore

Dave Smart

unread,
May 17, 2014, 4:57:05 AM5/17/14
to androi...@googlegroups.com
Hi Salvatore,

This problem is usually related to firewall issues.  Make sure your firewall is configured to allow both incoming and outgoing connections for the VideoStreamDemo.exe file.

Regards
David

salvatore fusto

unread,
May 17, 2014, 5:50:24 AM5/17/14
to androi...@googlegroups.com
Dave, i added VideoSteamDemo to my firewall exception, with no luck
i tested on a win7 laptop and on a win xp laptop with the same error.
i tested the wifi demo with the same erros.
i hope to solve.
thanks and regards
salvatore

Dave Smart

unread,
May 17, 2014, 8:15:01 AM5/17/14
to androi...@googlegroups.com
Hi Salvatore,

Do you have multiple network adapters in your Laptop?

Do you have a wired network plugged in to the Laptop?

Do you have an IPv4 address?  (type 'ipconfig' in a command window)

What type  of router are you using?

Do you know if your router blocks UDP broadcast messages?

What firewall and security software are you using?

Regards
David

salvatore fusto

unread,
May 19, 2014, 6:37:43 AM5/19/14
to androi...@googlegroups.com
Dave, i have:
            1 wired connection and 1 wifi connection

             I tested with with both connections, lan and wifi

             Ipv4: laptop address is 192.168.1.50, not assigned by router

             my telephone company, telecom italia, furnished it, 

            I deactivate this protection on router

            Standard win7 firewall and avast antivirus


thanks and regards

salvatore

Dave Smart

unread,
May 19, 2014, 6:56:04 AM5/19/14
to androi...@googlegroups.com
Hi Salvatore,

The VideoStreamDemo.exe will try to open a listening socket on the first network interface it finds.  If your Laptop as a wired connection and a Wifi connection it might cause complications.  I suggest you try just having one of them enabled.

Also, do you know if the Avast antivirus also has a firewall functionality?  Sometimes people have two firewalls running without realizing it.

You could try bypassing your router (as an experiment) by setting up a spare (or friends) Android phone as a Wifi hot spot instead of using your router.

Regards
David

salvatore fusto

unread,
May 19, 2014, 10:05:06 AM5/19/14
to androi...@googlegroups.com
ok Dave, thank you, 
i'll try to solve this problem later: for now i'm trying/studing this fantastic androidScript and i've no doubt that all samples work fine, if properly setted.
another question: do you know some app similar to VideoStreamDemo but for android smartphone/tablets?
thanks and regards
salvatore

salvatore fusto

unread,
May 19, 2014, 10:28:47 AM5/19/14
to androi...@googlegroups.com
Dave, 
after having disconnected the lan cable from my laptop and enabled only wifi, i tested the camera stream on a smartphone, instead of my tablet: now if i click the connect button, i see an alert (title:Viewers) displaying my laptop name, but the videoStreamDemo window remains black, without displying any content: what do you think about?
thanks and regards
salvatore

salvatore fusto

unread,
May 19, 2014, 12:37:59 PM5/19/14
to androi...@googlegroups.com
Dave,
i made some tests on different mobile devices getting:
1)table asus tf101 android 4.1 -> does not work
2)smartphome mediadroid android 4.2 -> does not work
3) smartphone LG   android 2.3.4 -> partially works: pc found but the alert containing the pc name cannot be closed and the window on videosteramdemo remains blank
4) galaxy next android 2.2.1 -> works like a charme!! (if one is able close the alert qith pc names found)
also, wifi demo sample woks only on device 3 & 4 (android 2.x.y) not in 1 & 2 (android 4.x.y)
i hope this can be interesting for you
regards
salvatore                                            

salvatore fusto

unread,
May 19, 2014, 12:48:18 PM5/19/14
to androi...@googlegroups.com
 a little change to my previous: camera demo and wifi demo works only on device with an android version of 2.x.y, non with upper versions.
excuse me if i've bored you :)
regards
salvatore

Dave Smart

unread,
May 20, 2014, 3:36:46 AM5/20/14
to androi...@googlegroups.com
Hi Salvatore,

Thanks for your testing.  I will do some more tests on Jellybean and KitKat this week.

Regards
David

Felix A. Vargas A.

unread,
Oct 27, 2015, 11:18:17 AM10/27/15
to AndroidScript
Hi David,
Any news about this problem? I have similar problem to connect my Samsung Tab2 to my laptop.Win 7. Thanks a lot.

Felix A. Vargas A.

unread,
Oct 28, 2015, 10:29:35 AM10/28/15
to AndroidScript
Well I have AviraPro so it was the firewall option, I shutoff the option and I can see  video stream working well. Thanks anyway.

Rodolfo Jbegood

unread,
Aug 29, 2019, 9:25:30 AM8/29/19
to DroidScript
Hello, I am new to DroidScript but is a really fast way for optimizing the loop code-compile-deploy-debug. I enjoy it!
I resolved also the double-firewall bug thanks to this forum.
Now my problem: I'm modifyng VideoStreamDemo, and the question is:

Where I can find the VideoStreamDemo PC source code?

Thanks in advance.

Symbroson

unread,
Aug 29, 2019, 9:56:30 AM8/29/19
to DroidScript
The PC side creates a socket which is receiving the video data from the specified port (11055)
Maybe it works with vlc media player as well - haven't tried it. If anyone gets it working I'd be interested to see how you did it

Steve Garman

unread,
Aug 30, 2019, 12:18:09 AM8/30/19
to DroidScript

Steve Garman

unread,
Aug 30, 2019, 12:43:35 AM8/30/19
to DroidScript
Only just realised that links to the Premium group

You can find the Javascript source code in a file called main.js in the following folder:-

C:\Program Files (x86)\VideoStreamDemo

It's written using SmartScript which is our JavaScript framework for Windows.

Rodolfo Jbegood

unread,
Aug 30, 2019, 2:21:52 AM8/30/19
to DroidScript
Thank you Steve!!!

Sorry, I just installed the demo without looking inside his folder...

So now I found that there is also a PC DroidScript, great job!!
Reply all
Reply to author
Forward
0 new messages