I have added JavaHelp to my web application, but now I need to include videos in the content (html)files. As far as I can read here I need to implement a lightweight component, and I can use the video viewer included in the Java 2 platform, but I am lost as to how to that.
Can anyone here walk me through the steps necessary to implement this?
As far as I can tell I need to
include an applet using the tags.
write the applet, basing it on the Java 2 video viewer
pack the applet??
I hope one of you has experience with this.
Related
I'm new in JavaFX FrameWork.I want to Create a Frame that will open Pdf File inside the Frame.
My Question is,
Is there any way to open Desktop App Inside JavaFx Frame?
I'm new in JavaFX FrameWork.
I'm just starting from this place
Edit:
I know how to create Frame Using JavaFx .
Ref Link.
But I want to run a desktop Applications inside of it like Acrobat Reader.
Can anyone please explain this is possible or not?
Am I searching for a wrong thing for a long time? Please Explain me if it is possible or not.
I do not believe there is integrated PDF supported into either Java or JavaFX. There are however a number of external libraries such as jpedal that provide embeddable java components for the viewing of pdf documents. You should be able to embed this node within the javafx frame.
An alternative solution would be to parse the pdf file into something you can display in your jframe.
Another solution can be found here which even includes a simple guide on setup.
Another quick search revealed an open source solution:
maven-OpenViewerFX-src
Watch the youtube video here
A somewhat hackable workaround, if you want no external Java libraries
It is possible to display the PDF in the web viewer by utilizing pdf.js, See this website for the entire details . But in short it involves rendering the PDF in a webview component. You could then embed the webview component in your Jframe.
I'm developing a java swing application in which i need to show the map of some area and allow user to put markers on it.
I've goggled a lot on the topic but unfortunately i haven't got any how i can do it.
I came across some ideas like displaying a web browser in swing just like JXBrowser (i can't afford JXBrowser).
And i'm also not sure if this way will allow me adding markers.
Please guide me some proper way to do the trick.
Please do tell me if i can do it offline or online any way suitable.
Have you looked at OpenStreetMap? In particular JOSM
I wish to play a video in JFrame. I am already using ffmpeg in my project. As I wish to keep the project light, I am not willing to use other frameworks like JMF or other. I know that I can play video using ffplay. But the problem here is ffplay opens the video in new window when I try
ffplay output.avi
I wish to put that video within my JFrame, like a player. How can I do this?
Request:
Please ask for any other clarifications, details, and suggest improvements or comment what you find wrong before downvoting or voting to close the question:). I will change it. I am really new to Java, I tried searching this but could not find any possible solution.
What I tried? I couln't find anything related to this, so I don't have any code. I am familiar to how to create frames, and can use runtime to ffplay video. But I got no clue how to put that video within my window:(.
All suggestions are welcome if you can suggest me other methods to play the video. But I haven't use any frameworks other than ffmpeg. And do not wish to make the application heavier. So it would be more helpful if it can be achieved using ffplay.
Look at the JMF 2.1.1 - Supported Formats. If the video types you wish to support are covered by the cross-platform1 version of the JMF, or you can find an SPI for the format, I'd say use JMF.
The 'performance pack' version uses natives which are now very old. I would not recommend trying to use them.
I have an audio file in .3gp format on my Android device which I wish
to upload to YouTube. I know that YouTube is a video upload site and
that I need to convert this sound file to video.
I just want an image to display all the time the audio is playing.
Google tells me there are number of tools that can help me. But I want
to do this via java code from my Android device.
Please help.
Thanks.
There are tools such as FFMPEG available for free that allow you to, essentially, mix and convert heterogenous streams. That is you can add a bitmap to a video, create video from slide shows and then add sound etc. (See a related question I asked here).
These programs can be executed from within java applications by making Runtime.exec(..) calls.
Sun has an example for stitching multiple JPEGs together into a movie, you can find it here. You should be able to take this example, (its fairly robust), and add what you need to it.
I recommend looking into the Java Media Framework (FAQ)
You can find a vast collection of sample applets/code at the Sun Solutions page. You can find the API on this page. I do hope this is compatible on the Android platform, as I haven't had any personal experience developing for it. But it might be a good place to start.
I have this new requirement to develop a software which is a large scale image up loader in a web application. I was able to do the same using swing contains several feature like drag and drop, progress bar, remove file / files , modify, limit file size, verify file information, timer, verify at run time ..and its a very powerful tool which uploads images.
I would like to do the same in web based app, like user selects 200 images process it and click upload and it should start uploading, like to know any feasible frameworks or any API's which help me do this faster and achieve the same kind of functionality. Please point me in correct direction.
-PD
You can do upload apps, but not fancy stuff like drag and drop with run of the mill HTML. HTML5 on google chrome maybe, but I doubt you want code that only works on chrome.
Have you looked into turning your image uploader app into a java applet? Applets generally have a bad rep, but this is one of the very (in my opinion) valid uses of one...
Either turn your uploader into an applet or use a 3rd party image upload applet, such as JumpLoader. You then just embed this applet in your webpage. Turning your uploader into an applet should actually be a piece of cake since you've the UI apparently already ready. You can make use of deployJava.js script to reliably deploy an applet.