I am developing a simple Mp3Player with JavaFX, and using MediaPlayer class to do the job, I am being quite sucessful with it, however I'd like to record the equalized sound I get from media player object to another .mp3 file. Is there anyway to do that?
Related
I use JavaFX MediaView to play video files. But sometimes when i play a video my application crashes even without opportunity handle some exception. But before crash i have time to get media exception: mediaPlayer.getError().printStackTrace() and as a result:
MediaException: UNKNOWN : [com.sun.media.jfxmediaimpl.platform.gstreamer.GSTMediaPlayer#3c63af0d] ERROR_MEDIA_INVALID: ERROR_MEDIA_INVALID
Is there any way to fix this?
I am viewing an excel on desktop from my application using
MainClass.getHostServicesUpg().showDocument("UploadData.xls");
I want to view another javafx stage once this file is open(or best when the file is closed by the user). Is there anyway I can monitor the file opening closing to view my next stage?
Looking at this Tutorial you can implement the WatchService to see if some sort of a look file was created. If that is the case you can open your stage. And if you notice the lock file was deleted you close your stage. This must be checked periodically since the WatchKey doesn't wait for events by the WatchService.
If you want i can try to create a small understandable example but that would take a while.
I am using Qt4.8 Windows version to develope an application to stream video using libvlc 2.2.1. When I use libvlc_media_player_set_hwnd() to render the video on my QWidget, its rather creating a separate window to display the video.
libvlc_media_player_set_hwnd(m_player, (void*)videoWidget->winId());
I have tried all versions of libvlc and all the examples related to libvlc with Qt. Also followed the steps given in https://wiki.videolan.org/LibVLC_SampleCode_Qt/
But I am not sure if I m missing anything.
It looks like as if libvlc_media_player_set_hwnd() is not able to take the QWidget WinId and creating its own window. However the value of (void*)videoWidget->winId() seems to be a valid one. (I got the value as 0x65).
Please let me know if I am missing anything.
You need to make sure you are configuring your VLC instance correctly first, so that it uses the dummy interface, for example:
/* Load the VLC engine */
std::vector<const char*> options;
options.push_back("--intf=dummy");
return libvlc_new(int(options.size()), options.data());
Also, are you sure you are passing the handle to the correct widget to render on? Also, make sure to set some size on the parent widget, otherwise you may not see anything render at all. Finally, check what media options you are setting to your media player instance, you may be inadvertently telling it to render to generated window.
I've been able to get VLC to work in my own Qt application using the following example as a starting point, even though it is for VLC 1.X:
LibVLC SampleCode Qt - VideoLAN Wiki
I am Trying to Apply some information Like text and An Image as an overlay to create a overlay effect as lice a security camera with time and date on the video along with a png based Logo.
I can record VIDEO Using Flex and FMS or any other Media Server. But I want to save a modified version of the stream being uploaded.
Use camTwist (mac) or webcammax (pc) as your video input...you can use that program to use the webcam and then add whatever over it (text, date). Use Flash Media Live Encoder and select camTwist as your video source. Stream and save your recordings using that FMLE.
Sorenson Squeeze is pretty awesome for this and is cross platform. Camtwist is cool but it's not really a 'pro' app, that makes me sound way snobbish. It's actually pretty fun and a good suggestion for a simple result but I haven't found anything better than Sorenson Squeeze for the features and control it gives you.
I embed a youtube video in my air application. It loaded and played well, but I cannot play more than one video at the time, only one video is played at the time, do you know why?
The code is:
url:String = "http://in.youtube.com/v/fVGk5qm6Mac&hl=en&fs=1";
//texturl.text=url;
swfloader.load(url)
I'm not sure, but I guess that if you create separate SWFLoader instances for each video you want to play, it shouldn't be a problem. It's hard to tell from the code you provide if you are using 1 or more SWFLoader objects.
You should be able to do this, but like Christophe mentioned, you'd need one SWFLoader instance for each video that you want to display at the same time. If you want to play the videos one after the other, you could use the same SWFLoader to do that though. Just wait until the video finishes playing, and then load the new one at that point.
Maybe this will help
Sample Youtube to Flex App