Streaming to root of domain instead of /LiveApp - ant-media-server

sorry if this is a really dumb question, but i'd like users to stream directly to stream.domain.com instead of stream.domain.com/LiveApp
is this an Ant thing or something server level?
thanks

Ant Media Server uses application layer in its structure. You need to send a stream with your Application name. For example: rtmp://stream.domain.com/LiveApp/stream1
But, you may use a reverse proxy for your requirements.

Related

What kind of server do I have to use?

I want to code an application quite basic:
A client sends a JSON formated string to a server that asynchronously publish it.
I mean, all the clients will also get the JSON as soon as the server publishes it.
My question is about:
What kind of server to use (I basically only know a bit about web services and servlets)
Where can I host and run the resulting code ? I guess it won't be free, of course.
Sorry if the question seems a bit too wide or something
Python or ruby are well suited for creating such servers
A simple solution is to host an app on Heroku

What about using a microkernel for Node.js + NginX?

Not even sure if it would easily work but for an upcoming project I may need to set up a web sockets only server, it would not have a database, memcache or even serve static files, all it would need to do is work some logic and update other clients.
The server may need to support 1~300000 clients simultaneously so Node.js+NginX makes sense, but maybe not all the other features of a traditional web server (apache for example) are necessary...
Something like Minix sounds like it would work...
This may be exactly what you're looking for:
https://github.com/tmpvar/cluster-socket.io
It allows you to handle large amounts of requests across multiple node processes.
Remember you can always stop into #node.js and ask questions! Make sure to report back with your findings.

How to post a file to an image hosting service in .NET?

Scenario:
localhost receives the current HttpRequest with 3 hidden inputs and a posted file. I must then forward this form data to an external image host and get the response.
See the System.Net.WebClient and related classes. You can use them to create a request to the remote server and handle the response. Also get Fiddler to help you replicate what the browser sends.
I hate doing this. It wastes my server's bandwidth and ties up IIS threads as well as using my server's CPU. It sucks and it's worth avoiding at all cost. Many services like, one that comes to mind is fliqz, provide a mechanism such that the files are uploaded directly from the client to their server (bypassing yours) and then they make a request to your server passing it various info on the query string.

Possibilities of two Web application under a single URL!

I have two web applications developed using ASP.Net. I like to provide a link in Application A to access the aspx page in Application B. By this i can access this both application using the single URL.
Is it possible? if it is possible then how should i proceed?
Suresh
A web application by (my) definition has a unique URL. So, no, you can't really have two separate web applications under a single URL. However, you can have multiple applications on the same server, within their own separate virtual directories. This way you can have:
http://www.mydomain.com/ApplicationA
and
http://www.mydomain.com/ApplicationB
The ONLY way to do this would be by sending either
A different GET query-string to access A or B
A different COOKIE indicating whether you want A or B
Server Side detection of some other data ( Ie: user IP, user Client String etc )
However, this sounds like a BadIdeaâ„¢ and it could become a maintenance headache.
What's the purpose of doing it this way? Not that there's anything wrong per se, but it has a few flags of something that should be avoided. Perhaps if you clarify your question with your need to share a URL, we can give an answer that will help you, instead of just guessing at your requirements.
Are you maybe looking for Server.Transfer?

Retrieving the PC Name of a Client? (Windows Auth)

I have an ASP.net Application that runs on the internal network (well, actually it's running on Sharepoint 2007).
I just wonder:
Can I somehow retrieve the name of the PC the Client is using? I would have access to Active Directory if that helps. The thing is, people use multiple PCs. So, I cannot use any manual/static mapping.
If possible, I do not want to use any client-side (read: JavaScript) code, but if it cannot be done server-side, JavaScript would be OK as well. ActiveX is absolutely out of question.
System.Web.HttpRequest.UserHostname as suggested in this answer just returns the IP :-(
But I just found this:
System.Net.Dns.GetHostEntry(Page.Request.UserHostAddress).HostName
That only works if there is actually a DNS Server to resolve the name, which is the case for my network.
Does System.Web.HttpRequest.UserHostname provide what you're looking for?

Resources