Seeking a local video?

I have loaded a video into the VideoPlayer class as follows:
source="file:///C:/video.mp4"
The video plays fine, but when I try to seek to a specific place, the playback resets to 0:00 and starts over. Is it not possible to seek local videos?

Hi Dude!
     This is Possible! May i know Some code Snipate your project ?

Similar Messages

  • Local videos not playing in Flash/Dreamweaver Air app

    Hi there. I am having trouble playing local video from an Air app created from Dreamweaver. I have found many similar [posts, but most are about Flex and so on. I need some help getting this working form Flash and Dreamweaver.
    What I did wat create a jQuery site that uses Flash to play videos. It will be packaged as a desktop Air app using the Dreamweaver Air plugin.
    From advice that I got here (http://soenkerohde.com/2008/06/playing-local-files-with-air/)
    I started a new Air Project in Flash as suggested. Using an Air flash app makes more sence I guess, but I still need to imbed it into an HTML framework.
    Here is the code I am using:
    import flash.filesystem.File;
    var myVideo:Video = new Video(stage.stageWidth, stage.stageHeight);
    addChild(myVideo);
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns:NetStream = new NetStream(nc);
    var client:Object = new Object();
    client.onMetaData = function(metadata:Object):void {
    trace(metadata.duration);
    ns.client = client;
    myVideo.attachNetStream(ns);
    var f:File = new File("Special_Assignment_Title.flv");
    ns.play(f.url);
    When I run this I get the following error:
    <blockquote cite="">ArgumentError: Error #2004: One of the parameters is invalid.
              at Error$/throwError()
              at flash.filesystem::File/set nativePath()
              at flash.filesystem::File()
              at videoPlayer_fla::MainTimeline/frame1()[videoPlayer_fla.MainTimeline::frame1:17]</blockquo te>
    Any suggestions on how to fix my problem? Any help would be greatly appreciated

    Instead of using the File object, try URLRequest instead:
                                            var urlReq:URLRequest = new URLRequest("Special_Assignment_Title.flv");
                                            ns.play(urlReq.url);
    Chris

  • Multiple RTP streams + local video Player - S.O.S.

    Hi guys,
    I ran out of ideas, so I need your help now. It's gonna be a long one...
    Given:
    MediaLocator(vfw://0) --> DataSource(video) --> Processor(video)
    Then I send processor's output (videoProcessor.getDataOutput()) over RTP to multiple destinations. Of course, I am using cloneable DataSources for this, cause there's no other way. So, now I also need to have a local video feed just for self-reference, but it seems to be a tough one! Let me go over what I've tried til now:
    1. Using DataSource clone from video processor, I tried to create a Player (i.e. Manager.createPlayer(clonedDS) ). BOOM!
    javax.media.NoPlayerException: Cannot find a Player for: com.ibm.media.protocol.SuperCloneableDataSource$PushBufferDataSourceSlave@126c6ea
         at javax.media.Manager.createPlayerForSource(Manager.java:1512)
         at javax.media.Manager.createPlayer(Manager.java:500)
         at org.interlab.mc.media.MediaManager.setVideoProcessorEnabled(MediaManager.java:2046)
         at org.interlab.mc.media.MediaManager.openVideoStreams(MediaManager.java:1807)
         at org.interlab.mc.UserAgent.callStateChanged(UserAgent.java:2516)
         at org.interlab.mc.call.Call.fireCallStateChangedEvent(Call.java:366)
         at org.interlab.mc.call.Call.setState(Call.java:244)
         at org.interlab.mc.call.CallManager.processInviteOK(CallManager.java:330)
         at org.interlab.mc.UserAgent.processResponse(UserAgent.java:1632)
         at gov.nist.javax.sip.EventScanner.deliverEvent(EventScanner.java:288)
         at gov.nist.javax.sip.EventScanner.run(EventScanner.java:489)
         at java.lang.Thread.run(Unknown Source)So i checked. If I create a clone from my DataSource(video) then Manager would return this instance:
    class com.sun.media.multiplexer.RawBufferMux$RawBufferDataSourceBut if, like now, I want to create a clone from DataSource from video processor (i.e. Processor.getDataOutput()) then I get this instance:
    com.ibm.media.protocol.SuperCloneableDataSource$PushBufferDataSourceSlaveHope you noticed the difference. :) Now, from the latter one neither I can create a Player nor can I create a Processor. Too bad. So, I tried another one.
    2. I took my DataSource(video), created a cloneable (just like in Clone.java) and from there I finally got my precious Player! Yes!! But not so fast.... Player was working, but the rest now wasn't. Once I have my DataSource(video) cloned, my Processor(video)'s data output got starved - i could not send video anymore. What a life?! Fine... Let's try another one.
    3. Just like I send video remote I decided to send the video locally in a loop, for instance, from 203.159.2.3:25000 to 203.159.2.3:25002. And what do you think? Still doesnt work!! This "loop" stream is not detected (i.e. controller's update doest sense anything). But if i open JMStudio, and start listening (i.e. open RTP session) on 203.159.2.3:25002, i get my stream showing nice and clear!
    Someone, anyone, please, help! Point my nose to some document, piece of code - anything to make this work.
    Kind regards.

    I'd better post here, so everyone else can get it too. so here it goes:
    That's RTPSocketAdapter
    import java.io.IOException;
    import java.net.InetAddress;
    import java.net.DatagramSocket;
    import java.net.MulticastSocket;
    import java.net.DatagramPacket;
    import java.net.SocketException;
    import javax.media.protocol.PushSourceStream;
    import javax.media.protocol.ContentDescriptor;
    import javax.media.protocol.SourceTransferHandler;
    import javax.media.rtp.RTPConnector;
    import javax.media.rtp.OutputDataStream;
    * An implementation of RTPConnector based on UDP sockets.
    public class RTPSocketAdapter implements RTPConnector {
        DatagramSocket dataSock=null;
        DatagramSocket ctrlSock=null;
        InetAddress remoteAddress=null;
        int remotePort=0;
        InetAddress localAddress=null;
        int localPort=0;
        SockInputStream dataInStrm = null, ctrlInStrm = null;
        SockOutputStream dataOutStrm = null, ctrlOutStrm = null;
        public RTPSocketAdapter(InetAddress localAddress, int localPort,
                                      InetAddress remoteAddress, int remotePort) throws IOException {
             this(localAddress, localPort, remoteAddress, remotePort, 1);
        public RTPSocketAdapter(InetAddress localAddress, int localPort,
                                       InetAddress remoteAddress, int remotePort, int ttl) throws IOException {
              try {
                  if (remoteAddress.isMulticastAddress()) {
                        dataSock = new MulticastSocket(localPort);
                        ctrlSock = new MulticastSocket(localPort+1);
                        ((MulticastSocket)dataSock).joinGroup(remoteAddress);
                        ((MulticastSocket)dataSock).setTimeToLive(ttl);
                        ((MulticastSocket)ctrlSock).joinGroup(remoteAddress);
                        ((MulticastSocket)ctrlSock).setTimeToLive(ttl);
                  else {
                        dataSock = new DatagramSocket(localPort, localAddress);
                        ctrlSock = new DatagramSocket(localPort+1, localAddress);
              catch (SocketException e) {
                  throw new IOException(e.getMessage());
              this.localAddress = localAddress;
              this.localPort = localPort;
              this.remoteAddress = remoteAddress;
              this.remotePort = remotePort;
         * Returns an input stream to receive the RTP data.
        public PushSourceStream getDataInputStream() throws IOException {
              if (dataInStrm == null) {
                  dataInStrm = new SockInputStream(dataSock, remoteAddress, remotePort);
                  dataInStrm.start();
              return dataInStrm;
         * Returns an output stream to send the RTP data.
        public OutputDataStream getDataOutputStream() throws IOException {
              if (dataOutStrm == null)
                  dataOutStrm = new SockOutputStream(dataSock, remoteAddress, remotePort);
              return dataOutStrm;
         * Returns an input stream to receive the RTCP data.
        public PushSourceStream getControlInputStream() throws IOException {
              if (ctrlInStrm == null) {
                  ctrlInStrm = new SockInputStream(ctrlSock, remoteAddress, remotePort+1);
                  ctrlInStrm.start();
              return ctrlInStrm;
         * Returns an output stream to send the RTCP data.
        public OutputDataStream getControlOutputStream() throws IOException {
              if (ctrlOutStrm == null)
                  ctrlOutStrm = new SockOutputStream(ctrlSock, remoteAddress, remotePort+1);
              return ctrlOutStrm;
         * Close all the RTP, RTCP streams.
        public void close() {
              if (dataInStrm != null)
                  dataInStrm.kill();
              if (ctrlInStrm != null)
                  ctrlInStrm.kill();
              dataSock.close();
              ctrlSock.close();
         * Set the receive buffer size of the RTP data channel.
         * This is only a hint to the implementation.  The actual implementation
         * may not be able to do anything to this.
        public void setReceiveBufferSize(int size) throws IOException {
             dataSock.setReceiveBufferSize(size);
         * Get the receive buffer size set on the RTP data channel.
         * Return -1 if the receive buffer size is not applicable for
         * the implementation.
        public int getReceiveBufferSize() {
              try {
                  return dataSock.getReceiveBufferSize();
              catch (Exception e) {
                  return -1;
         * Set the send buffer size of the RTP data channel.
         * This is only a hint to the implementation.  The actual implementation
         * may not be able to do anything to this.
        public void setSendBufferSize( int size) throws IOException {
             dataSock.setSendBufferSize(size);
         * Get the send buffer size set on the RTP data channel.
         * Return -1 if the send buffer size is not applicable for
         * the implementation.
        public int getSendBufferSize() {
              try {
                  return dataSock.getSendBufferSize();
              catch (Exception e) {
                  return -1;
         * Return the RTCP bandwidth fraction.  This value is used to
         * initialize the RTPManager.  Check RTPManager for more detauls.
         * Return -1 to use the default values.
        public double getRTCPBandwidthFraction() {
             return -1;
         * Return the RTCP sender bandwidth fraction.  This value is used to
         * initialize the RTPManager.  Check RTPManager for more detauls.
         * Return -1 to use the default values.
        public double getRTCPSenderBandwidthFraction() {
             return -1;
         * An inner class to implement an OutputDataStream based on UDP sockets.
        class SockOutputStream implements OutputDataStream {
              DatagramSocket sock;
              InetAddress addr;
              int port;
              public SockOutputStream(DatagramSocket sock, InetAddress addr, int port) {
                  this.sock = sock;
                  this.addr = addr;
                  this.port = port;
              public int write(byte data[], int offset, int len) {
                  try {
                       sock.send(new DatagramPacket(data, offset, len, addr, port));
                  catch (Exception e) {
                       return -1;
                  return len;
         * An inner class to implement an PushSourceStream based on UDP sockets.
        class SockInputStream extends Thread implements PushSourceStream {
              DatagramSocket sock;
              InetAddress addr;
              int port;
              boolean done = false;
              boolean dataRead = false;
              SourceTransferHandler sth = null;
              public SockInputStream(DatagramSocket sock, InetAddress addr, int port) {
                  this.sock = sock;
                  this.addr = addr;
                  this.port = port;
              public int read(byte buffer[], int offset, int length) {
                  DatagramPacket p = new DatagramPacket(buffer, offset, length, addr, port);
                  try {
                       sock.receive(p);
                  catch (IOException e) {
                       return -1;
                  synchronized (this) {
                       dataRead = true;
                       notify();
                  return p.getLength();
              public synchronized void start() {
                  super.start();
                  if (sth != null) {
                       dataRead = true;
                       notify();
              public synchronized void kill() {
                  done = true;
                  notify();
              public int getMinimumTransferSize() {
                  return 2 * 1024;     // twice the MTU size, just to be safe.
              public synchronized void setTransferHandler(SourceTransferHandler sth) {
                  this.sth = sth;
                  dataRead = true;
                  notify();
              // Not applicable.
              public ContentDescriptor getContentDescriptor() {
                  return null;
              // Not applicable.
              public long getContentLength() {
                  return LENGTH_UNKNOWN;
              // Not applicable.
              public boolean endOfStream() {
                  return false;
              // Not applicable.
              public Object[] getControls() {
                  return new Object[0];
              // Not applicable.
              public Object getControl(String type) {
                  return null;
          * Loop and notify the transfer handler of new data.
              public void run() {
                  while (!done) {
                        synchronized (this) {
                            while (!dataRead && !done) {
                                  try {
                                      wait();
                                  catch (InterruptedException e) { }
                            dataRead = false;
                        if (sth != null && !done) {
                            sth.transferData(this);
    }See, how to create RTPManager in next post

  • How to view local videos on iOS mobile device

    How do I view local videos on my iOS device running an Adobe Air app? I know how to view the CameraRoll for iOS in Flex on Adobe Air, but the CameraRoll class only brings up photos, no videos.  When I use:
    if (CameraRoll.supportsBrowseForImage) {
                                                      var roll:CameraRoll = new CameraRoll();
                                                      roll.browseForImage();
                                            } else {
      trace("Camera Browsing not available");
    The cameraRoll instance that is brought up only shows photos, no videos.  Any ideas?

    +1  I need this as well.
    It looks like it's simply not available in CameraRoll - is support planned?  What are other possibilities - File?  Navtive extension?
    Would AIR even be able to play typical phone video formats?  From a quick search, it seems that the iPhone captures h.264 in a mov container, while at least one Android phone captures MPEG-4 in a 3gp container.  I'll try transferring such videos to my computer and embedding them in a test app just to see if they play.
    Thanks for any insight!
    ETA: The docs for NetStream list h.264 and 3gp as supported formats.  From my testing, however, NetStream does play the iPhone .mov file, but does not play the Android .3gp file.  A Loader plays neither.

  • Unable to transfer my local videos into itunes.wnloaded itunes to my windows 8 but i am unable to transfer my local collection into itunes. please help ,e

    i have recently downloaded itunes into my windows 8 but i am unable to transfer my local videos and movies into the itunes though i can transfer my music.
    please help me to find out the problem. as well as i already have a data into my iphone and what if i will connect it to my laptop so would it be erase the data coz i dont wanna loss it.

    Click here and follow the instructions.
    (80232)

  • Local video files on native player - any examples or official response?

    Sorry to bring this up again as there are several posts in this forum asking the same questions but I figured now that Packager for iPhone is once again being actively supported it would be a good time to try and get some clarification.
    Playing local video files on the iPhone/Pad's native video player is a well documented feature of the packager but one that I have yet to get working or even see an example of. There are quite a few posts here and elsewhere with people asking how to get this feature working, especially with reference to the navigateToURL() function as described in the developer guide.
    Has anyone ever managed to get this feature working and are there any examples of code using navigateToURL() which have been successful for anyone? If not could one of the Adobe reps on this board give a response just to clarify if H.264 video playback is working as intended and documented.
    Many thanks for any incoming responses, I have been very happy to hear the news from Apple/Adobe over the last few days and getting this feature working would top off a few days of good news!

    I've tried that with no luck.  Here's a screenshot of the app.  You can see the many ways I've tried to play video files and it just doesn't work the way you suggested, or the way the documentation suggests.  What am I doing wrong?  Or does it just not work since no one can seem to get it to work?
    And yes, I did include the video:

  • AirPlay buffering from local video file [NOT WORKING]

    We have been trying to play videos on our Apple TV, (Actually 2 of them, neither worked). WE have a local video file on our mac (iTunes Version 11.3.1) and we have been trying to play the video n out Apple TV using AirPlay. We can select the Apple TV from the AirPlay list but when we go to watch it all it does is buffer. It buffers for ever. This happened on both our Apple TV's (one is a ten. 2 and the other a gen. 3). We have also tried using our other mac which also runs iTunes 11.3.1. Our network works fine, (Apple Time Capsule) we have backups going to it and everything. This issue only started about 3 days ago; before that everything worked perfectly for more then two years. (Across two different routers). Any suggestions would be very much appreciated.

    Hi,
    Just linking to the file won't work. You'll have to call
    navigateToURL with that file's path. This will load the file in the
    default browser.
    There's no other way to launch applications from AIR
    1.0.

  • Playing LOCAL video with Java FX

    Hello,
    I'm trying to make a media player with Java FX.
    I have downloaded the next example (BasicMoviePlayer)
    [http://jfxtras.org/portal/pro-javafx-platform/-/asset_publisher/1Bl5/content/16700?redirect=%2Fportal%2Fpro-javafx-platform|http://jfxtras.org/portal/pro-javafx-platform/-/asset_publisher/1Bl5/content/16700?redirect=%2Fportal%2Fpro-javafx-platform]
    and now I want to play a local video.
    Anybody knows how to do this?
    Thank you very much!

    For example:
    import javafx.stage.*;
    import javafx.scene.*;
    import javafx.scene.media.*;
    var source = "C:/Movie/big-buck-bunny-640x360.flv";
    Stage {
        title: "Simple Video Player"
        scene: Scene {
            width: 640
            height: 360
            content: [
                MediaView {
                    preserveRatio: true
                    mediaPlayer: MediaPlayer {
                        autoPlay: true
                        media: Media {
                            source: source
    }

  • AppleTV sound stuttering on playing local videos

    Is anyone having this problem? I have some mp4's (400 kbps) located inside AppleTV. I was able to play back with no issues a couple of weeks ago. Yesterday, when I ran the same video, the mp4's are played back with stuttering sound.
    I have the same issue while I was playing the movie trailers as well.
    Any thoughts?
    Cheerful_cal

    Having the same issue, but with all content, local, synced computer and web trailers. Did not happen when the apple tv was initially installed. I think I have to take it back into store. I see a number of threads on this issue.

  • Linking to local video on iPad

    Hello, I'm trying to link to a local file on the iPad from a pdf or ePub and have no idea what the file directory is for QuickTime movies in the Videos application. Does anybody know how to link to a local file on the iPad? Thanks very much.

    Ther is no file directory structure on the ipad. Apps save any associated files within the app. THe best tool I have used to mitigate this is Goodreader. You can saave files in goodreader and also open email attachements with it.
    The Goodreader app writeup in itunes or on the ipad app store will tell you all the file types supported.
    Mike

  • Play local videos one after the other

        Hi - I'm setting up 10 videos locally in Dreamweaver to play one after the other.  By local I mean everything is on a the computer and you just open up the HTML page in Chrome and it works.  When the HTML opens in Chrome, I got the first video to auto play and loop too.  But after video #1 ends, I need it for the 2nd video to start, then third, and so on until the 10th is over then it goes back to #1 again.
    The code I have on the local HTML page is and it works for one video is:
    <video width="720" height="406" controls autoplay loop>
      <source src="1E.mp4" type="video/mp4">
      <object data="1E.mp4" width="720" height="406">
      </object>
    </video>
    ...but I just can't figure out how to get the other 9 videos in there so they play after #1 then loop back to #1 again.
    Does anyone have any idea how to do this?  Thanks.

    Hooking up the computer to the TV is the easy part :-)
    I tried getting a windows media playlist set up and although I like that player, it seemed difficult to make a simple playlist in it.  Unless I wasn't reading the instructions correctly, I couldn't get it to work.
    I also like QT but it seems like you need to buy the QT Pro version as the basic player doesn't seem to allow for playlists (unless i'm missing something).
    If I could get either of the above to work and play these videos locally over and over I'm set.  But because I had problems with WMV and you have to pay for QT Pro that's why I'm trying to build something locally in DW.

  • Local Video/image slideshows on iPad

    Hi there
    We're struggling to use the iPad as a viable platform for pitching/presenting to clients.
    Right now we've made a website that links to video content but that makes us dependent on an internet connection.
    Is there a method/app available that would allow for a browsable, ideally non-linear way of showing images and video on iPad, where the media is stored LOCALLY?
    thanks for any help, I'm coming up empty!
    Steve

    I'm more than happy to pay for it if there was one that played video/images locally. i'll take a browse around, the apps on ipad store aren't well sorted.
    S

  • Local video file type?

    If I create & load a video locally, what file type does it need to be in order to be played back on the ipad? .mov/.mp4, etc.??

    http://www.apple.com/ipad/specs/
    H.264 video up to 720p, 30 frames per second, Main Profile level 3.1 with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats; MPEG-4 video, up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats; Motion JPEG (M-JPEG) up to 35 Mbps, 1280 by 720 pixels, 30 frames per second, audio in ulaw, PCM stereo audio in .avi file format.

  • Air Mobile: I need to play a local video.

    I'm developing an application that needs to have a video but without having an internet connection. I searched for a straight forward solution but I couldn't see a clear one.
    Can I embed the video? (I couldn't, it isn't possible?)
    Is it still good to create a SWF with it inside and then embed it? or it lost its quality / performance?
    Any other solution?
    Thanks a lot!

    Hi,
    Is the video in the local network?
    Here is an example playing a video from a local path, you can create an internet path to a server or other pc.
    http://www.riacodes.com/flex/basic-video-player-in-flex/
    I hope this help.
    Best,

  • Flash Local Video Record - NEED EXPERT

    Hello. I need to record video from a webcam locally,
    then allow a user to SAVE abd then upload to the server. I have
    heard that this is possible, but most people's first reaction is
    that Flash only allows saving direct to the server. Any help out
    there?

    where the streams folder is stored can be changed by modifing
    its config parameters just change it to the ftp folder or whatever
    you are using..........the config file will be in the flash med**
    server 2 folder some place ....I suspect it is in conf........let
    me know where you find it if you would...I've included the path to
    the conf folder below.
    C:\Program Files\Macromed**\Flash Med** Server 2\conf

Maybe you are looking for