Help plz-internalFrames--buttons-video..any jgurus around??
Hi to all
My name is Dimitrios and i am developing a program which is consisted by a client program and a server program. The purpose of the application is to stream video (TV channels) to the client.The server program is used to authenticate the client (at the moment) where the client after the authentication is providing a GUI in order to choose the Chanel and watch the video.In more detail:
Client site:
2 classes ( frames)
The 1st frame (login.java) prompts for username and password. The server (prog) authenticates the pass and if correct the client "moves" to the next frame (by set visible false to the 1st frame).
The 2nd frame (client.java) is the actual GUI of the program. It is consisted by two buttons (assume we have two T.V channel options) and an internal frame which is where the video is displayed.
In order to develop this program i have split up the tasks and try to solve each task at a time. What i mean is:
1)Create an authentication procedure (DONE)
2)Create the GUI of the client (DONE)
3)Create the operation where button is pressed and video is played IN THE INTERNAL FRAME (in progress)
4)Stream video (in progress)
Since i don't know yet how am i going to produce the streaming what iv done is to embed a simple quicktime player in the client and open a movie file to produce video. I need to produce the video in the internal frame first.
My question is:
1) How am i going to produce the video in the internal frame after the button is pressed. Note that the button is not in the internal frame (obvious i think).
2)i decided to use quicktime player API cause during my research i fpund out that is the best option.I did trie JMF but i wasnt that satisfied. Do you propose any other solution. I did try to find out if i could embed Windows Media player in my frame but i didn't find any info regarding WMP and java frames.
I do have some knowledge about java but i wouldnt consider my self an advance programmer. THIS IS NOT A JOB CASE but a presentation from my UNI.
Thanks in advance for reading all this.
ps1 i am using netbeans
ps2 in the code below i havent icluded the initcompomens() method cause my code is too big for the post
My Code:
CLIENT-second Frame
import java.awt.*;*
*import java.awt.event.*;
import javax.swing.*;*
*import java.io.File;*
*import quicktime.*;
import quicktime.app.*;*
*import quicktime.app.players.*;
import quicktime.app.display.*;*
*import quicktime.io.*;
import quicktime.std.*;*
*import quicktime.std.movies.*;
import quicktime.*;*
*import javax.swing.*;
public class client extends javax.swing.JFrame {
static Movie movie;
/** Creates new form client */
public client()
initComponents();
setVisible(true);
// login.setVisible(false);
// @SuppressWarnings("unchecked")
{METHOD INITCOMPOMENTS
Too big to fit one the post }
private void buttonClickAnt(java.awt.event.MouseEvent evt) {
try {
QTSession.open();
FileDialog fd = new FileDialog (this,"Select source movie",FileDialog.LOAD);
fd.show();
if (fd.getFile() == null)
return;
// get movie from file
File f = new File (fd.getDirectory(), fd.getFile());
OpenMovieFile omFile =
OpenMovieFile.asRead (new QTFile (f));
movie = Movie.fromFile (omFile);
// get a Drawable for Movie, put in QTCanvas
MoviePlayer player = new MoviePlayer (movie);
QTCanvas canvas = new QTCanvas();
canvas.setClient (player, true);
add (canvas);
// windows-like close-to-quit
addWindowListener (new WindowAdapter() {
public void windowClosing (WindowEvent e) {
QTSession.close();
System.exit(0);
} catch (Exception e) {
e.printStackTrace();
try {
movie.start();
} catch (Exception e) {
e.printStackTrace();
private void trip(javax.swing.event.InternalFrameEvent evt) {
// Variables declaration - do not modify
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JInternalFrame jInternalFrame1;
private javax.swing.JMenu jMenu1;
private javax.swing.JMenu jMenu2;
private javax.swing.JMenuBar jMenuBar1;
// End of variables declaration
}Edited by: tripis on Feb 11, 2009 10:41 AM
If you feel more adventurious and have Afer Effects, you might be interested in this series of screen captures
http://vimeo.com/album/214460.
John Rich
Similar Messages
-
Hi everyone,
I am having a problem with my Mac OS X 10.7.5 mac book air , there are constant pop pups and small windows with ads blinking constantly opening up on my safari in front of everything?? it is constantly interupting me and makes me mistakingly click on it then another new windows open behind the one im using..
I am not too sure if thats a virus or trojan.. I always thought that macs didn't get virus? this looks like one to me… any experts around? please help me fix it with your instructions? really don't know what to do... thanksThose are not viruses. You have probably installed some malware:
The Safe Mac » Adware Removal Guide
Helpful Links Regarding Malware Protection
An excellent link to read is Tom Reed's Mac Malware Guide.
Also, visit The XLab FAQs and read Detecting and avoiding malware and spyware.
See these Apple articles:
Mac OS X Snow Leopard and malware detection
OS X Lion- Protect your Mac from malware
OS X Mountain Lion- Protect your Mac from malware
About file quarantine in OS X
If you require anti-virus protection Thomas Reed recommends using Dr.Web Light from the App Store. It's free, and since it's from the App Store, it won't destabilize the system. If you prefer one of the better known commercial products, then Thomas recommends using Sophos.(Thank you to Thomas Reed for these recommendations.) If you already use Sophos, then be aware of this if you are using Mavericks: OS X Mavericks- Sophos Anti-Virus on-access scanner versions 8.0 - 9.1 may cause unexpected restarts
From user Joe Bailey comes this equally useful advice:
The facts are:
1. There is no anti-malware software that can detect 100% of the malware out there.
2. There is no anti-malware that can detect anything targeting the Mac because there
is no Mac malware in the wild, and therefore, no "signatures" to detect.
3. The very best way to prevent the most attacks is for you as the user to be aware that
the most successful malware attacks rely on very sophisticated social engineering
techniques preying on human avarice, ****, and fear.
4. Internet popups saying the FBI, NSA, Microsoft, your ISP has detected malware on
your computer is intended to entice you to install their malware thinking it is a
protection against malware.
5. Some of the anti-malware products on the market are worse than the malware
from which they purport to protect you.
6. Be cautious where you go on the internet.
7. Only download anything from sites you know are safe.
8. Avoid links you receive in email, always be suspicious even if you get something
you think is from a friend, but you were not expecting.
9. If there is any question in your mind, then assume it is malware. -
hi, plz can any one help me that is there any way to locate or find the stolen ipon nano???
Other than physically looking for it, no. It does not have WiFi.
-
my on/off button does not appear to be working on my iphone 3.....is there any way around this....anyway around this?...the phone also periodically just switches off.
Likely a hardware issue... no way around that except to get it repaired or don't use it (the button).
Try restoring to solve the switching off problem. -
I cant find the end button when i receive a incomming call please help me. Is there any solution for it or is it a bug in the ios7.0.3 iam updated with ios7.0.3
Do you mean decline button before picking up the call?
-
New MacBook Pro will not download Mountain Lion. The App store simply has a dead download button. Any help?
If it's new, read. http://www.apple.com/osx/uptodate
-
hello..i have IPhone 4S i did reset to factory settings by fault and till now after a 2 hours waiting (as known it takes a 1 to 2 minutes maximum) there is nothing just a blank screen and a running waiting icon in the middle of the screen and none of home or turn off button are responsed so i do need your help plz & thanks in advance..
Try to reset it by holding the power an home buttons at the same time until you see the Apple logo, then release. If it won't reset, you'll probably have to force it into recovery mode and restore it, as explained here: http://support.apple.com/kb/ht1808.
-
1 button to do create in 2 iteraitories in one page, how can help plz
hi every one
how can i make one button in one single page do the create action for two iteraitories in that html page
“in other words.” i have two tables in one html page I want use one butten in the html page to create new row for each
thank you ;Hi,
see 1 button to do create in 2 iteraitories in one page, how can help plz
Frank -
Query help. Any work around?
Hi To all,
Help me on this query.
Table1 : seating_layout
Columns(1) : Seat_no values 50 records i.e.. 1,2,3..50
Ex. Data :
1
2
3.. upto 50, i.e total 50 records
Table : Quotas
Columns(2) : seat_no_from, seat_no_to
Ex. data :
1 5
8 13
I need a query which gives values in a DYNAMIC RECORD GROUP in FORMS6i as below
1,2,3,4,5,8,9,10,11,12,13. i.e. total 11 records.
Im using Version Oracle 8i, Forms 6i. is there any work around to get the result.
Thanks in advance.select map_name,data_entity_name
from ALL_IV_XFORM_MAP_COMPONENTS
where operator_type = 'Table';
or
/* SOURCE - TARGET */
http://www.nicholasgoodman.com/bt/blog/2005/04/01/owb-sources-and-targets-sql/
select
distinct 'TARGET',
comp.map_name,
comp.data_entity_name,
comp.operator_type
from
all_iv_xform_map_components comp,
all_iv_xform_map_parameters param
where
lower(operator_type)
in ('table', 'view', 'dimension', 'cube')
and param.map_component_id = comp.map_component_id
and param.source_parameter_id is not null
UNION
select
distinct 'SOURCE',
t1.c1,
t1.c2,
t1.c3
from
(select
comp.map_name c1,
comp.data_entity_name c2,
comp.operator_type c3,
max(param.source_parameter_id) c4
from
all_iv_xform_map_components comp,
all_iv_xform_map_parameters param
where
lower(operator_type) in
('table', 'view', 'dimension', 'cube')
and param.map_component_id = comp.map_component_id
group by
comp.map_name, comp.data_entity_name, comp.operator_type) t1
where t1.c4 is null
order by 2,1 -
I am trying to share a video scene of around 15minutes to youtube however it keep's timing itself out, I have even selected half of the scene in the hope that it will work in which it did for one part however now the rest won't share. Any suggestions as I have been trying for a couple of days now?
Run Memtest86
for starters...
Also, give all numbers on the PSU.. -
I can resived any SMS but can't open it , my I phone it's 4 G , help plz thanks, I can resived any SMS but can't open it , my I phone it's 4 G , help plz thanks
You can try closing the message app by following those instructions: http://support.apple.com/kb/ht5137
-
My volume and sleep buttons doesnt work..help plz?
my volume and sleep buttons doesnt work..help plz?
Well have you tried connected to iTunes?? If that doesn't work call your local Apple Store and make an appointment at The Genius bar and they can either fix it or replace it but it will cost you money.
-
I have a voice memo that is 8 minutes long which has been synked to iTunes and I want to email it to a friend. I cannot find a 'share' button or any way to email it. Can someone help me?
I still have the email and the order number but they are no use to me because it is more than 180 days since I ordered this from them.
The registration cade is contained in the email Apple sent you on purchasing. -
I cant put my facebook account on privacy so every time my device asking me to put account password any help plz ?? My device iphone 4s runing under ios 6.1.3
Downgrading is not supported for iOS devices.
If you're having battery issues, check out this blog post: http://www.overthought.org/blog/2014/the-ultimate-guide-to-solving-ios-battery-d rain
~Lyssa -
Hi, I'm having a problem retrieving my missed calls. When I press the recents button it goes back to home screen. But when I press mail button and any other application the button works. I have tried restore but to no avail. Please help.
I have exactly the same problem, happy a few days ago. Did you find a solution?
Maybe you are looking for
-
[MESSAGE.GENERAL] How can take the actual error text for ABAP proxy error?
Hi... I'm a ABAPer. I got to create outbound abap proxy for synchronous server proxy and described below. My problem is program can not catch the actual error message when occurred error during send data to XI. The return message is just 'MESSAGE.GEN
-
How can I import a new version of a distributed form?
I recently imported and distributed a PDF form created in Acrobat 9.0. I would like to add some ToolTips to this form, but the downloaded version. Is there a way for me to import a new version and still accept responses from those who received the or
-
I am using iPlanet Web Server 6.0 SP4 on Solaris 2.8 that is enabled for SSL and Client-auth. In order to validate the client certificate, I configured this server to use my own Plug-in by adding authTrans line in "obj.conf": <Object name=default> Au
-
Getting same index size despite different table size
Hello, this question arose from a different thread, but touches a different problem, which is why I have decided to post it as a separate thread. I have several tables of 3D points. The points roughly describe the same area but in different densities
-
I am trying to install BB Desktop for Mac, I know the min req is verson 10.5.5 I have 10.4.11, do I have to buy new Mac software? Thanks!