How to play media form InputStream with jmf or dsj?

the media format is avi or mp4.
media receive from socket and put in a ring buffer.now implement InputStream to read datas from buffer and play the data.
i want to know how to play media from inputStream

Hi, thanks for replying.
Im not exacly sure what year the imac is i cant seem to find it anywhere.
I bought the machine last year on apples refurbished site. Someone at Apple support suggested once that it maybe a 2010 model. In system profiler there is a thunderbolt tab in the left hand pane but it says there are no drivers  loaded. Does that mean that thunderbolt is on the mac but i must install the drivers? If so, is it all plug and play after that or do i need to configure it all manually? If so coyuld you please point me in the right direction for instructions on how to do it. My tv for instance is saying that it cant find a server. As for vlc player, i use it all the time.Dont know what ide do without it !

Similar Messages

  • How to Map Proces form field with Resource form field?

    Hi,
    How to Map Proces form field with Resource form field while creating Process form in Form designer

    Are you talking about Provisioning ?
    then you do that in Data Flow under Process Defintion in OIM 10g
    In OIM 11g you use Request Dataset. In that you can directly map fields to process form.

  • How to play media contents on Safari on iPhone 3G??!!!

    Does anyone know how to play media contents (mp3, mpeg, avi, wav, ...) on Safari on an iPhone 3G?
    Is there any official plugin that could be installed for Safari to do that?

    you can go to http://www.apple.com/iphone/gallery/ads/ for sample videos running on safari
    File types that iPhone supports can be checked here
    http://www.apple.com/iphone/specs.html

  • How to know the forms associated with a specific transaction

    Hi..
    Can anyone please suggest me how to know the forms associated with a specific transaction.
    For Example In Finance module.
    I came to know from SDN the form associated with F.64 as F140_acc_stat_01.
    But i need the steps how to track the form name.
    Regards..
    Vinodh

    Hi,
    1.We cann't find the forms associated with a specific transaction.
    2.But,based on requirement we can go for the form selection.
    3.Suppose in account payable and receivable , we have different forms like customer statement, Dunning and Chek form etc.
    4.The functional people can find the form name in SPRO and give the details of the requirement.
      5.If u have the output type or formname u can go for the TNAPR and  TTXFP tables and u can search for the respect object.
    6.For FI u can directly find in the SPRO, by searching it with the form name.
    Regards,
    If helpful reward with points(Don't forget).

  • How to set auto-exposure off with jmf

    i need to set auto-exposure option off of my usb cam (i am using a a4 tech usb cam) is it possible to do this in jmj if so can you provide me some examples about it
    any help is appreciated

    Hi, I need to know how to turn off Auto-exposure, and how to control exposure time programatly with JMF, is this possible?? I been looking in docs and google with no luck
    Regards,
    Daniel Jimenez

  • How to play a cue point with mixer

    I know how to play a cue point of sound with the method:
    sound(1).queue([#member: ...  #startTime: ... EndTime: ... ])
    How can I transfer the method of cue point using  the mixer?
    I need to have any hint about this because I must use both cue
    point with playrate, at my begginer level of knowledge I know that:
    1) I can't use "playrate" with  "sound(1).play()" method.
    With this method I can use cue point;
    2) I'm trying to know If I can use cue point with   mixer method.
    With this method I can use "playrate" .
    It is also for me important to know if it is possible or
    impossible to solve this problem in director.
    Thanks.

    iPhone 3gs, 4 or 4s?
    With the former two, just drag the videos to the desktop iTunes and sycnhronize to your iPad. They will be synched to the stock Videos.
    With the latter, you can either resize the video to 720p (or less) OR use a third-party app (It's Playing, AVPlayerHD, GoodPlayer being the best choices) to play it back. I'd go with the latter to avoid quality degradation and long-lasting reencodings.

  • How to play media to tv from mac

    Hi all, this is my first time (only my third ever) on apple support communities, so please excuse my ignorancel
    I have spent hours online trying to figure out how to veiw media content on my Panasonic Viera 42" hdtv from my imac , with out any real luck.
    I have figured out how to watch Panasonics own content through the Viera connect feature on the tv.
    The thing im having most trouble with is connecting my 27"imac to the tv to play content downloaded from the internet such as avi files, camera movies and the like.
    Someone suggested a free open source set up called xbmc which i have installed but i dont know how to configure it to connect to the tv. Or am i trying to be too adventurous as a first timer and need to concentrate on a simpler option.
    And finally if i do take the latter option, do i need to configure the imac to act as a server and if so how do i do that?
    Thank you in advance to anybody taking the time to read this.

    Hi, thanks for replying.
    Im not exacly sure what year the imac is i cant seem to find it anywhere.
    I bought the machine last year on apples refurbished site. Someone at Apple support suggested once that it maybe a 2010 model. In system profiler there is a thunderbolt tab in the left hand pane but it says there are no drivers  loaded. Does that mean that thunderbolt is on the mac but i must install the drivers? If so, is it all plug and play after that or do i need to configure it all manually? If so coyuld you please point me in the right direction for instructions on how to do it. My tv for instance is saying that it cant find a server. As for vlc player, i use it all the time.Dont know what ide do without it !

  • How can i submit form-data with acrobat pocket pc

    how can i submit form-data (http-post) on a PPC?
    how can i store the data offline?
    which submit-functions are availabe for the pocket pc reader?
    do i need ARES?
    where can i find a documentation of of the available functions for the ppc version?
    where can i fond form-samples for ppc?
    from the docu on my pocket pc:
    Submit form data using handheld devices over a wireless connection. If you are working offline, the data is temporarily stored, then submitted once a connection is established. Send forms by e-mail or directly to the destination server using a cradle or cable

    To your question regarding the Pocket PC version of Reader, I downloaded Adobe Reader for Pocket Pc 2 and installed it on my HP iPAQ . I then loaded my test PDF file onto the iPAQ. The Reader for Pocket PC preformed an email submission fine. However, I received no indication that anything happened when I tried an HTTP Post. So I think you can only do an email submission.
    In general, I have been testing to see how much I can do without the Live Cycle Reader Extensions, since for sure I will never be able to purchase them. What I have found is that for Acrobat Reader 7, the email submission works for all of the people I have asked to test it, but the HTTP Post has worked for only one of the two people who have tested it so far with Reader 7 (the one for which it worked claims that he only has Reader 7 on his computernot Acrobat).

  • How i connect my forms/report  with 9i database/ how i configer my form and

    hi master;
    i have 6i forms and 9i oracle database both are right but how i accece the 9i in my form and report.
    which file i copy and where i copy .
    please send me file name or how i configer my form and report with 9i
    thanking you
    Aamir

    Dear Aamir,
    Please copy TNSNAMES.ORA file from your Database Home/NETWORK/ADMIN directory and copy that in NETWORK/ADMIN directory where you installed Forms/Reports 6i. then you can connect to your server by using SID as host string like: system/manager@<SID example: ORCL>
    Regards,
    Reza

  • How to implement a forms application with an application server

    Hi,
    I want to implement a forms application with OAS version 10.1.0.
    How to configure? Where can I find some documents?
    Max

    See
    http://www.oracle.com/technology/documentation/appserver.html
    and
    http://www.oracle.com/technology/products/forms/index.html

  • How to connect oracle forms 6i with .odb database

    Hai,
    I need to connect oracle forms 6i with .odb database.
    What are the software i need to install.
    tell me the steps hoe to connect the oracle forms6i with .odb database

    I must say honestly that I got a little ticked when you have mentioned .odb is oracle lite.You should mention the complete name of the software whichever it may be as its not at all mandatory,everyone would know the acronym.
    Anyways,a quick search revealed this.
    Connect Forms 6i application to Oracle 10g Lite database on notebook
    I have not worked in Oracle lite at all.So I can't help much in it.But as per the thread,it wont be a straight connectivity.I would suggest you contact Support
    Aman....

  • How to play a mp4 movie with DTS audio?

    Hello,
    I try to play a mp4 movie with DTS audio on the z1 player but i dont get any sound...I also have downloaded the app mx player, but this also wont play the dts audio. Any suggestions?
    Thanks,
    Edy

    http://forum.xda-developers.com/showthread.php?t=1831111
    "I'd rather be hated for who I am, than loved for who I am not." Kurt Cobain (1967-1994)

  • Re: play media without using the JMF?

    Possible? Yes!
    Logical? Probably Not!
    The JMF implements a number features that video players need and thus reduces the amount of coding required to produce video products.
    I have a altered an MPEG-4 codec written in C so that it can be called via JNI (The Java Native Interface) meaning I can decode MPEG-4 content while programming in Java.
    If I were to avoid using JMF then I would have to deal with the conversion of the output from YCbCr (Commonly but mistakenly called YUV) to RGB and then put in an object that the Java awt system could present on the screen e.g. BufferedImage etc. Then I would have to deal with the timing etc for framerates and make sure that the data was processed quickly enough to be displayed as desired.
    But by using the JMF I can just write a codec plugin and let the JMF handle the rest.
    Hope this helps,
    Stef

    Hi, ii hope i explain this for ya
    Jun4Java is an application written in java, it can handle 3d graphics and multimedia. The only way i found out that it was able to play the mpeg-4 movies, flash files, etc was buy actually running the application and trying to open and play the files with it - which it did.
    As far as i can understand, jun4java uses the jni to enable it to play these media files, but to better explain it for you i think i'm gona post the readme file you get when you download the app, it explains jun4java, and it's capabilites better than i ever will...
    Befoe you read it, the one thing i've noticed is that it seems to use the jni to play the multimedia through quicktime,
    Jun for Java
    "Jun for Java" is a name of a Java class library which can be
    used as a framework to handle 3D graphics and/or multimedia. It
    is an open source software, designed and implemented with object
    oriented technologies, and of course free of charge.
    Jun provides an OpenGL interface as a primitive for 3D graphics
    handling. Of course you can do OpenGL programming by using the
    OpenGL interface directly, we also provide dozens of advanced
    features, large and small, as reusable class libraries,
    including "ViewFinder" which shows 3D objects and allows users
    to manipulate them, "ViewPort" which visualizes an eye point, a
    sight point, far/near clipping planes, etc. of a corresponding
    ViewFinder, "Flux" which plays a simple animation, "Grapher"
    which shows graph structures (nodes and links) in a 3D space,
    and so on.
    "Jun for Java" also provides a QuickTime interface as a
    primitive for multimedia handling. In addition to playing
    movies/sounds or processing images by using the QuickTime
    interface directly, there is a movie player, which is just like
    a QuickTime Player, and you can extend it to create your own
    movie player. You also can embed the movie player to your
    application. Some advanced features like specifing a clip,
    playing and repeating the clip, and creating a movie file of the
    clip are also available.
    Since "Jun for Java" provides functions for handling both 3D
    graphics and multimedia, it is easy to coordinate them. For
    example, you can select a frame of a movie and use it as a
    texture of a 3D object without any hard programming. This is
    the one of the strongest points of "Jun for Java".
    "Jun" was originally developed on VisualWorks (Smalltalk) and
    ported to Java as a project for the Information-technology
    Promotion Agency, Japan (IPA). "Jun for Java" currently runs
    on Windows 98/Me/NT4.0/2000/XP, Linux, and Macintosh OS X.

  • How to create a YUV Player with JMF

    Hey again,
    Just wondering anyone could give me some pointers on how to go about creating a player for raw YUV files. I want to create a player or plugin that will allow the system to play raw YUV files, if given the relevent parameters, frame rate, resolution, YUV subsampling etc,
    Thanks,
    Stef

    Ok, it's a bit course and I am looking into making a much neater version but this is code allows you to play local rawyuv files from a URL. This code is directly based on the "Generate Live Audio/Video Data" Sample Code (thanks again to mok524 for pointing me in this direction)
    The code needs to be compiled and then the package 'ie.ucd.delboy' needs to be added to the Protocol Prefix List using the JMF Registry Editor. Then run the JMStudio and go to File>Open URL..
    Then type in a URL in the following format:
    rawyuv://<<local file location>>:F<<frame>>S<<width>>x<<height>>
    example:
    rawyuv://C:/my_directory/my_file.yuv:F10S352x176
    So Here's the code:
    package ie.ucd.delboy.media.protocol.rawyuv;
    import javax.media.Time;
    import javax.media.MediaLocator;
    import javax.media.protocol.*;
    import java.io.IOException;
    import java.io.*;
    import java.util.*;
    import java.awt.*;
    public class DataSource extends PushBufferDataSource
        protected Object[] controls = new Object[0];
        protected boolean started = false;
        protected String contentType = "raw";
        protected boolean connected = false;
        protected Time duration = DURATION_UNKNOWN;
        protected LiveStream[] streams = null;
        protected LiveStream stream = null;
        public DataSource()
        public String getContentType()
         if(!connected)
             System.err.println("Error: DataSource not connected");
             return null;
         return contentType;
        public void connect() throws IOException
         if(connected)
             return;
         connected = true;
        public void disconnect()
         try
             if(started)
              stop();
         catch(IOException e)
         connected = false;
        public void start() throws IOException
         // we need to throw error if connect() has not been called
         if(!connected)
             throw new java.lang.Error(
              "DataSource must be connected before it can be started");
         if(started)
             return;
         started = true;
         stream.start(true);
        public void stop() throws IOException
         if((!connected) || (!started))
             return;
         started = false;
         stream.start(false);
        public Object[] getControls()
         return controls;
        public Object getControl(String controlType)
         try
             Class cls = Class.forName(controlType);
             Object cs[] = getControls();
             for(int i = 0; i < cs.length; i++)
              if(cls.isInstance(cs))
              return cs[i];
         return null;
         catch(Exception e)
         return null;
    public Time getDuration()
         return duration;
    private String getFile()
         String url = getLocator().toString();
         int index_of_colon = url.indexOf(':');
         int index_of_last_colon = url.lastIndexOf(':');
         if(index_of_colon==index_of_last_colon)
         index_of_last_colon = url.length();
         String file = url.substring(index_of_colon+3, index_of_last_colon);
         return file;
    private float getFrameRate()
         float frame_rate = 15; //15 set as default framerate
         String url = getLocator().toString();
         int index_of_last_colon = url.lastIndexOf(':');
         String params = url.substring(index_of_last_colon+1).toLowerCase();
         if(params.indexOf('f')!=-1)
         int start = params.indexOf('f')+1;
         int end = params.length();
         if(params.indexOf('s') > start)
              end = params.indexOf('s');
         frame_rate = Float.parseFloat(params.substring(start, end));
         return frame_rate;
    private Dimension getFrameSize()
         Dimension d = new Dimension(176, 144); //QCIF as default
         String url = getLocator().toString();
         int index_of_last_colon = url.lastIndexOf(':');
         String params = url.substring(index_of_last_colon+1).toLowerCase();
         if(params.indexOf('s')!=-1)
         int start = params.indexOf('s')+1;
         int end = params.length();
         if(params.indexOf('f') > start)
              end = params.indexOf('f');
         String size = params.substring(start, end);
         int x = Integer.parseInt(size.substring(0,size.indexOf('x')));
         int y = Integer.parseInt(size.substring(size.indexOf('x')+1,size.length()));
         d = new Dimension(x, y);
         return d;
    public PushBufferStream[] getStreams()
         if(streams == null)
         streams = new LiveStream[1];
         stream = streams[0] = new LiveStream(getFile(), getFrameRate(), getFrameSize());
         return streams;
    package ie.ucd.delboy.media.protocol.rawyuv;
    import java.awt.Dimension;
    import javax.media.*;
    import javax.media.format.*;
    import javax.media.protocol.*;
    import javax.media.protocol.DataSource;
    import java.io.IOException;
    import java.io.*;
    public class LiveStream implements PushBufferStream, Runnable
        protected ContentDescriptor cd = new ContentDescriptor(ContentDescriptor.
         RAW);
        protected int maxDataLength;
        protected byte[] data;
        protected Dimension size;
        protected YUVFormat yuvFormat;
        protected AudioFormat audioFormat;
        protected boolean started;
        protected Thread thread;
        protected float frameRate = 5f;
        protected BufferTransferHandler transferHandler;
        protected Control[] controls = new Control[0];
        private FileInputStream fis = null;
        private FileOutputStream fos = null;
        private boolean EOS = false;
        protected boolean videoData = true;
        public LiveStream(String location, float frame_rate, Dimension frame_size)
         frameRate = frame_rate;
         try
             fis = new FileInputStream(location);
             fos = new FileOutputStream("C:\\stef_temp\\log_data.txt");
         catch(Exception ex)
             System.exit(1);
         int x, y, pos, revpos;
         size = frame_size;
         maxDataLength = size.width * size.height * 3;
         yuvFormat = new YUVFormat(size,
                          maxDataLength,
                          Format.byteArray,
                          frameRate,
                          YUVFormat.YUV_420,
                          size.width,
                          size.width / 2,
                          0,
                          size.height * size.width,
                          size.height * size.width +
                          ((size.height / 2) * (size.width / 2)));
         thread = new Thread(this);
        public ContentDescriptor getContentDescriptor()
         return cd;
        public long getContentLength()
         return LENGTH_UNKNOWN;
        public boolean endOfStream()
         return EOS;
        int seqNo = 0;
        double freq = 2.0;
        public Format getFormat()
         return yuvFormat;
        public void read(Buffer buffer)
         synchronized(this)
             Object outdata = buffer.getData();
             if(outdata == null || !(outdata.getClass() == Format.byteArray) ||
                ((byte[]) outdata).length < maxDataLength)
              outdata = new byte[maxDataLength];
              buffer.setData(outdata);
             buffer.setFormat(yuvFormat);
             buffer.setTimeStamp((long) (seqNo * (1000 / frameRate) * 1000000));
             try
              fos.write(("Bytes left in file: "+fis.available()+"\n").getBytes());
              if(fis.available()==0)
                  fos.write("Reached end of file!\n".getBytes());
                  fis.close();
                  fos.close();
                  EOS = true;
              fis.read((byte[]) outdata);
             catch(IOException ex)
             buffer.setSequenceNumber(seqNo);
             buffer.setLength(maxDataLength);
             buffer.setFlags(0);
             buffer.setHeader(null);
             seqNo++;
        public void setTransferHandler(BufferTransferHandler transferHandler)
         synchronized(this)
             this.transferHandler = transferHandler;
             notifyAll();
        public void start(boolean started)
         synchronized(this)
             this.started = started;
             if(started && !thread.isAlive())
              thread = new Thread(this);
              thread.start();
             notifyAll();
        public void run()
         while(started)
             synchronized(this)
              while(transferHandler == null && started)
                  try
                   wait(1000);
                  catch(InterruptedException ie)
             if(started && transferHandler != null)
              transferHandler.transferData(this);
              try
                  Thread.currentThread().sleep(10);
              catch(InterruptedException ise)
        public Object[] getControls()
         return controls;
        public Object getControl(String controlType)
         try
             Class cls = Class.forName(controlType);
             Object cs[] = getControls();
             for(int i = 0; i < cs.length; i++)
              if(cls.isInstance(cs))
              return cs[i];
         return null;
         catch(Exception e)
         return null;

  • How to play http live streaming with VLC using FMS 4.0

    Hello,
    i'm using FMS 4 and i need to play my http live streaming event with VLC
    I have had the following result with firefox using the url : http://myip:8134/live/events/livepkgr.old/events/_definst_/liveevent.f4m
    <manifest>
    <id>
                        livepkgr.old/events/_definst_/liveevent
              </id><mimeType>
              </mimeType><streamType>
                        live
              </streamType><duration>
                        0
              </duration><media streamId="livestream1" bitrate="100" url="../../../../streams/livepkgr.old/streams/_definst_/livestream1/livestream1" bootstrapInfoId="bootstrap7580"><metadata>
                                  AgAKb25NZXRhRGF0YQgAAAAAAAhkdXJhdGlvbgAAAAAAAAAAAAAFd2lkdGgAQHQAAAAAAAAABmhlaWdodABAbgAAA AAAAAAMdmlkZW9jb2RlY2lkAgAESDI2NAAKYXZjcHJvZmlsZQBAU0AAAAAAAAAIYXZjbGV2ZWwAQD8AAAAAAAAADnZ pZGVvZnJhbWVyYXRlAP/4AAAAAAAAAAl0cmFja2luZm8KAAAAAgMABmxlbmd0aAAAAAAAAAAAAAAJdGltZXNjYWxlA ECPQAAAAAAAAAhsYW5ndWFnZQIAA2VuZwAACQMABmxlbmd0aAAAAAAAAAAAAAAJdGltZXNjYWxlAECPQAAAAAAAAAh sYW5ndWFnZQIAA2VuZwAACQANc21wdGVUaW1lSW5mbwMAC3NtcHRlT2Zmc2V0AAAAAAAAAAAAAAAJAAdjdXN0ZGVmC gAAAAAAAAk=
                        </metadata></media><media streamId="livestream2" bitrate="200"><metadata>
                        </metadata></media><media streamId="livestream3" bitrate="350"><metadata>
                        </metadata></media><bootstrapInfo profile="named" url="../../../../streams/livepkgr.old/streams/_definst_/livestream/livestream.bootstrap" id="bootstrap3136">
              </bootstrapInfo><media streamId="livestream" url="../../../../streams/livepkgr.old/streams/_definst_/livestream/livestream" bootstrapInfoId="bootstrap3136"><metadata>
                                  AgAKb25NZXRhRGF0YQgAAAAAAAhkdXJhdGlvbgAAAAAAAAAAAAAFd2lkdGgAQHQAAAAAAAAABmhlaWdodABAbgAAA AAAAAAMdmlkZW9jb2RlY2lkAgAESDI2NAAKYXZjcHJvZmlsZQBAU0AAAAAAAAAIYXZjbGV2ZWwAQD8AAAAAAAAADnZ pZGVvZnJhbWVyYXRlAP/4AAAAAAAAAAl0cmFja2luZm8KAAAAAgMABmxlbmd0aAAAAAAAAAAAAAAJdGltZXNjYWxlA ECPQAAAAAAAAAhsYW5ndWFnZQIAA2VuZwAACQMABmxlbmd0aAAAAAAAAAAAAAAJdGltZXNjYWxlAECPQAAAAAAAAAh sYW5ndWFnZQIAA2VuZwAACQANc21wdGVUaW1lSW5mbwMAC3NtcHRlT2Zmc2V0AAAAAAAAAAAAAAAJAAdjdXN0ZGVmC gAAAAAAAAk=
                        </metadata></media><bootstrapInfo profile="named" url="../../../../streams/livepkgr.old/streams/_definst_/livestream1/livestream1.bootstrap " id="bootstrap7580">
              </bootstrapInfo>
    </manifest>
    How can i play that event with VLC?
    Regards,

    Problem solved  - thanks to JayCharles. I forgot to set the live attribute. Here's the working code:
    <?xml version="1.0"?>
    <!-- controls\videodisplay\VideoDisplayFMS.mxml -->
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
        <mx:HBox>
             <mx:VideoDisplay
                 live="true"
                 autoBandWidthDetection="false"
                 source="rtmp://localhost/live/livestream"/>
         </mx:HBox>
    </mx:Application>

Maybe you are looking for