We have an application which would involve HTTP live streaming. As per the documentation, I can encode my streams and provide the encryption key url (if the key is stored on remote server) in the index file (m3u8).
I want to know if it is possible to store the key locally on the ipad and refer to it locally somehow in the index file. Is it possible to have a local server running on the ipad and provide a localhost url in index files? If so, would the server be bundled with the app build?
Thanks,
Hetal
cocoahttpserver is a HTTP Server on top of ASIHTTPRequest
I haven't done streaming with it, but the homepage says
Asynchronous networking using standard Cocoa sockets/streams
Related
I'm planning building streaming server using Darwin Streaming Server and streaming player client with VLC library. My goals is only through my client that can access the video on Darwin Streaming Server. I don't want anyone access my RSTP link without using my client. Because when I get the any RTSP link like rtsp://localhost/myvideo.mp4 I can directly play it on VLC player. But is it possible to block direct access to RTSP link without using the client I build by configuring on Darwin Streaming Server?
You can use an authentication scheme to only allow authenticated users to access content at particular URL.
Essentially this means that the web application will only send responses to clients it has verified are who they say they are - otherwise it will send an error message or simply not reply.
There is an OWASP authentication cheat sheet for authentication here, which is kept up to date and is a good starting place for you to get an overview:
https://www.owasp.org/index.php/Authentication_Cheat_Sheet
OWASP is an open industry organitsion focusing on application security -they describe themselves as:
OWASP is an open community dedicated to enabling organizations to conceive, develop, acquire, operate, and maintain applications that can be trusted
Note that this will not stop authorised users being able to copy and potentially re-distribute the content. For that the typical defence is to encrypt the content and either build your own secure player and secure key exchange solution or use one of the standard DRM solutions which cover nearly all devices now.
I'm trying to connect app to server that receive data from iphones using the app and the server would also response back (Location data) kind of like find your friends but done automatically. I don't know what server should be used for iPhone apps. Also what language would be used to communicate with the server ?
Any help/direction/articules would be appreciated.
You can use any server, and any language, as long as it's listening to requests on the port your app specifies, and you've configured it properly.
For starters, here is a nice PHP / iOS tutorial to get you up and running, although I'm not saying your final implementation must be in PHP: http://www.raywenderlich.com/2941/how-to-write-a-simple-phpmysql-web-service-for-an-ios-app
I currently have a website that uses MS SQL and I am interested in creating an iOS client for that website. I would the app to connect to a remote SQL database that is hosted on my website and then I could pull information from that database and display it locally on the device. I would like to also publish information to the database. I am open to use MySQL.
Is this possible and if so does anyone know of any good tutorials that I could check out?
I'd highly recommend placing a thin web layer between your database and your iOS client. You don't want iOS apps connecting directly to your database (unless this is for your own personal use for limited to a handful of people you really trust).
You could write the web layer in PHP (or whatever you fancy). At that point you can use HTTP and JSON between your iOS app and your database.
Put a web service between the phone and the DB.
There are two options :
You can develop webservices/scripts or whatever server side solution that will make your database talk "publicly"
Use a third-party library (like this) that will make your app communicate with the MySQL database.
I am a beginner in iPhone development. I have a single static IP server in my company. I have one web service on that server which gets data from an intranet MSSQL server. I would like to get that data over WiFi to an iPad app, but only over our intranet.
Have any useful links or a sample project? I am using XCode 3.2.6.
It sounds like this is a simple web service consumption scenario, so I would start with consuming it using JSON as the transfer data format and using NSUrlRequest.
Here is an article that walks you through everything you need to know in almost painful detail. It should get you where you wish to go.
I wish upload a file into my iphone app via ftp ( wifi connection on iphone) like some program as airsharing or iFiles..
which are the first steps to do this??
thanks in advance
The iPhone SDK does not have a built-in FTP server, so you will have to implement a simple FTP server yourself.
First, get an overview of the FTP protocol on Wikipedia. Read the actual RFCs, which document the protocol, in the 'Further Reading' section. Some of the external links are helpful for understanding the flow of an FTP transfer.
Next, brush up on iPhone socket communication. The Apple documentation for CFSocket is a good starting point. Consider using the AsyncSocket library to ease implementation.
You would begin by creating an FTP server in your application.