Rewind when at swfelement in serialelement

I have a serialelement with as last element a swfelement. In the swfelement there is a 'play again' button.
mediaplayer.stop() or   mediaplayer.seek(0) are not working because the swfelement doesn't support play, seek or stop through the mediaplayer.
What would be the best approach to do a play again ?
Thanks for any pointers,
Niels
[update]
I started with subclassing swfelement to SeekableSwfElement to add a SeekTrait, now we canSeek but I can't figure out how to make a seek(0) work on the 'whole' mediaplayer 
[/update]

Ok, so found it ;-))
By adding also a timeTrait we have canSeek and canSeekTo(0) to do a seek(0) and then a play !!!
public class SeekableSwfElement extends SWFElement {
        private var timeTrait : TimeTrait;
        public function SeekableSwfElement(resource:URLResource=null, loader:ImageLoader=null)
            super(resource);
        override protected function processReadyState():void
            super.processReadyState();
            timeTrait = new TimeTrait();
            addTrait(MediaTraitType.SEEK, new SeekTrait(timeTrait));
            addTrait(MediaTraitType.TIME, timeTrait);
        override protected function processUnloadingState():void
            super.processUnloadingState();
            removeTrait(MediaTraitType.SEEK);
            removeTrait(MediaTraitType.TIME);

Similar Messages

  • Captivate 6, Software Simulation, how to rewind when done

    I've been tasked with creating some short Captivate 6 software simulation videos on various computer training topics. No problem doing this! And if the user wants to replay the video (uploaded to a Learning Mgmt. System as a SCORM file, not sure of the details since I don't handle the upload) they click the rewind button on the navigation bar. But...now I'm being asked to do something in Captivate that will automatically rewind the video once it reaches the end. Seems that if it's opened again (the user can see the videos he's watched in his Learning History), it's at the end and the user has click Rewind. The only instr. I can find are if you add a video to a Captivate project then you can auto rewind the video on that slide. However, this is the entire software simulation project that I need to rewind back to the beginning. Can this be done? thx!

    Ok, I just tried it in a new project and think there might be a wider problem here.
    I copied the first (target) and last slide into a new project. I added a slide in between.
    I added a button to the last slide to jump to Slide 2 and a button to jump to Slide 1. When I previewed each, I noticed that the playhead in the playbar jumped to the start of each slide. Hoorah.
    I then set about recreating the basics of my original project. The variable names had automatically been copied over, as did only one conditional action (but 3 other actions were not copied over from those slides). All button and text names had automatically changed to the default and no advanced actions were associated with buttons or the TEB.
    I deleted the one action that had been copied over and then tried to delete the variables too but the project wouldn't let me, saying these were in use somewhere. (Not as far as I could be see.) ...So I chose to use them again.
    I renamed the buttons, text boxes etc., recreated the advanced actions and associated them to buttons/TEB etc. Basically set it up as it was.
    I previewed it. From the last slide, jumping to slide 2 went to the start of that slide but (problem) jumping to slide 1 went to the last frame.
    I am attaching some screenshots FYI. The interactions hinge around the name of the main character in a story (her name is Lani). By clicking enter, the default name stays and slide 2 begins. Otherwise the user can change this name (in the TEB) and then they have to choose gender (boy or girl button). After that, slide 2 starts. So there are three actions: NameChange2 (conditional), Clicking_BoyButton (standard) and Clicking_GirlButton (standard). You can recreate something like it if your interest extends that far!
    Unless there is a problem with Cp7, perhaps some form of corruption was copied across between the projects (with the variables that I couldn't delete).
    Thanks again!

  • Can't Fast-Forward or Rewind when iTunes is minimized

    When iTunes is minimized and I hold down the right arrow to fast forward, the track only advances like 6 sec and continues to play. BUT when it's expanded it continues to fast-forward until I let go.
    This never happend before I upgraded to iTunes6.
    Is anyone else having this problem?

    Really? Sorry to hear that. It fixed it just fine for me. (I say that now, but watch it not work for me soon. heh) I didn't have to re-start for it to work, so.
    I wonder what it is that is making it work or not work for different users.

  • Trouble Rewinding when playing a Podcast.

    Hello,
    I have an iPod Classic and I'm trying to rewind a Podcast during playback by pressing the center button and then swiping around the wheel.
    However, I find that the display quickly skips to the Volume control instead.
    Could there be a setting that is wrong? Any help would be greatly appreciated.
    Thanks.
    Regards,
    RD

    Do you play 'Video' podcast?
    If you are playing a video, it suspends as you close the ipod app.
    This happens even in music with video such as video clip.

  • Stop and rewind

    I am trying to do a slideshow with embedded video clips
    (about 4 seconds each). I need the video to end and stay on the
    last slide unless the viewer returns to the slide containing the
    video clip. At that point I need the video to rewind and play
    again. I can get the video to stop and I can get it to loop
    continuously (which I don't want); but I cannot get it to rewind
    when you return to the slide. Can someone please help!! I don't
    want to have to go back to using powerpoint!

    Can you post some code or more detailed information about how
    the slideshow is currently working? Anything that relates to the
    changing of slides, the stopping of slides, etc.

  • Video Auto Rewind Problem

    In Premier Elements I added a still photo to the beginning of
    a Quicktime movie. The still image fades into the movie when the
    play button is hit. I saved this as a quicktime movie and used the
    Flash 8 video encoder to create a FLV file which I imported into
    Flash 8.
    The problem is the movie doesn't Auto Rewind when it reaches
    the end. AutoRewind is set to true in the Flash Component
    Inspector.
    You can see the video on the homepage of this website:
    thedatementor.com
    Any suggestions?
    Thanks, Gary

    Hi there,
    Make sure that Captivate 7 is updated to 7.0.1.237 (Help > About Adobe Captivate), if not then update it first (Help > Updates).
    Is it doing for a number of videos or only one video? Is there a possiblity if you could import the video as multi slide, instead of Event video.
    Please check with other videos as well if the same thing happens, and also publish the project and then view it in browser.
    Thanks.

  • Dv import rewinds before end of tape

    Everything imports fine and iMovie creates new clips for each day based on time stamp, but the import stops before the end of the tape - pretty sure its because of time code "breaks" (where the camera was fast forwarded past the end of a time code stamped / recorded region before shooting was resumed).
    Is there any way to "force" iMovie to import until the physical end of tape is reached?

    OK - update, with surprising result.
    Setting to manual, clicking import made the capture go to end of tape, even getting past time code blanks; AND the clips were broken up by day. So it looks to like the only thing different between manual and auto is that auto rewinds to start and rewinds when end is detected, manual doesn't. Very strange.
    Sidenote - to tell how long a bunch of events are in aggregate, you can select the events (shift-click for multiple), click on blank area in the clip library viewer, command-a to select all clips and drag into project window. Total time of all the clips will be under the window. Then just delee the clips from the project window..

  • Can I use QuickTime in Flash application?

    Hi.
    I'm planning to develop a media player in Flash, and I would
    like to know if it is possible to do the things I wanna do. Can I
    use the QuickTime player in my Flash application to play video and
    music files? If I can, can I use the original controls from
    QuickTime to play, pause, stop, fast forward and rewind the
    video/music? (Why I ask is because I want to be able to hear the
    sound go fast forward and rewind when I press these controls, and
    the only player I know that does that is QT.) I also wanna be able
    to show the video and music files the user has on the computer with
    icons (or pictures). Is it possible to search video and music files
    in a computer (in specific folders)? Or do I have to know from the
    start, when I develop the application, which files exist?
    I'm really grateful for answers on my questions!
    Regards from Beeeaaa

    Beeeaaa wrote:
    > Hi.
    > I'm planning to develop a media player in Flash, and I
    would like to know if
    > it is possible to do the things I wanna do. Can I use
    the QuickTime player in
    > my Flash application to play video and music files?
    No you can't. You can't have player within a player.
    > If I can, can I use the
    > original controls from QuickTime to play, pause, stop,
    fast forward and rewind
    > the video/music? (Why I ask is because I want to be able
    to hear the sound go
    > fast forward and rewind when I press these controls, and
    the only player I know
    > that does that is QT.) I also wanna be able to show the
    video and music files
    > the user has on the computer with icons (or pictures).
    Is it possible to search
    > video and music files in a computer (in specific
    folders)? Or do I have to know
    > from the start, when I develop the application, which
    files exist?
    You can open a folder and look for file but you can't search
    user drive and get list
    of it. Only File - Open - Browse, that type of dialog.
    Best Regards
    Urami
    "Never play Leap-Frog with a Unicorn."
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • MC not playing on first hover

    I have some movieclips that play when you hover over them and rewind when you mouse out. Now I've added a click event to the MCs also and now the first time you hover over them, nothing happens. But the second time works just fine.The MCs that don't have the click event work fine using the same code.
    Any Ideas, I've been fighting this for too long now.
    Thanks in advance
    you can view the movie at www.micahanderica.com/mynewwalk

    ~updated code~
    import flash.external.ExternalInterface;
    var victim:MovieClip;
    var my_sound:Sound = new Sound();
    var soundPlaying:Boolean = false;
    var mute:Boolean = false;
    var contentOpen:Boolean = false;
    function rewind(passed_mc:MovieClip, frame_count:Number) {
    passed_mc.timer_mc.onEnterFrame = function() {
      if (frame_count>0) {
       passed_mc.prevFrame();
       frame_count--;
    }//Rewind Function
    function mcRollOver(passed_mc:MovieClip, start_frame:Number, stop_frame:Number) {
    var frame_count = stop_frame-start_frame;
    if (passed_mc.hitTest(_xmouse, _ymouse, true)) {
      if (passed_mc._currentFrame < stop_frame) {
       passed_mc.play();
    if (!passed_mc.hitTest(_xmouse, _ymouse, true)) {
      if (passed_mc._currentFrame == stop_frame) {
       rewind(passed_mc,frame_count);
    }//mcRollOver Function
    function chooseVictim():MovieClip{
    if(service_times_mc.hitTest(_xmouse, _ymouse, true)){
      victim = service_times_mc;  
    }else if(the_series_mc.hitTest(_xmouse, _ymouse, true)){
      victim = the_series_mc;  
    }else if(pasco_ymca_mc.hitTest(_xmouse, _ymouse, true)){
      victim = pasco_ymca_mc;  
    }else if(giving_online_mc.hitTest(_xmouse, _ymouse, true)){
      victim = giving_online_mc;  
    }else if(connection_groups_mc.hitTest(_xmouse, _ymouse, true)){
      victim = connection_groups_mc;  
    }else if(children_youth_mc.hitTest(_xmouse, _ymouse, true)){
      victim = children_youth_mc;  
    }else if(get_involved_mc.hitTest(_xmouse, _ymouse, true)){
      victim = get_involved_mc;  
    }else if(about_us_mc.hitTest(_xmouse, _ymouse, true)){
      victim = about_us_mc;  
    }else if(online_campus_mc.hitTest(_xmouse, _ymouse, true)){
      victim = online_campus_mc;  
    return(victim);
    }//chooseVictim Function
    if(!soundPlaying){
    my_sound.loadSound("mynewwalk.mp3", true);
    my_sound.start(0, 9999);
    my_sound.setVolume(10);
    soundPlaying = true;
    }//start sound
    mute_mc.onRelease = function() {
    //popThickBox("newwalkonline.html?KeepThis=true&TB_iframe=true&height=800&width=800");
    if(!mute){
      my_sound.setVolume(0);
      mute = true;
    }else{
      my_sound.loadSound("mynewwalk.mp3", true);
      my_sound.start(0, 9999);
      my_sound.setVolume(10);
      mute = false;
    };//mute_mc onrelease
    pasco_ymca_mc.onRelease = function() {
    ExternalInterface.call("tb_show" , null, "ymca.php?KeepThis=true&TB_iframe=true&height=100%&width=100%", false);
    giving_online_mc.onRelease = function() {
    ExternalInterface.call("tb_show" , null, "giving_online.php?KeepThis=true&TB_iframe=true&height=100%&width=100%", false);
    get_involved_mc.onRelease = function() {
    ExternalInterface.call("tb_show" , null, "get_involved.php?KeepThis=true&TB_iframe=true&height=100%&width=100%", false);
    about_us_mc.onRelease = function() {
    ExternalInterface.call("tb_show" , null, "about_us.php?KeepThis=true&TB_iframe=true&height=100%&width=100%", false);
    connection_groups_mc.onRelease = function() {
    ExternalInterface.call("tb_show" , null, "connection_groups.php?KeepThis=true&TB_iframe=true&height=100%&width=100%", false);
    children_youth_mc.onRelease = function() {
    ExternalInterface.call("tb_show" , null, "children_youth.php?KeepThis=true&TB_iframe=true&height=100%&width=100%", false);
    online_campus_mc.onRelease = function() {
    ExternalInterface.call("tb_show" , null, "online_campus.php?KeepThis=true&TB_iframe=true&height=100%&width=100%", false);
    service_times_mc.onRelease = function() {
    ExternalInterface.call("tb_show" , null, "service_times.php?KeepThis=true&TB_iframe=true&height=100%&width=100%", false);
    the_series_mc.onRelease = function() {
    ExternalInterface.call("tb_show" , null, "the_series.php?KeepThis=true&TB_iframe=true&height=100%&width=100%", false);
    stop();
    this.onEnterFrame = function() {
    mcRollOver(chooseVictim(),35,45);
    ~all seems to be working fine except rewind will still only rewind one mc at a time. (www.micahanderica.com/mynewwalk)~
    Thank you for your help!

  • Forward button Issue

    Guys,
    i am a windows OS user and using windows 7 on my desktop machine i have found an issue in Itunes 11.1.3.8 version.
    I have open the itunes everything is working fine for me but when i minimized the itunes and then Hover on the itunes for pervious /play /next so i used to found pervious button instead of next button on the taskbar for yours verification i am attaching the snapshot as well.
    Thanks
    Umair Ahmed

    Hi Rajadurai,
    According to your description, you want to make forward and rewind when playing video in store app. I think you are using the incorrect property. Try the
    Position property, you need to change the timespan for the speed. Code looks like the following.
    private void Rewind_Click(object sender, RoutedEventArgs e)
    var pos = VideoSource.Position;
    VideoSource.Position = pos.Add(new TimeSpan(0, 0, -10));
    private void Forward_Click_1(object sender, RoutedEventArgs e)
    var pos = VideoSource.Position;
    VideoSource.Position= pos.Add(new TimeSpan(0, 0, 10));
    Please feel free to let me know if I have any misunderstand.
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate
    the survey.

  • Playback avchd file in premiere pro cc 2014

    i have a problem when i use the letters j and l in the keyboard to fast forward and rewind
    when i click the j letter  to fast rewind the video almost did not move when i click again j letter
    the video  blay rewind but not smoothe
    when i press four times the l letter to fast forward the video blay forward but not smoothe
    when i applay reverse speed i have to do rinder to see the result
    my camera sony nex ea50
    my pc
    intel xeon cpu e5-2680 v3 2.5ghz 12 core
    32 gb ram
    240gb ssd +3t-sata
    nvidia geforce titan black 6g
    windows 7 64bit pro

    You likely won't get the same bitrate as an option, but that's to be expected because of the nature of the codec.  DNxHD generally requires more bits than H.264, but that's part of the reason it edits so much better than H.264.  So...choose 85.  If the quality of the converted file is acceptable, go with that.  If not, choose a higher bitrate option.
    And again, if you need more hard drive space to accommodate this work flow, get it.  Don't let that alone stop you from making things better.

  • Cs4/flv preview probelm

    Don’t no how to explain this.
    A few weeks ago every thing was working. Today I’ve encoded a flash video and created a page with nothing on it but the flash video.
    in dw I did this.
    Insert media>flv
    in the pop up for url I clicked browse and located the file I want to use.
    I left the controls to the default setting
    set size to detect size
    checked auto play and auto rewind
    When I preview in the browser it doesn’t work. I get what looks like all the graphics for the controls in  the space where the video would be.
    I cannot get it to preview at all.
    I have uploaded to the server and it works.
    what am I doing wrong? is this possible to fix?
    Thank you for any help.

    What you are seeing is the "skin" ,swf.
    If you are not able to preview the video on your local machine it's most likely because some files are missing, in wrong folder, or incorrectly pathed. Double check that the folder and file structure on your local machine is exactly the same as on the remote server.
    localhost
    Are you saying that you are testing on a Web server installed on your local machine? FMS, XAMPP? or something like that?...
    "localhost" is a term usually associated with server software set up on the local machine... just curious why you used that term.
    Best wishes,
    Adninjastrator

  • Disable tab keyboard shortcut

    Hi There
    The piece of software I am making a tutorial for requires the use of the tab key for moving from one cell to another. In one session the user might use the tab key 4 or 5 times.
    I have found that when the user is required to interact with captivate that pressing the tab key causes the console controls to become active. The first one is "rewind" and so the user gets half way through the tutorial and then they are required to press enter in the tutorial, which confirms that the user wants to "rewind" when actually they don't, they want to go to the next stage in the tutorial.
    So I need to disable the console controls keyboard shortcuts, specifically the tab key as they are prohibiting the user interacting with the tutorial prooperly.
    Anyone know how to do this?
    Cheers
    Richard

    Hello Richard,
    Did you ever find out how to do this? I am running CP4 and having a similar problem.
    Thank you,
    Mary

  • Mini Ipod Stuck waiting for a Power adapter, which i never got.

    I reset my MINI IPOD using the latest version of itunes, and at the end it asked me to plug the IPOD into the mains adapter. I never got a mains adapter with it. I have waited 3 days for the battery to run down and it hasnt. I have tried using the hold menu and Centre button, then the centre button and rewind when the apple logo appears. all i get it the picture asking for a mains adapter, which i dont have.
    Is there another way? Or do i have to wait until the battery dies? or should i charge it on the USB for a couple of days?
    help please.

    When updating or restoring some iPods via a usb connection, it needs to be plugged into power via the charger to complete the process, and this is why you see that icon displayed. It's also why older iPods that required this step were supplied with a power adaptor as standard.
    You may be able to complete the process via a car charger, or via a powered firewire port on the computer (with the required 6 pin cable of course) if you have access to either of those. Or maybe visit an Apple store if one is nearby.
    Or you can try this.
    http://www.bearsdriving.com/blog/archives/2005/10/youripod_tipo.html
    Other than that, your iPod cannot be used until you complete this process.

  • Surround sound problems with new 15.11 software

    Firstly I would like to give a big thankyou for getting the new IP recording software release out it is very welcome.
    Unfortunately this has highlighted even more the surround sound issue for me. All my tests have been done over optical (if anyone could repeat the tests over HDMI it would be very much appreciated just to see if there is any difference).
    Here are my findings so far with a small amount of testing.
    BT TV on Demand
    HD 5.1 movies appear to switch correctly
    SD and HD none multi surround movies appear to play in stereo from the start needing the menu/surround workaround applying to get surround sound as is the same for the tv box sets and kids on demand.
    IP Channels
    HD sports channels i.e. BT Sports 1,2 and ESPN (I have hidden the SD versions so haven't tested them) appear to a switch to surround sound correctly
    All other channels start in stereo and require the AD button on/off workaround to switch to surround sound.
    IP Channel Recordings
    Here lies the real problem for me now. Any IP channel recordings (not tested sports channels yet) start in stereo and require the AD on/off button workaround to switch to surround sound BUT as soon as you apply a fast forward or rewind when it starts to play again it has switched back to the stereo feed which is a much higher volume. I hope you can appreciate how annoying this gets that everytime you fast forward/rewind a recorded IP channel to sound switches and starts playing at a higher volume until the workaround is applied (everytime).
    Obviously the freeview channels all appear to switch and work fine.
    I am sure there is more to find but I just felt it worthwhile getting the issue highlighted AGAIN now the recording ability increases the visibility of this bug.

    Maybe slightly harse as with more testing I am not sure if this is a youview/humax issue and is a problem on the catchup player on youview retail also. I have added below to my first post slightly with a few more findings and some clarity. 
    When I say surround sound what I am talking about is the Dolby Digital track (this can be 5.1 or 2.0 but in 2.0 format my amp can encode that with pro logic 2 and make it sound like a reasonable surround sound track through my speakers).
    After testing through HDMI sound I find that this is even worse and in most cases will not transmit the Dolby 2.0 track at all even using the workarounds.
    The freeview HD channels work flawlessly as do the BT sports HD channels (all 3 inc ESPN) (non-HD freeview channels do not appear to carry anything but standard stereo so can't switch no matter what). If anyone has a surround setup check the difference in volume between channel 001 (BBC non HD) and channel 101 (BBC HD) this I believe is the difference between the standard stereo channel and the dolby 2.0 stereo channel.
    All IP channels (except sports) fail to automatically select the Dolby 2.0 soundtrack unless forced, as do the catch up channels (tested during programme playback as no Dolby during the adverts) and if recorded switch back to standard stereo everytime a skip/rewind step is made.
    Most on-demand content fail to switch automatically to the Dolby 2.0 track but can be forced with the exception of some HD movies with 5.1 soundtracks that appear to work without a workaround.

Maybe you are looking for

  • SET THE VALUE TO VALIDATE THE VALUE IN APEX

    GOOD DAY MASTER PLEASE HELP ME ON THIS I HAVE A POPUP LOV (ITEM_NAME) THAT COMING TO DATABASE VIEW UNDER THAT POPUP LOV I CREATED A DYNAMIC ACTION (SET VALUE) WHERE WHEN THE USER CLICK THE POPUP LOV(ITEM_NAME) AND PICK A ITEM IT WILL SET VALUE OF QTY

  • How to get the best from 8gb ram in macbook pro_bootcamp Win 7

    Hi guys,   I know what you are going to say, (run 64 bit windows) but bare with me.  I have brand new 2011 unibody macbook pro 13" 2.8 ghtz dual core 8gb of ram.  When running bootcamp windows 7 it shows only 2.16 gb ram usable.  I thought that 32 bi

  • Data Type displayed as unknown in Data models

    Hi, When I import ddl file, some of the data types are not getting interpreted correctly in the data model. For eg, data types datetime and signednumber are being displayed as unknown. I tried adding Logical Type mappings for signednumber (Tools-> Ty

  • Microsoft cluster

    Dear All can any 1 help me regarding the microsoft cluster the case is that we have a delay for about 12 minutes from the moment nodeA foll down till the moment node B takes the resources can any 1 help thanx Amr Osama

  • Ordering books through iPhoto.

    I am using iPhoto 11 (version 9.4.3). After I complete my book project, when I want to place the order all I get is the German site. How can I change this setting to be able to order from a North American address?