Can I use the FLVTagScriptDataObject to call a function when the netstream byte parser gets to it?

Hi,
I am trying to trigger an event when the netstream begins to play a certain portion of a flv file that is being fed into the stream via the appendBytes method.  Is there anyway to feed the event, or a function, or any means of communicating that playback has reached this point into the byte parser?  I figured it would be possible using the FLVTagScriptDataObject but I cannot get any sort of callback when I pass the bytes generated from the tag into the appendBytes method.
var dataTag:FLVTagScriptDataObject = new FLVTagScriptDataObject();
            dataTag.objects = [{"textData":"text"}];
            var bytes:ByteArray = new ByteArray();
            dataTag.write(bytes);
            appendBytes(bytes);
I tried something like this trying to create a onCuePoint or onTextData callback but I didn't have any success.
Any pointers?
Thanks.

I found a code example in the HTTPNetStream.as around line 1171:
case HTTPStreamingState.STOP:
                        var playCompleteInfo:Object = new Object();
                        playCompleteInfo.code = NetStreamCodes.NETSTREAM_PLAY_COMPLETE;
                        playCompleteInfo.level = "status";
                        var playCompleteInfoSDOTag:FLVTagScriptDataObject = new FLVTagScriptDataObject();
                        playCompleteInfoSDOTag.objects = ["onPlayStatus", playCompleteInfo];
                        var tagBytes:ByteArray = new ByteArray();
                        playCompleteInfoSDOTag.write(tagBytes);
                           CONFIG::FLASH_10_1
                            appendBytesAction(NetStreamAppendBytesAction.END_SEQUENCE);
                            appendBytesAction(NetStreamAppendBytesAction.RESET_SEEK);
                        attemptAppendBytes(tagBytes);
                        setState(HTTPStreamingState.HALT);
                        break;

Similar Messages

  • Call a function when the active document is closed

    Hi friends
    I have a portion of my script (at true a specific function) that I´d need to be executed every time the user close the app.activeDocument in Photoshop.
    I know there´s a Photoshop script called "Script Event Manager" where we can associate actions and scripts with events (like closing the document). I´d not like to use this script because..as I told...it´s not my entire script to be runned when closing a file..but only a function.
    Tried to search in the Script Event Manager for any event called "onClose" () but sure there´s nothing.
    How could I insert an event in the body of my own script that calls a function every time user close the active document?
    Thank you a lot for the help
    Best Regards
    Gustavo.

    As I said before the close event is really not that useful. In addition to the document already being closed the event descriptor will only have the path to the closed file if it was saved as part of the close event.
    But if you want to play around with this to see if it will be helpful to you here is one way. You will need to add the notifer. This only needs to be done once unless it is removed.
    app.notifiersEnabled = true;
    app.notifiers.add( "Cls ",new File('~/desktop/closeEventHandler.jsx') );
    Then for the event handler script, something like this.
    try {
        if (arguments.length >= 2) {
        var filePath;
        var desc = arguments[0];
        if( desc.hasKey( stringIDToTypeID('in') ) ) filePath = desc.getPath(stringIDToTypeID('in'));
        if( filePath != undefined ) alert( decodeURI( filePath ) );
    } catch (e) {}

  • Hi, I have an iPhone 4 which rings people when it is locked, whether or not in my pocket.  I always lock it when not using it.  Can anyone help? It is calling random numbers, not the last person or anyone even recently called on my recents list. Thanks

    Hi, I have an iPhone 4 which rings people when it is locked, whether or not in my pocket.  I always lock it when not using it.  Can anyone help? It is calling random numbers, not the last person or anyone even recently called on my recents list. Thanks

    Pay no attention to iinami, the amount of replies to people saying their handsets must have been jailbroken everytime iTunes throws out an error is tremendous. (Clearly you don't need to have any real knowledge to get to level 3 on these forums, let's hope apple's geniuses know a lot more than some of their customers.)
    http://support.apple.com/kb/TS3694
    Solution below.
    Error 9
    This error occurs when the device unexpectedly loses its USB connection with iTunes. This can occur if the device is manually disconnected during the restore process. This issue can be resolved by performing USB troubleshooting, using a different USB dock-connector cable, trying another USB port, restoring on another computer, or by eliminating conflicts from third-party security software.

  • My phone is stuck between off and on.  It has a white, slash circle going around and around.  The button on top doesn't seem to do any good.  The phone is only 31 days old. Please write back, I can't use it to even call in an emergency.  Thank you

    My phone is stuck between off and on.  It has a white, slash circle going around and around.  The button on top doesn't seem to do any good.  The phone is only 31 days old. Please write back, I can't use it to even call in an emergency.  Thank you

    I had major issues with the iPhone 4s battery, however it’s resolved.
    The tech who set the phone up at the Apple store did so with little training.
    if you have a mobile me account. First go and move all your data to the cloud by going on your computer and logging in at me.com/move. The cloud has replaced mobile me, so there is no need for those two accounts
    Also make sure that for any of your email accounts you set them up to fetch, not push. My tech person set them all to have the email servers push data to the phone. The new iphone4s antenna is extremely strong so it will continually try to access stuff that is pushed–***** a lot of battery life doing this. It makes it worse if you have exchange 2010 accounts. Something about changes made to exchange really suck battery life from devices that access such accounts.
    turning of locator and the push notifications from facebook--they have a lot!

  • Can call a function in the select statement?

    Is there any ways to call a function in the select statement?
    what I like to do is this:
    select deptno, totalEmployees(deptno), TotalSalary(deptno)
    from emp;
    I know it can be done by count(*) and join tables, but my case
    is much more complex and the where clauses are different from
    one function to another, and have many tables to join and many
    combinations
    Thanks

    Functions can be used in a select statement subject to certain
    restrictions, see
    http://otn.oracle.com/docs/products/oracle8i/doc_library/817_doc/
    server.817/a85397/statem9b.htm#2062024
    It's under "CREATE FUNCTION> Keywords and Parameters> function>
    Restrictions on User-Defined Functions"
    Here is an except...
    When a function is called from within a query or DML statement,
    the function cannot:
    a) Have OUT or IN OUT parameters
    b) Commit or roll back the current transaction, create or roll
    back to a savepoint, or alter the session or the system. DDL
    statements implicitly commit the current transaction, so a user-
    defined function cannot execute any DDL statements.
    c) Write to the database, if the function is being called from a
    SELECT statement. However, a function called from a subquery in
    a DML statement can write to the database.
    d) Write to the same table that is being modified by the
    statement from which the function is called, if the function is
    called from a DML statement.
    Except for the restriction on OUT and IN OUT parameters, Oracle
    enforces these restrictions not only for the function called
    directly from the SQL statement, but also for any functions that
    function calls, and on any functions called from the SQL
    statements executed by that function or any function it calls.

  • Is there a CUCM API which can be used to see what calls are in progress?

    Hello All,
    I am trying to build a basic monitoring application which will display a list of calls in progress along with endpoint information such as IP address etc
    Is there a CUCM API which can be used to see what calls are in progress?
    Thanks
    Matt

    Matt,
    It looks like another person had a similar question before, see the following thread:
    https://supportforums.cisco.com/discussion/9697836/can-use-axl-or-other-api-get-calls-progress
    Also, according to the comments seen on that post, I was able to find the JTAPI developers guide, see more information below:
    http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/jtapi_dev/8_6_1/jtapidevguide/overview.html
    If this still does not satisfy your question then, the best you can do is post this inquiry on the Cisco Developer Network on the following link:
    https://developer.cisco.com/site/devnet/home/index.gsp
    Hope this information helps,
    Marco Rojas.

  • I am using iPhone 4 : i OS 7. When the phone is in sleep mode i cannot disconnect unwanted incoming call, Is there any upgrade coming for this for iPhone 4 users

    Dears,
    I am using iPhone 4 : i OS 7. When the phone is in sleep mode i cannot disconnect unwanted incoming call, Is there any upgrade coming for this for iPhone 4 users. How this can be sorted

    Hello Bibhore,
    Calls can be declined by hitting the sleep/wake button twice quickly.
    Decline a call and send it directly to voicemail. Do one of the following:
    Press the Sleep/Wake button twice quickly.
    iPad User Guide - When someone calls
    http://help.apple.com/ipad/7/
    Cheers,
    Allen

  • How can I turn off the phone saying "Call from" #/name when getting incoming call.

    How can I turn off the phone saying "Call from" #/name when getting incoming call before the ring tone starts?  I have a LG accolade

    I recommend checking your  prompts and alerts to turn this feature off. This may be you "Call Connect" or "Readout" alerts. Listed below are steps to update this feature. 
    With the flip open, press the Voice Command Key (on the left side of the phone).The Voice Commands feature has several settings which allow you to customize how you want to use it. Access Voice Commands, then press the Right Soft Key[Settings]. Your choices are below:
    -Confirm Choices--- Automatic/Always Confirm/ Never Confirm
    -Sensitivity--- Control the sensitivity as More Sensitive/ Automatic/Less Sensitive
    -Adapt Voice ---If the phone often asks you to repeat voice command,train the phone to recognize your voice patterns.Train Words/ Train Digits
    Prompts ---Mode/ Audio Playback/Timeout
    * For Mode, set Prompts/ Readout+ Alerts/ Readout/ Tones Only.
    * For Audio Playback, set Speakerphone or Earpiece.
    * For Timeout, set 5 seconds or 10seconds.

  • I am unable to hear anything on my iphone 4 nor can the person i call hear anything when i speak - I think that my ear piece and mike have both got magnetised how do fix the problem

    I am unable to hear anything on my iphone 4 nor can the person i call hear anything when i speak -
    I think that my ear piece and mike have both got magnetised how do fix the problem
    Please help

    I have the same problem!! It lead to many other problems with my phone
    I just arranged a repair with apple. Yes its inconvenient to be without a phone for a while but if your phone is in warranty its good to get it looked at professionally!

  • HT5437 How can I use apple TV to connect my computer to the tv screen as an external monitor?

    How can I use apple TV to connect my computer to the tv screen as an external monitor?

    Morning jotref,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at this article:
    About AirPlay Mirroring in OS X Mountain Lion
    http://support.apple.com/kb/ht5404
    Best of luck,
    Mario

  • I need to update my phone, but my computer broke, and do not have a new one. I have an Itunes account, can I use someone else computer to go through with the update?  Is there a chance of loosing all my data, ie: music/photos?

    I need to update my phone, but my computer broke, and do not have a new one. can I use someone else computer to go through with the update if i log on with my itunes account or Is there a chance of loosing all my data, ie: music/photos? And if all else fails can i go to the apple store and have them update my phone?

    Update to what? The 3G you want to update? You have ios3 or 4 on that 3G?
    Go to a friend, authorize that pc.
    Read this : http://support.apple.com/kb/ht1848
    and this : http://support.apple.com/kb/ht2519
    Make a backup of your stuff (from the phone. apps/photos/music/blabla). Update your phone. The phone will restore the backup automatically.

  • Can I use more than one blue-tooth device at the same time on IPhone 4S? Like a wireless headsets and speed and cadence sensor for cycling computer, receive the data and listen music simultaneously

    Can I use more than one blue-tooth device at the same time on IPhone 4S? Like a wireless headsets and speed and cadence sensor for cycling computer, receive the data and listen music simultaneously

    As long as the profiles are different (ex. HID vs AD2P) you will not have any issues. But say if you try to use 2 keyboards at once, it won't work. Or 2 headsets at once. Your scenario seems fine.

  • HT1660 how can I use one single library for all users on the same laptop?

    how can I use one single library for all users on the same laptop?

    You are most of the way there. Each user having access to hard drive is the key. If users are limited in file privileges this is harder.
    Any files you add to your library and any files she adds to her library are available to the other. Just not automatically. Each user must add the files to their own library using the add file or add folder option from menu bar.
    What I have done is set library location to a location outside of My Documents\My Music. On my network storage I have a folder names s:\itunes. Both accounts iTunes are set to use this location for the library.

  • Can I use my 2TB WD My Book Essential for the Time Machine feature on the MacBook as well as two other Windows computers (one running 7 and one with Vista)?

    Can I use my 2TB WD My Book Essential for the Time Machine feature on the MacBook as well as to store information from two other Windows computers (one running 7 and one with Vista)?

    Yes you can but you need to partition the drive into at least 2 separate drives.
    To do that you need to use a Windows PC to do the first partitioning. Say you split the drive into two partitions each 1TB (or close to 1TB) each.
    Partition fand format both partitions on a Win PC as one NTFS and the other FAT32.
    Then move it to the Mac and Reformat the FAT32 partition Mac Extended (Journaled) with a GUID Partition Table.
    I have that same drive and that is what I did originally with it. I now have it just for the Mac as I have other externals for the Win systems.
    Good Luck.

  • HT1338 How can i use my data on windows or mac when i use one of them in the same time?

    Hi,
    i have a Mac book with 2 operating system, ( Windows& mac). How can i use my data on windows or mac when i use one of them in the same time?
    Thank you

    The following article(s) may help you.
    Resolving duplicate calendars
    Resolving duplicate contacts

Maybe you are looking for

  • My iPod touch isn't being recognized by iTunes but my computer recognized it.

    It recognized before but isn't working now. I tried all the troubleshooting and nothing is helping. What can I do? My iPod is an iPod touch 5th gen and I have the latest version of iTunes on my computer. Help me please!

  • Flash buttons dont work in Dreamweaver Preview

    I have made a intro using flash catalyst.  I can preview in internet explorer using flash catalyst and everything works great including all button actions taking you to a different url. I then publish to my website: I added ALL the exported webfiles

  • What iBook is missing...

    I love to read books in their original language, so I really miss some additional dictionaries. There should be a selection of different dictionaries with different languages. Furthermore, I live in Italy and have access only to the Italian Store, wh

  • Customization Wizard X - Uninstall Acrobat (Reader) X?

    The Adobe Customization Wizard X has the option when generating msts for 'Removing Previous Versions of Acrobat' and 'Removing previous versions of Reader'.  Is there any way of having it remove version 10 installations as well? For example, when gen

  • Database 10g not shutting down properly

    Hi All, I shutdown my database with the shutdown abort; afterwards i was not able to change the ARCHIVELOG mode of the databse it shows like: SQL> shutdown; ORA-01109: database not open Database dismounted. ORACLE instance shut down. SQL> startup mou