Question

Macromedia Flash ActiveX Control: load from stream

Asked by: ciuly

Hi experts,

I need an urgent solution for this problem.

I have found a component that seems to do something like this here: http://www.flashplayercontrol.com/delphi/help/index/how_to/play_flv_from_stream.html but as you can see, it only says about flv: I want to be able to play swf from a stream.

This is a classic problem of accessing a resource from a crypted stream without saving it to disk.

If you have other ideas on how to play swf files from a stream, post them. Preferably using the ActiveX control. Next in favor is any other free solution. Paid solutions are not an option, as flash playing is free (customers see it like that since the flash player is free)

c/c++ code will also do fine as I can convert it to delphi myself. I only need to know how to do it.

Many thanks in advance.

P.S. - I don't need optimum solutions, just a solution that works

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2005-08-20 at 09:06:28ID21533992
Tags

flash

,

activex

,

delphi

Topic

Delphi Programming

Participating Experts
4
Points
500
Comments
10

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. How to Play swf Flash without installing Macromedia Player
    i need to play a swf flash files on a computer without installing the Flash Player or Macromedia Flash i include the (SWFLASH.OCX)in my project as shockwave control it works but it does not work on some computers don't have the Flash Player or Macromedia Flash Please help...
  2. Real Player ActiveX playing video content...  in delphi??
    Im tired searching on the web for an ActiveX control that can play real media content. The usual activex that realone installs is RealAudio and it doesnt work for me when I try to open a video file or URL. Anyone of you have been able to play .rm files or video content into...
  3. Adjusting the Macromedia Flash player detector
    I'm putting together a Flash player detector my site and I've downloaded the 'Flash Player Detection Kit' from Macromedia from: http://www.macromedia.com/software/flashplayer/download/detection_kit/ I've decided to go for a 'Client-Side Script' using vb-script and javascrip...
  4. Anyone Have Media Player Activex Info?
    I'm looking for information on the features and how to use the activex media player (D5). I can find very little info when I google it, looking for how to use it compared to the Delphi media player VCL component, as I want to use the activex. For example I'm looking for how...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: RadikalQ3Posted on 2005-08-20 at 09:31:47ID: 14716029

Hi!

Have you downloaded the demos?
It seems to be able to play embedded swf too...
I think that is the same mehod used for the  Flash Video (FLV)

In fact, the sample2 is called:

Sample2_SWF_FLV_Embedding
From its readme file:

This sample shows how to load and play SWF/FLV directly from TStream...

 

by: anorganixPosted on 2005-08-20 at 10:12:17ID: 14716148

Hi, ciuly! I hope I can help you...

Check out this address:   http://www.delphiflash.com - the Delphi SWF SDK homepage.

To play a swf file from a stream you can use the following piece of code:

var
  Movie: TFlashMovie;
  MS: TMemoryStream;
begin
  MS := TMemoryStream.Create;
  { ...your code here... }
  FlashPlayerControl.PutMovieFromStream(MS);
  MS.free;
end;

 

by: ciulyPosted on 2005-08-20 at 10:25:36ID: 14716191

RadikalQ3: I didn't download the demos, as the solution is not free ;)

anorganix: I'll look into that. Looks promising :)

 

by: ciulyPosted on 2005-08-20 at 10:50:07ID: 14716272

anorganix: the license is a little tricky, I'll have to check with my employer and let him decide if the license is acceptable (this will probably be on monday).

any other solutions are still welcome:
- I am firstly interested in directly using the macromedia flash activex control. If someone knows how to use the interfaces exposed therein (mainly for low-level access to the flash engine: get/set stream), is also welcomed to post :)

another idea that came into my mind: hooking the control. I think there might be a posibility to hook on the event that gets the network stream given an url (see SetGlobalOnLoadExternalResourceHandler on http://www.flashplayercontrol.com/delphi/help/index/how_to/play_flv_from_stream.html) They have done it somehow, so it's possible :)

 

by: ciulyPosted on 2005-08-21 at 00:00:46ID: 14718029

I decided that this problem is a little more difficult than the usual, so if anyone comes up with a solution for using the macromedia flash activex control, I will increase the points for this question to 1000.

I accept any language: c/c++,delphi,visual basic,c#, etc: provided that the solution is
- uses directly the activex control (no paid sdk's or other 3rd party stuff)
- optional : it's free

 

by: EugeneK-biruzaPosted on 2005-08-21 at 03:06:45ID: 14718303

Hi,

Unfortunately I don't know a freeware stuuf for this approach. But here is not very expensive but very usefull component:

TFlashPlayerControl
http://www.devarchive.com/f2372.html

Besides of all, there is obviously mentioned that it can read from streams.

Also, here is nice stuff:

Delphi SWF SDK
http://www.devarchive.com/f2631.html

 

by: ciulyPosted on 2005-08-21 at 12:52:22ID: 14720118

So, update :)

@EugeneK-biruza:
- TFlashPlayerControl is the one I mentioned in the question ;)
- Delphi SWF SDK was  mentioned by anorganix
But thank you for your help. Much appreciated.

About my problem: I have found two possibilities:
1) using MovieData property of the activex control; they say this will do it, but noone sais how to do it (what is the data to be set for this property). My guess it could be encoded in some way. It could also be an xml file. I'm just guessing. I didn't find anything on the data type to be set for this property. Maybe you guys have an idea or you can find the answer :)
2) using some interfaces as described in this thread:
http://groups.google.ro/group/macromedia.open-swf/browse_thread/thread/131d5084eb425995/2bbd8e8c97141cc6?lnk=st&q=flash+activex+control+stream+OR+memory&rnum=22&hl=ro#2bbd8e8c97141cc6
Now, my COM knoledge is limited, close to zero. I understood what they talked about, but it would take me a week maybe even more, to implement it.

At this point, solution using
- MovieData looks to me as being a 500 points solution. I can raise that if the resulting implementation is tricky/complicated
- interfaces (see point 2), worths at least 1000 points in my opinion. Why?
a) I need it fast
b) I have no idea how to start implementing it (and I have over 7 years of delphi experience, just not COM)
c) I couldn't find anything on google about this
d) I only have time in weekends to work on my projects (due to my job), and this weekend is over, so next stop is in 5 days. This might be too much

I am not lazy, so I can settle for pointers on how to implement:
- url-s to examples showing how to implement and use those interfaces (see point 2)
- small examples for the above
- full example on how to implement it for similar (meaning not the flash control)
- other

Thank you again for you help :)

 

by: DeltaAzizPosted on 2005-08-22 at 03:14:44ID: 14722909

Hi

just an idea: convert your Flash .SWF to EXE, include your EXE in your App, then Run exe from Memory:
take a look here:
http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_21507129.html#14722369

Regards

DeltaAziz

 

by: ciulyPosted on 2005-08-22 at 03:58:32ID: 14723057

It's an idea, but not good for me because:
- it's pretty ugly/messy; people might start wondering "what's with that "blabla.exe" running? is that a trojan or something?"
- I need to have control (play,stop,forward,backward,onprogress,etc)
- since there is a clean way, I don't see why try "shooting a fly with a canon" ;)

But it is a good alternative to keep in mind for future issues that might not have a clean solution :D thanks.

 

by: ciulyPosted on 2005-12-10 at 12:19:34ID: 15459831

No luck with the activex stuff. I didn't give up, I just don't have the time for more investigation on this issue. I'll probably get back on this issue in a few months... or not :)

thanks to all for your help.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...