TVE SDK Quick Start Guide
A step-by-step guide to add Flash video encoding to your website.
Step 5 - Install a Working Sample The sample we are going to install shows how to upload, encode and play a video in your website. Please follow these steps:
- We'll assume that you already installed TVE SDK into a local machine - the sample we are going to install is unpacked when you install the SDK.
- Open the directory where the SDK is installed locally and locate the ASPDotNet directory, usually located at:
C:\Program Files\TVE4SDK\examples\ASPDotNet
- Open and change line 30 of file FLVEncode.cs to your own web-service URL. For instance, if you are going to upload your files to the root of your web server then line 30 of this file should read:
this.Url = "http://www.yourserver.com/FLVEncode.asmx";
- Upload the contents of the above directory (including subdirectories) to your website.
- Call http://www.yourserver.com/FLVEncode.asmx with your web browser to check that there isn't any compilation error.
- Set write permissions for the directories "in" and "out", for the user that IIS is running as.
- Test the application by calling http://www.yourserver.com/upload.aspx and follow the process to the end.
- Check http://www.yourserver.com/out/log.txt for a success message.
Security Considerations
Please be warned that you should take special care when installing this sample to your website because the scripts included in this sample do not perform security verifications. For instance, special attention must be paid to:
- upload.aspx allows the user to upload any kind of file
- directories in and out have write permissions
This is a simple sample to get you started in using TVE SDK and it is not intended for using as a finished video website.
|