Playing a subsection of a video

Say I have a video clip that is about 1 minute long.  I would like to click on a button and only play a certain subsection of the video; for example from start+10 seconds to start+20 seconds.  Does anyone have an idea on how to do this without embedding cue points in the video?
Thanks in advance.
mc

If you want to play a section from the middle, you do exactly the same thing. But instead of adding 10 seconds to 0:00 you'll add to 2:34 ( or from wherever you want it to start ). You can also store the starting point, so in the end you'll have startPoint = 2:34 , endPoint = 2:44 and after all this is stored, then you can jump to minute 2:34 in the video and start listening for the endPoint from there.
You can use the seek() method provided by the NetStream object to jump to a certain time in the video.
For more info, read up here:
http://livedocs.adobe.com/flex/3/langref/flash/net/NetStream.html
http://livedocs.adobe.com/flex/3/html/help.html?content=Working_with_Video_01.html
The method is exactly the same, just that before you set the startPoint and endPoint, you'll use the seek(); method to jump to the startPoint and start playing the video from there. Obviously, that's when you instantiate the listener that compares the current video position to the endPoint. Once the endPoint is reached, stop the video.
With best regards,
Barna Biro
Blog: http://blog.wisebisoft.com
EDIT: adding cue points dynamically is possible just that it can get tricky. Read up on the links I provided because they cover most of this. Once you understand how to work with video, you can start solving the problem.

Similar Messages

  • HT201401 iphone 4S not playing sound from itunes or videos

    iphone 4S not playing music or sound through videos, it will ring, sometimes have the sound for keyboard clicks, have turned it off, reset, complete reset, no change, it seems to think it is on a dock connector and even switches back to dock connector when I m usin it in the car with Bluetooth, please help!!!

    I am actually having the same issue.  In Settings, lock sounds and keyboard clicks switches are set to "on" but that does not resolve it.  iTunes, videos, and game audio (in addition to lock sounds and keyboard clicks) will not work through the speaker, but all work when headphones are plugged in.  Ringtones and text tones function normally.

  • Movie purchased in iTunes won't play. Audio is fine; video doesn't appear.

    Movie purchased in iTunes won't play. Audio is fine; video doesn't appear.

    Wormbog wrote:
    I went back to iTunes but there's no option for me to re-download it.
    Yes there is.
    Go to the iTunes Store on your computer.  Click the "Purchased" link about halfway down on the far right side.  Click the "All" tab on top.  The song is there.  Re-download it.

  • When I play video clips from websites like Prescreen the sound is loud enough to hear w/out headphones.  When I play my own professionally mastered video I have to wear head phones to hear loud enough.  Is there a trick in Compressor or other software?

    When I play video clips from websites like Prescreen the sound is loud enough to hear w/out headphones.  When I play my own professionally mastered video I have to wear head phones to hear them loud enough.  Is there a trick in Compressor or other software to make my overall sound loud enough?

     The Nokia 3720 classic is a IP54 level water,
    Not even close to good enough, LCD screen will crack, water will go in through the jack/charger ports..
    The phone i describe has no external ports just 4-5 little pins which can't let water in or out of the device, the docking station will connect via these 4 - 5 pins for data transfer and recharging...., IPX8 standard, all the electronics are epxoyed with a glue to stop real bad shocks from drops and bangs, along with a silicon case and all the other preventative meausres means this little phone is going to outlive you.
    in combination with heart rate external bluetooth connection, really what more could you want... only the Sonim comes close in terms of perfection but if it managed to pack all of above, then it would be simply wow... I don't think there's enough people who work for nokia who actually go camping, backpacking, hiking, i'm pretty sure that if i told them one day
    on a holiday you might drop your phone into the swimming pool, ok fine it's a mistake but damn, there goes your $$$$ N7 or N900 or even a HTC or Iphone.... not this, you'd yell to the first person you see in the pool, hey mate can i have my phone back, don't worry about the water damage, i'll get it back on insurance after a small lie stopping the person from running off with it (in fear of the now useless mobile phoned killed by water, making an attempt to steal be useless) 
    The person gets their phone back and carries on about his day, it drops out of your pocket, how many times you ran over it because you happened to leave it behind the back tire. oh no i ran over my phone, the tough casing and the epoxy keeping it nice and safe, except for superficial damage cosmetic, the screen and phone should be working still able to make that call or send out GPS info....
    Sorry nothing comes close by any company (except Sonim) in terms of what they can do... maybe even a portable charger turn it to recharge like on LED dynamos. nah maybe not.

  • How come my ipad 3 isn't allowing me to play youtube or any Internet videos

    Why can't i play youtube or any Internet videos on my ipad3

    You can also try the Free You Tube App for iPhone from the App Store.
    Give it a try.
    They are supposedly working on a new version of the You Tube App for Ipad but it isn't out yet.

  • Google app can't play all the audio and video on this page, any suggestions?

    New Lenovo Yoga laptop with W8.1. I have downloaded the google app, and when I search for something and the go to open a video, the flash player doesn't work and I get a message across the top of the window saying "google app can't play all the audio and video on this page"
    Does anyone have a fix? i can only find a fix for google chrome, not their app.
    Thanks

    The "app" from the windows app store called "google search" http://apps.microsoft.com/windows/en-gb/app/308dc145-6851-487d-b83b-1223a3b52dc2
    It isn't specific to search video or anything else, you just type in the search and it finds the answers, but it isn't done via chrome. When the result includes a video or audio and I click on the link to that page, the app kicks up that the flash player needs downloading. I can't work out how to do it

  • How do I play content on amazon instant video from my iPad on my hd tv

    HOw do I play content from amazon instant video, etc., from my iPad to hd tv

    You don't.
    Amazon doesn't permit it.

  • Cannot play purchased movies or music videos on ATV3 via AirPlay

    Music, photos, and mirroring work fine.  When I try to play purchased movies and music videos from iTunes, I get "Operation could not be completed -3".  Everything is updated to the latest iOS.  The router is a Belkin N450DB wireless on factory settings.  This location also does not have internet, just the home wi-fi network.  I have even plugged the ATV into the router via ethernet and still no video.  I have tried and gotten the same results with iPhone 4s, iPad 3, PC laptop with iTunes with same Apple ID as ATV. 
    If it makes a difference, I setup, updated, and added my Apple ID to the ATV from a different location with internet, but moved it after I thought it had been set up.  Thanks in advance for any tips, I am clueless!!

    Hi there Upchucknit,
    You may find the troubleshooting steps in the article below helpful.
    iOS: Troubleshooting AirPlay and AirPlay Mirroring
    http://support.apple.com/kb/ts4215
    -Griff W. 

  • How can i get my iphone to automatically play music after watching a video or something that requires audio

    I Have a iphone 5 and was wondering if there is a way i can get my music to automatically play again after watching a video or something that requires audio

    Is the jack not fitting into the top of the iPhone?
    If so then you would need this adapter for it to fit properly.
    http://store.apple.com/1-800-MY-APPLE/WebObjects/AppleStore.woa/wa/RSLID?mco=3DB 4EB78&fnode=home/shopiphone/iphone_accessories/cablesdocks&nplm=TN546LL/A

  • How to stop sound playing at a embed FLV video

    Hello,
    I would not a piece of code, which will stop the sound
    playing in a embed
    flv video. Following situation:
    I have a "main.swf" file which loads two swf as following:
    loadMovie ("Teenies.swf", _root.contenedor);
    loadMovie ("CananIntro.swf", _root.mc_video);
    The "CananIntro.swf" includes (embed) the flv video "canan
    PART1.flv".
    I would need the action sript code to make the sound at
    "canan PART1.flv" ON
    or OFF.
    Thank you for any hint.
    Walter

    Another way to do this is to create a boolean right off the start. Lets say var createMusicTrack:Boolean and set it to true
    Then load your music and start playing it and at the end of that load code add a line that sets the boolean to false so that when you come back to frame 1 the boolean will be false and the code will not load and play, but this could be problematic too. Djnr suggestion is better for your purposes.

  • 30G iPod doesn't play audio in movies or videos

    My 30G iPod doesn't play audio in movies or videos... Can anybody help me?
    Thanks!

    What is the source of the videos and movies? Downloaded from the iTunes store or did you convert them from other sources? If the latter...
    QuickTime expects video files with separate video and audio tracks, but many MPEG formats used a muxed (multiplexed) single track that contains both. Therefore, iTunes & the iPod (both of which use QuickTime) only show the video and no sound.
    iPod plays video but not audio of some exported files
    http://docs.info.apple.com/article.html?artnum=302588
    One way to work around this is to use MPEG Streamclip to convert the files to fix this issue...
    http://www.squared5.com/
    Frequently asked questions about viewing and syncing video with iTunes and iPod
    http://docs.info.apple.com/article.html?artnum=302758
    GUIDES TO: Converting Video for iPod - Mac & Window
    http://forums.ilounge.com/showthread.php?s=&threadid=123067
    Patrick

  • After the latest update my laptop stopped playing any sounds and any videos. How can I fix this?

    I have the HP envy 14-2166se and downloaded the newest update from HP today and I can no long play any sounds or any videos. If someone could help that would be great. 

    Go to the link below.Enter your Product Number as listed on Service Tag attached to bottom of notebook. You can also get the Product Number by pressing Fn + Esc key. After entering PN, click Next ,then choose Software & Drivers.On the next page use the dropdown to select your OS (probably Windows 7 64bit). A list will populate with drivers. Download & Save the latest Audio driver.
    http://h10025.www1.hp.com/ewfrf/wc/siteHome?cc=us&lc=en
    Go into Control Panel,Programs & Features-uninstall IDT software.Restart the laptop and install using the downloaded file.
    ******Clicking the Thumbs-Up button is a way to say -Thanks!.******
    **Click Accept as Solution on a Reply that solves your issue to help others**

  • Hey, i have an iphone 4, and it is upto date, the problem is that my phone does not play any videos online except on facebook, all other videos do not play instead a crossed play sign appears on the video. Please help.

    Hey, i have an iphone 4, and it is upto date, the problem is that my phone does not play any videos online except on facebook, all other videos do not play instead a crossed play sign appears on the video. Please help.

    I watch YouTube videos on a regular basis - mostly with the YouTube app but also with Safari.
    Some YouTube videos are supported to be viewed on a computer only or with a Flash capable device, which is becoming few and far between since Adobe no longer supports Flash on any mobile platform.
    Sometimes I get this video cannot be played on this platform, but rarely.

  • Hi, i m using mac (version 10.7.4 lion) and has safari (version 6.0). The problem is that the safari is not playing some of the youtube videos for the last few days. plz help

    Hi, i m using mac (version 10.7.4 lion) and has safari (version 6.0). The problem is that the safari is not playing some of the youtube videos for the last few days. kindly help

    http://www.microsoft.com/mac/support
    http://answers.microsoft.com/en-us/mac/forum/macword?auth=1
    http://answers.microsoft.com/en-us/mac/forum/macoffice2011-macword/microsoft-wor d-for-mac-2011-will-not-open-error/ecc42616-6f49-40bb-b8f5-e21c711ea359

  • Playing music, then switch to video and then going back to play list.

    When I got my new touch I could be playing music, then switch to video, play videos, then go back to music and would be right where I left off on the song I was listening to it. Now when I switch to video and go back to music I have restart my playlist I was listening to. This totally blows, I hated it with my 5G video and now with the 2.1 update on my touch it does this again. Why in the world would this function be changed. I am pretty ticked
    Message was edited by: Phat M5

    I had the same trouble w/ my iPod Touch 16GIG Gen 1 & it seemed to be worse after upgrading the software/firmware to Version 2.1; to the point where I was arranging to get it back to The Apple Store before it was 30 days old. The trouble seems to be worse as I approached 14GIG's of filled memory. I mostly have audio, but a few movies are loaded also. But I couldn't view the album art from end to end & it would also freeze & go back to the home screen after about 5 seconds of audio from an audio track intermittently. It was frustrating.
    I used the HOME button on the top of the iPod to shut it down {holding it till the 'slide to power off' screen comes up & then doing the slide. Then using the HOME button to turn the iPod back on - seeing the cracked white apple when it reboots & starts back up. I haven't had any more trouble in iTunes. Maybe this reboot cleans up the memory of the iPod & a fresh reboot gives the OS a clean bill of health to look at the 14 GIGs of content that I've added in.
    Give the Home button a try & let us know.
    Best of Luck-
    Doug

Maybe you are looking for

  • Questions on 'Unmanaged File' and placing a PS file...

    Hi... AI CS4 on Win XP Pro Service Pack 3.0 (32 bit) Two questions... 1/ Started noticing that the status bar at the bottom has "Unmanaged File" What does this mean? Clicking on it shows a menu. If i highlight / hover over "Show", i get several optio

  • Deployment of reports 9i in weblogic server

    anybody help me we develop a application in java, the middle tier is weblogic server 6.1 and database is Oracle.8.1.7 and reports 6i, we want to migrate from oracle 8.1.7 to oracle 9.2 and reports from 6i to repors 9i. as i understand that reports9i

  • Procesing Huge Message via JDBC Receiver adapter

    Hi I have a scenario where i have a very large message which is coming from an abap proxy and i have a BPM and then i  have to send that message to a SQL server database table. My problem is that the message contains 150000 records. When i send the d

  • Error on starting jnlp file: .."error recv"

    Hallo, when trying to start a Webstart application on my laptop, the following error messages appears: "Entrance screen: *Error recv*" (translated from German) "Eingangsbildschirm: Fehler recv" (original message) Screen shot: [http://tobsefritz.de/fi

  • Can´t reinstall Final Cut pro on my Macbook without Firewire

    I can't install final cut pro in my new Macbook, should it be because of no firewire port. It says "hardware problem"