jmf

MP3 won't stream with JMF

社会主义新天地 提交于 2019-12-20 12:32:06
问题 Basic idea is to access .mp3 file and send it through RTP stream to other client, who will want to play that song. Here is RTPServer.java, which I found online and modified it to my liking. package server; import java.net.InetAddress; import javax.media.rtp.*; import javax.media.rtp.rtcp.*; import javax.media.*; import javax.media.protocol.*; import javax.media.control.*; public class RTPServer implements ControllerListener, Runnable { private boolean realized = false; private boolean

Sun, Audio-player and Sound I/O

我是研究僧i 提交于 2019-12-17 14:56:33
问题 I have a few questions related to Sun, Audio-player and Sound Input/Output Why is the sun.audio.AudioPlayer package not part of the Java API? Some info is here instead: http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6b14/sun/audio/AudioPlayer.java Yet it is still part of the default JDK build I am using. I have tried using JMF and spent half the day screw balling around with it, to no real avail. I managed to import the jmf.jar into Eclipse I tried a demo script and it

Any simple (and up to date) Java frameworks for embedding movies within a Swing Application?

拥有回忆 提交于 2019-12-17 06:51:26
问题 I am building a small Swing application that I would like to embed a movie within. Importantly, this application is a WebStart application - and the library should be able to be packaged within the jnlp that I launch -i.e, not dependent on native libraries. I am aware of and have tried JMF but the format compatibility I believe to be relatively poor when compared to other frameworks out there. Could someone please provide a sample code snippet of a simple implementation using their

Play video in a Java Desktop Application

自作多情 提交于 2019-12-14 02:17:13
问题 I'm trying Java Media Framework and I'm noticing that it doesn't support many video formats and it seems not to be updated enough. Is there an alternative for JMF for Windows Java Desktop Applications? 回答1: Yes, I'd definitely recommend staying away from JMF. I've felt your frustrations! Personally I recommend VLCJ, especially if you need support for a wide range of formats - I'm using it in my application and it works very well. The following questions may also be relevant: Dealing with

How to play .avi FILES WITH JMF

流过昼夜 提交于 2019-12-13 07:07:40
问题 i m doing a project in java i m using jmf (media package) for the same.it plays mpg mp3 files but it can't play .avi files give me some hint. 回答1: You might be missing the codec the file is encoded with..you can use any open source tools like this, to find out the codec that is missing. 来源: https://stackoverflow.com/questions/4089997/how-to-play-avi-files-with-jmf

Audio Player using MediaPlayer class in JMF

孤街浪徒 提交于 2019-12-13 03:38:28
问题 JMF provides a class MediaPlayer which can be used as a full-featured player. However, I can't find a way to play an audio file. Some snippets of the code used. import javax.media.bean.playerbean.MediaPlayer; // .... MediaPlayer mp = new MediaPlayer(); mp.setMediaLocation(location of file); // <- syntax error! mp.start(); But it doesn't work. Eclipse shows this error: Syntax error on token "setMediaLocation", Identifier expected after this token ..on setMediaLocation() method. Can someone

Problems creating an RTP stream with JMF

岁酱吖の 提交于 2019-12-12 20:24:21
问题 I'm at the very early stages of a project requiring the broadcasting, using RTP, of a DataStream created from a MediaLocation . I'm following some example code which currently failingin on the rptManager.initalize(localAddress) with the error " Can't open local data port: xxxx ", specifically: Exception in thread "main" javax.media.rtp.InvalidSessionAddressException: Can't open local data port: 34586 at com.sun.media.rtp.RTPSessionMgr.initialize(RTPSessionMgr.java:2688) at com.sun.media.rtp

Java Media API: java media api download

ぃ、小莉子 提交于 2019-12-12 12:19:29
问题 Where can i find javax.media.* jar file.. In sun site it downloads an installer. Is there any available of the media jar for java? 回答1: There is no javax.media.* jar file specifically. That package is in the jmf.jar file. You will need to either run the installer and take out the jar, or the cross platform install is just a zip file (this jar doesn't use any native libraries, so it doesn't need to be installed) that has the jar in it. 回答2: You might consider using a dependency manager to help

required jars for video recording using JMF

我的梦境 提交于 2019-12-12 05:29:33
问题 which are the jars used to record video from the list of jar files 1)jmf.jar 2)multiplayer.jar 3)mediaplayer.jar 4)sound.jar 5)customizer.jar i am trying to record a video using an applet which contains JMF class,when i tried this applet in a system which doesnt have JMF installed i am not getting any video and audio properties like in a system which has JMF installed.how can i get video and audio properties in an applet in a system which has no JMF installed currently i am adding only jmf

OutOfMemoryError

北城余情 提交于 2019-12-11 09:12:49
问题 I have one main class that contains 5 buttons each link to a program/package. Each package runs a jmf program that capture images from a webcam and it also loads about 15 images from file. The 1st program to load(regardless of which button i press) always runs correctly. But When i run a program after the 1st program ends, java.lang.OutOfMemoryError: java heap space occurs. Im not sure if java can't handle all of our images or if it has something to do with jmf image capture. 回答1: Maybe you