Comments (5)
Let's discuss this in the other issue.
from ffplayout.
If I change the player_url value from "http://10.145.123.117:8787/live/stream.m3u8 " to http://bntv.space:8787/live/stream.m3u8, the problem is solved. The real problem is that without setting the Access-Control-Allow-Origin header, the browser cannot recognize that 10.145.123.117 and bntv.space is the same host with different "names", so the browser expects that the view stream source address must be the same address that loaded the ffplayout-frontend page to avoid "security" problem.
However there is a network performance issue with this approach, the preview stream will have to be externally routed over the internet before reaching my server, i.e. the preview stream would have to go through an external protocol stack and this results in in delays and dependency on internet connection. I think creating an internal virtual host in /etc/hosts to associate bntv.site with 127.0.0.1 should theoretically solve the problem more efficiently.
from ffplayout.
Implementation screen template suggestion for ffplayout's CORS policy.
from ffplayout.
Sorry @JunioCalu, I will not integrate this, because to me this is more a workaround then a real solution. I don't think there is any way to dynamically update a cors setting from ffpapi. And when it goes to production and people wants to use a proxy (which is still the recommend way), it can leads to confusion and multiple cors settings on different places.
When you use ffplayout only locally, you can use IP or DNS from your local network. When you use ffplayout public setup a proxy for ssl termination and serving of hls playlists. I don't see any need mixing IP and DNS, but if you need it, use a proxy and setup there your cors rule.
from ffplayout.
Good decision. I think maybe it would be useful when the IP of a server has more than one domain name. The example screen was implemented by datarhei/restreamer, in this case they implemented another menu to identify multiple domain names for the same server.
And by the way ffplayout and datarhei/restreamer make a good combination.
from ffplayout.
Related Issues (20)
- Improved Configuration Menu HOT 1
- Integration with Keycloak for Centralized User Management HOT 3
- skipping and next live/https HOT 12
- Getting a 404 on /api/control/1/media/next/ HOT 2
- Possibility to execute command in the playlist to use x9k3 HOT 5
- why we cant stream to instagram HOT 1
- Live time now HOT 6
- Live Crash: Clip begin out of sync for HOT 10
- What ports are needed for ffplayout? HOT 2
- Custom_Filter in playlist item not working HOT 9
- Task script HOT 10
- Unable to handle many files (1000+) HOT 4
- Possibility to see preview HOT 2
- loudnorm HOT 5
- View log HOT 5
- Network interface monitoring not correctly detected. HOT 2
- increase CPU filter HOT 2
- ffplayout-engine did not use in/out on init
- Important message from the developer regarding version v0.20 HOT 1
- ERROR ffprobe HOT 2
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 ffplayout.