Jump to content

Flash Video Frontend. How to interact with Flash object?


PowerCat
 Share

Recommended Posts

Heya

I have a frontend for a flash video object.

Using the ControlClick command, I'm able to click the "Play" button, however this action is not well supported because it leaves the "play" button shown, and it pops a tooltip. (picture as attachment)

I tried to use another ControlClick to click somewhere else in the control, but it still leaves a trace.

Would it be possible to use ControlCommand to send the "play" command directly without clicking? I have access to part of the source code of the flash app.

What other technique could be usable for something like this?

Thanks!!

#NoTrayIcon
#include <ie.au3>
#include <GUIConstantsEx.au3>

$videourl = "http://admin.brightcove.com/viewer/us1.25.00.02.2011-02-17102332/BrightcoveBootloader.swf?playerID=751182905001&playerKey=AQ~~%2CAAAAmtVJIFk~%2CTVGOQ5ZTwJYW4Aj2VxnKEXntSbmcf9ZQ&purl=http%3A%2F%2Fenglish.aljazeera.net%2Fwatch_now%2F&%40videoPlayer=747084146001&isUI=true&isVid=true"

GUICreate("Al Jazeera", 840, 550)
GUISetState()
$oIE = _IECreateEmbedded()
GUICtrlCreateObj($oIE, 0, 0, 840, 550)
_IENavigate ($oIE, $videourl, 1)
Sleep(2000)
ControlClick("Al Jazeera","","[CLASS:MacromediaFlashPlayerActiveX; INSTANCE:1]","left", 1, 40, 500)
While 1
    Select
        Case GUIGetMsg() = $GUI_EVENT_CLOSE
            Exit
    EndSelect
WEnd
Edited by PowerCat
Link to comment
Share on other sites

The brightcove API documentation says this:

play() method

public function play():void

Starts playback of the current title in the video window. If a linear ad is currently playing, this will unpause the ad.

How can I send a play to the control?

Link to comment
Share on other sites

How can I send a play to the control?

Create a local temporary HTML file with Javascript that calls the actionscript method.

If you don't know how to do that, google for "call actionscript function from javascript"

Also, by responding to your post I am not indicating support for that news organization. :)

To be fair, though, it's probably better than FOX News.

Edited by Sapient
Link to comment
Share on other sites

Create a local temporary HTML file with Javascript that calls the actionscript method.

If you don't know how to do that, google for "call actionscript function from javascript"

Also, by responding to your post I am not indicating support for that news organization. :)

To be fair, though, it's probably better than FOX News.

Thanks for the information, Sapient. However this is too complex ;)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...