User Profile

Collapse

Profile Sidebar

Collapse
shahiz
shahiz
Last Activity: Mar 24 '08, 09:07 AM
Joined: Feb 21 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • JMF Datasource problem..i need help with this one error

    This the error i get when i try to run my program
    Code:
    Error: Unable to realize com.sun.media.amovie.AMController@18b81e3
    Basically i have a mediapanel class that initialize and play the media as datasource
    Code:
    import java.awt.BorderLayout;
    import java.awt.Component;
    import java.io.*;
    import java.net.URL;
    import javax.media.*;
    import javax.swing.JPanel;
    import java.nio.ByteBuffer;
    ...
    See more | Go to post

  • im sorry about not using code tags
    was my first post

    this is error from the program

    Code:
    LoadInputStream.loadBytes() - Creating DataSource (InputStream)
    LoadInputStream.loadBytes() - Creating Player
    LoadInputStream.loadBytes() - Adding Controller Listener
    LoadInputStream.loadBytes() - realizing player
    Exception in thread "JMF thread: com.sun.media.amovie.AMController@1855af5[ com.
    ...
    See more | Go to post

    Leave a comment:


  • shahiz
    started a topic Problem Converting Byte Array to Datasource For JMF
    in Java

    Problem Converting Byte Array to Datasource For JMF

    basically im having null pointer exception

    //read an inputstream
    is = new DataInputStream (new FileInputStream ("test.mpg") );
    loadBytes(is);

    //pass it as a datasource for the player
    public void loadBytes(Input Stream is){
    DataSource ds=new DataSource(is);
    player = Manager.createP layer(ds);

    //datasource class
    import java.io.*;
    import java.nio.ByteBu ffer;...
    See more | Go to post
No activity results to display
Show More
Working...