Comments (12)
have a look at the startup messages...
Initializing websockets server on port 8084
Initializing HTTP server on port 8082
from pistreaming.
Ok, should I enable the port 8084 as well?
I did that and still is not showing the image, only the "loading...".
Could you please be more specific?
from pistreaming.
more specific, but you asked for "any clue" :)
Which os/browser (& versions) are you using for the client when on your wifi/lan and when accessing via the internet ?
from pistreaming.
Sorry is because I'm kinda of newbie in this world. :)
In my Pi is Raspbian:
~ $ cat /etc/os-release
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
Browsers: In my local connection it works perfectly. However, when I try to watch the streaming from the web outside my local connection it doesnt work, it shows the site and the loading without showing the video.
I enabled port forwarding in my router for ports 8082 and 8084, but it dont work.
I think it might be something related to port forwarding with my router.
from pistreaming.
Can you confirm you use exactly the same setup (OS & browser combination) when on your Wifi and also when trying to access from outside your home network via the internet?
Your router rules should allow TCP (as opposed to UDP) traffic in both directions.
Open your browsers JavaScript console and paste here any errors you see.
from pistreaming.
MacOS X El Capitan
Browser Chrome
Both when on my Wifi and outside.
My router is configured allowing TCP for both directions.
And on my browser I dont see any console error. :/
from pistreaming.
ok, it's not your router.
The server is serving up a local ip to your client connecting via the internet... I have a fix.
from pistreaming.
Have a look at this.
Basically change the part of the line (51) in server.py
that looks like this:
self.request.getsockname()[0]
with this:
"' + window.location.hostname +'"
from pistreaming.
Hey @WayneKeenan , I will try right now, but makes total sense. Looking the network requests on chrome browser it shows the Pi local IP address not my network address.
from pistreaming.
Its working!!!!! Thanks @WayneKeenan for the quick and awesome help!!!
Would you merge this fix into master?
from pistreaming.
I'm not able todo that, ping @waveform80
from pistreaming.
Ahh, this actually came up in #15 but there I just suggested hard-coding the link to the websocket. You can probably tell I'm not a regular web-developer as I wasn't aware window.location
was no longer a simple string! That's a very nice trick and I'll certainly add it in :)
from pistreaming.
Related Issues (20)
- Syntax Error
- Audio Enhancement Suggestion !!! HOT 2
- IPv6 support missing?
- Taking stills HOT 3
- git clone fails with gnutls_handshake() failed error in the push function HOT 1
- Rasbian Buster
- python3-ws4py The following packages have unmet dependencies: python3-ws4py : Depends: python3:any (>= 3.3.2-2~) HOT 1
- [Question] How "low latency" HOT 2
- after Exit via Ctrl+C, Start fail again.
- BrokenPipeError After Refreshing Web Page
- Trying to get working on a public website
- Getting error in Raspberry pi zero w
- hello! ctr+C Stopping recording .Is there another way to stop recording?thank you!
- Change of resolution produces script failure
- Segmentation fault HOT 1
- What is the version of `jsmpg.js` in the repo? HOT 1
- Autostart at reboot HOT 3
- How do I save a video to my hard drive
- Script does not fully close on CTRL-C
- Webpage cannot be reached HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pistreaming.