Encript extern Video Stream SWF and not FLV
Posted: Fri Dec 03, 2010 10:50 pm
I'm trying to encrypt a video in the swf format function below:
Code: Select all
private void Main()
{
const int nSize = 64 * 1024;
byte[] buffer = new byte[nSize];
while (true)
{
int nReadBytes = EncryptedStream.Read(buffer, 0, nSize);
//// Simple decryption
for (int i = 0; i < nSize; i++)
{
buffer[i] ^= 0x35; //MY ENCRIPT
}
if (0 == nReadBytes)
break;
try
{
OutputStream.Write(buffer, 0, nReadBytes);
}
catch (System.IO.IOException)
{
// Loading is interrupted
break;
}
}
EncryptedStream.Close();
OutputStream.Close();
}
}
In sample_11 i can load external video in swf format but this video does not work.
I need decripty video in format swf and not in FLV.
Help me please.
Simplicio