Akamai file upload from asp.net - asp.net

I want to upload video from asp.net application to Akamai server so that members of my application can view the video. I have an account on Akamai and have CP code. Now i want to upload video through c# code. If some one has idea then please guide me do this.
Thanks,
Munish

Uploading to Akamai Edge Storage is done through FTP. Check Akamai documentation for how to get the details of the ftp account. Then go a web search for C# FTP libraries for how to push files to it.
Having said that, in almost all cases, you don't need to "upload" to Akamai at all. Whether you are delivery your video over http or streaming, Akamai can pick up the files straight from your web servers.
In Akamai terminology, this is known as setting up an "origin" server. As long as your server is on the internet, and the video files can be downloaded, then Akamai can use them. For full details, look in the Akamai documentation (either Http Content Delivery or Ondemand Streams) for using origin servers.

Related

Best practice to prevent sharing page url

Looking for some strategy here. We have a secure (subscription-based) website that points to another website for streaming video. Currently, a savvy user could potentially share the link to the streaming page thus bypassing the login. Looking for ideas on how to:
Prevent sharing the link
Cloak the link...or
Make the link from the origin page point to a dynamically-generated URL that can only be visited once.
Thanks in advance!
Unless there is a form of streaming the video from the third party to your application (by streaming I actually mean sending the video in chunks of data to your backend, assembling them back together, and serving the actual assembled video as if it was hosted directly on the same host as the web application, I have personally done this using Amazon S3 for my open-source subscription-based CMS called phpReel) I don't think you can securely do this.
If you do want to go down this route please note that it might get expensive if you have a lot of active subscriptions but if you are interested you could check out these files as they showcase how I have done it for phpReel. I am afraid though that you might need a developer for this job.
On a more optimistic note, may I ask what service do you actually use to stream your videos? For example, Vimeo with the cheapest paid plan offers an option that restricts access to your video outside a specific domain name. Meaning you can set that your videos must be streamed only on domain.com, and thus they will be accessible there and only there.

Storing just images and videos in CloudFlare

I have a mobile app where I want to save and load a few sets of images/videos from Cloudflare.
Can I use Cloudflare to save images and videos and then access it in my mobile app?
No. Cloudflare is just a CDN and DDoS mitigation service. It offers a lot of services, but it does not store content for you. You still need a place to store your static content like Amazon S3, Google Cloud Storage, Azure Blob Storage, Surge, or even just a plain old web server. You can use Cloudflare with one of these services to save bandwidth, decrease latency, and protect from DDoS attacks.
UPDATE: As CJackson234 mentioned, a static image and video hosting service exists now:
Cloudflare Images
Cloudflare Stream

iOS9 and HTTP with dynamic sources

My app is remotely updated with image URLs from tons of different sources, most of these on HTTP servers. Now, these HTTP URLs won't download because of App Transport Security.
Apparently I have two options.
Allow all HTTP URLs: Bad practice, possible App Store rejection
Allow specific domains: Not possible because this would mean I can't remotely add images
How can I download the images without disabling App Transport Security?
What if you programmed your own web based API that downloads and stores said images - then you can retrieve them with a call to it. Secure your API with HTTPS. This also gives you more fine grained control in that you own the server you are querying instead of accessing someone else's.

Photo streaming uploading protocol

In this age of *chat applications and various messaging software, I was wondering if there is already an official protocol (RFC) that would follow the following basic flow:
Client connects to Server for a new session
Client uploads an image (or video) with metadata information (size, resolution, format) to server
Server does some work (not part of the protocol)
Server replies with REJECT then client goes to 1.
Server replies with ACCEPT then client stops and gather the result as part of the reply from the server
I have a proprietary solution now that does the basic (supports basic formats) and as we know, the devil is in the details so I wonder if some existing protocol would cover the stream format and more unhappy paths I may have missed with this simple design.
I'm not aware of any protocol that can handle file probing for you ..
ffprobe is a good open source solution to do this but requires processing power and scale.
So this step must be done on server side, after the upload. You cannot trust the client for such information.
I suggest the cloud approach. Here, we're using Amazon Cloud.
Upload your file to AWS S3. You can use multi part upload for faster upload. No need to scale anything, AWS will do it for you.
Your clients just request a signed URL from your web server. The server return the URL and an ID for this new asset. Your clients upload to AWS S3 using the URL.
Once the upload is done, your client make a call to your server again to say: "I'm done with Asset ID blah". Your server knows the asset is now uploaded and can initiate transcoding, analysis, DB updates, etc.
We do this exact scenario in our project.
For transcoding at scale we use our own open source project: https://github.com/sportarchive/CloudTranscode
This is not an easy business, especially if you want to handle videos.
If you restrict yourself to pictures, then a lot can be done on the user side. You can create several versions of the image in JS, directly in the browser for example or in the mobile app, and upload them to your server. The load is much smaller and you may not need this decoupled architecture.
If you handle videos, you need a solid backend.
Hope this help

Can you protect/obfuscate the URL for assets on Cloud Files?

Just opened an account with Rackspace Cloud Files and I'm looking to protect our video assets. By protect I want to make sure that the user is logged in with an active account prior to serving up the video stream. I suppose it could be done in the .htaccess, however if I use LiveHeaders or any other sniffer I will see the CDN's URL. We will be serving this video to the iPhone as well as through the browser.
You can simply download it on server side and send it to client. Dont ?
Why you have to provide CDC URL ?
For example, using CURL...

Resources