Cannot load the stream by PutMovieFromStream

.NET Edition of the F-IN-BOX
tonychan
Posts: 3
Joined: Thu Aug 17, 2006 3:53 am

Cannot load the stream by PutMovieFromStream

Postby tonychan » Thu Aug 17, 2006 4:11 am

Hi Softanics Site Admin,

I have a question when I try to load the decrypted file stream by PutMovieFromStream() method. The code sample are as follows.

Code Sample:
----------------------------------------------------------------------------
'119.enc is the encrypted file
Dim swfStream As System.IO.Stream = New System.IO.FileStream("119.enc", IO.FileMode.Open, IO.FileAccess.ReadWrite)

' Decrypt the file.
Dim decryptedSwfStream As System.IO.Stream = DecryptFile(swfStream)

FlashPlayerControl1.PutMovieFromStream(decryptedSwfStream)

FlashPlayerControl1.FlashMethod_Play()
----------------------------------------------------------------------------

The DecryptFile Function actually takes the encrypted file stream and do some jobs on decryption and assign the decrypted stream to a newly created System.io.MemoryStream(). Then return the result as decryptedSwfStream and let the FlashPlayControl to load it by PutMovieFromStream().

Finally, the outcome is failed. I can sure that everything done on the decryption process is correct. Do you have any solution?

Thx a lot!

Tony Chan

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Fri Aug 18, 2006 5:42 pm

Thank you for your question.

The best way to test is to save decryptedSwfStream into a file and then play movie from the file using FlashMethod_LoadMovie.
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html


Return to “.NET Edition”

Who is online

Users browsing this forum: No registered users and 14 guests