How to call "detect capture devices" in my program
Hi,
I'd like to develop a webcam program. Is it possible to call jmfregistry's "Detect Capture Devices" in my code? So I don't have to ask the user run jmfregistry.
Thanks,
Derek
detect capture devices is dependent of the plataform. I recommend to look into the source code of JMFRegistry and JMF.
Similar Messages
-
How detect capture device without jmf&java client pc ??
hi...
a computer install jmf & java => detect catpure device
but... no detect capture device without jmf & java clientpc...
however solved this problem?
plz...
thanks..
email : [email protected]You must hard code a dependent platform code to examine the registry or its similar in linux.
-
how do i detect DAQ device number programatticaly using Visual Basic (not using MAX)?
Several of the CWDAQ objects have Device (the device number), DeviceName, and DeviceType properties that I think will give you the information that you're looking for. For more information, look in the index of the Measurement Studio reference for Device, DeviceName, and DeviceType.
- Elton -
How to call a maintenance view from a program
Hello Abapers,
Can anybody explain with some examples. How to call a mainetenance view from a program.
Thanks
Ranjith.Use FM 'VIEW_MAINTENANCE_CALL'.
REPORT zmaintaintest.
VARIABLES / CONSTANTS
CONSTANTS:
c_action(1) TYPE c VALUE 'U', "Update
c_viewname TYPE tabname value 'ZEMP_EXAMPLE', "View Name
c_field(6) TYPE c VALUE 'EMPNO'. "Field Name
INTERNAL TABLES
DATA: itab_rangetab TYPE STANDARD TABLE OF vimsellist,
v_empno TYPE zempno,
wa_rangetab TYPE vimsellist.
SELECTION SCREEN
PARAMETERS: p_empno TYPE zempno OBLIGATORY. "Emplyee ID
AT SELECTION-SCREEN
AT SELECTION-SCREEN.
Chcking the existence of the user in EMPLOYEE table
PERFORM validate_employee.
START_OF_SELECTION
START-OF-SELECTION.
This will restrict the user view so that user can only view/change
Table data corresponding to his/her Employee ID
PERFORM define_limited_data_area.
Displaying table maintenance view for a particular employee ID
PERFORM call_view_maintenance.
*& Form validate_employee
Validate plant entered in the selection screen
FORM validate_employee.
SELECT SINGLE empno u201CEmployee ID
FROM zemp_example u201CEmployee Table
INTO v_empno
WHERE empno = p_empno.
IF sy-subrc <> 0.
MESSAGE 'Not an Valid User' TYPE 'I'.
ENDIF.
ENDFORM. "validate_employee
*& Form DEFINE_LIMITED_DATA_AREA
To restrict the user view so that user can see/change table data
corresponding to his employee ID. Here one internal table is
getting populated with field name as u201CEMPNOu201D (Key field of the table)
And value as given by user in Selection Screen and this is passed as
Parameter in function module 'VIEW_MAINTENANCE_CALL'
FORM define_limited_data_area.
CLEAR wa_rangetab.
wa_rangetab-viewfield = c_field.
wa_rangetab-operator = 'EQ'.
wa_rangetab-value = p_empno.
APPEND wa_rangetab TO itab_rangetab.
ENDFORM. "define_limited_data_area
*& Form CALL_VIEW_MAINTENANCE.
Displaying table maintenance view for a particular employee ID
FORM call_view_maintenance.
CALL FUNCTION 'VIEW_MAINTENANCE_CALL'
EXPORTING
action = c_action
view_name = c_viewname
TABLES
dba_sellist = itab_rangetab.
ENDFORM. "call_view_maintenance
Regards,
Joy. -
How to call SAP Webservice in standalone java program
Hi,
In our Java application, we want to use the SAP Webservices. I dont know much about authentication mechanism used by SAP. Can any one please help me with any sample code how to Call SAP webservice in Standalone Jave Program. I searched alot on the web regarding this, but helpless. Please help me.
Thanks,
MohanHi Mohan,
You need an account for the ES Workplace. I'm afraid this is not free, e.g. check [SAP NetWeaver, Composition Subscription|https://www.sdn.sap.com/irj/sdn/subscriptions/composition].
But I thought you wanted to play with a WSDL [you already had at hand|Sample code to access BAPI Web services from JAVA required;? -
Hi
How can i detect a capture device in jmf ?
Is there any listener for this which will raise an event when a new device is
plugged in while my application is running ?
Thank youpublic Vector deviceList;
public CaptureDeviceInfo di;
deviceList = CaptureDeviceManager.getDeviceList(new (AudioFormat.LINEAR,44100,16,2);
for(int i = 0; i<deviceList.size(); i++)
di = (CaptureDeviceInfo)deviceList.firstElement();
} -
How to release the capturing device
Dear helper
I have developed an applet for video conference. I stored it in tomcat server. The client browsed a parant window and click the button, javascript window.open() will open another child window for the applet. In the first time, the applet was working normal. While I closed the child window and clicked the button again, the child window could not init the applet. I suspected the capturing device was not been released. As I closed the parant window and re-open it and then click the button, the applet worked properly in the child window.
Would you please let me know how to relesae the device while i close the child window without close the parant window. I checked the applet code, the disposal code had be added.
Thank you for your advise in advance.Hi Indu,
Have you already thought of moving such "outsorted" devices to a special stock? Alternatively you may choose to allocate a special (user-) status(for example, BLOCKED) to the device/equipment. This also will also prevent a further usage of this device.
Kind regards,
Fritz -
hi guys,
why is my deviceList return null?
// Get the CaptureDeviceInfo for the live audio capture device
Vector deviceList = CaptureDeviceManager.getDeviceList(new
AudioFormat("linear", 44100, 16, 2));
if (deviceList.size() > 0)
di = (CaptureDeviceInfo)deviceList.firstElement();
else
// Exit if we can't find a device that does linear, 44100Hz, 16 bit,
// stereo audio.
System.exit(-1);Dear andreyvk ,
I've read your post
http://forum.java.sun.com/thread.jspa?threadID=785134&tstart=165
about how to use a single RTP session for both media reception and trasmission (I'm referring to you RTPSocketAdapter modified version), but, at the moment, I'receive a BIND error.
I think that your post is an EXCELLENT solution. I'modified AVReceive3 and AVTransmit3 in order to accept all parameters (Local IP & Port, Remote IP & Port).
Can you please give me a simple scenario so I can understand what the mistake?
I'use AVTransmit3 and AVReceive3 from different prompts and if I run these 2 classes contemporarely both in 2 different PC (172.17.32.27 and 172.17.32.30) I can transmit the media (vfw://0 for example) using AVTransmit3 but I'can't receive nothing if I run also AVReceive3 in the same PC?
What's the problem? Furthermore, If I run first AVReceive3 from a MSDOS Prompt and subsequently I run AVTransmit3 from another prompt I see a BIND error (port already in use).
How can I use your modified RTPSocketAdapter in order to send and receive a single media from the same port (e.g. 7500).
I've used this scenario PC1: IP 172.17.32.30 Local Port 5000 and PC2:IP 172.17.32.27 LocalPort 10000
So in the PC1 I run:
AVTransmit3 vfw://0 <Local IP 172.17.32.30> <5000> <Remote IP 172.17.32.27> <10000>
AVReceive3 <Local IP 172.17.32.30/5000> <Remote IP 172.17.32.27/10000>
and in PC2:
AVTransmit3 vfw://0 <Local IP 172.17.32.27> <10000> <Remote IP 172.17.32.30> <5000>
AVReceive3 <Local IP 172.17.32.27/10000> <Remote IP 172.17.32.30/5000>
I'd like to use the same port 5000 (in PC1) and 10000 (in PC2) in order to transmit and receive rtp packets. How can i do that without receive a Bind Error? How can I receive packets (and playing these media if audio &/or video) from the same port used to send stream over the network?
How can I obtain a RTP Symmetric Transmission/Reception solution?
Please give me an hint. If you can't post this is my email: [email protected] -
How to change audio capture devices sample rate
I am going to develop a online voice chat applet. Now everything works fine. But I didn't find anyway to capture audio in a lower sample rate. The default sample rate is 441000Hz. I am using MediaLocator to capture audio and pass it into Processor.
MediaLocator ml = new MediaLocator("dsound://");
DataSource ds;
DataSource clone;
try {
ds = javax.media.Manager.createDataSource(locator);
} catch (Exception e) {
return "Couldn't create DataSource"+e.getMessage();Use GSM format and do it with setting of BitRateControl. It is better than convert the sample rate of your capturing device. I suppose that you try to reduce load of network traffic with changing sample rate, right?
Best regards from Germany,
r.v. -
How to call the 2 Tcodes from single program.
Dear Friends,
I would like to call 2 tcodes form a single program based on some conditions like :
I have a program ZRR wich is madule pool report with selection screen and screen 100, 200.
If I excuted tcode ZXX then I need to call the report with selectin screen ( from there with giving some input data I will go to screen 100 ),
If I excuted tcode ZYY then I need to call the same report skiping the selection screen and need to go directly screen 200.
Pls help me on this if any bady is faced the similar problem.
Thanks,
Sridharhi,
yes you can do this..
try this
create a two screen suppose 9000 and 9001..
then right click on your program name...
create a TCODE say TONE..
in this give the screen number 9000..
now again right click on the program name
create a TCODE say Tsecond
in this give the screen number 9001...
hope this will help you..
Regards
Ritesh J -
How to call an external server from Webdynpro program?
Hi All,
i have a requirement in which i have to call an external server from Webdynpro ABAP program.
how to imphi ,
do u mean u need to call the external link from ur WD ABAP application ?
if so , u either create
1 a Link to URL ( LTU ) UI element and call the external link using that
2 if u wish to use some other fuctionality and thn wish to call the URL in ur application ,u write this piece of code in ur relevant on Action method :
data: lo_window_manager type ref to if_wd_window_manager.
data: lo_api_component type ref to if_wd_component.
data: lo_window type ref to if_wd_window.
data: ld_url type string.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
ld_url = ''. // ur external sever link here
CALL METHOD lo_window_manager->CREATE_EXTERNAL_WINDOW
EXPORTING URL = ld_url
RECEIVING WINDOW = lo_window.
lo_window->open( ).
I hope u wud be able to create URL now .
regards,
amit
Edited by: amit saini on Oct 13, 2009 11:25 AM -
How to call method excel subtotal in ABAP program
I'm trying to call excel method subtotal, but i get an error (sy-subrc <> 0). How to correctly call this method? One of the parameters is an array. I've tried to use an internal table as the array, but ABAP syntax checker shows error.
Hi Vytautas,
The best way is to start recording a Macro(Tools->Macro->Record New Macro), and then do the operations (like entering data into cells, summing up, calculations,etc...)
once you are done, display the macro and you will find all the needful information regarding what metohds are to be called and how...
Regards,
Raj -
How to call Global Abstract Class in Report Program
Hi All,
Can Anyone tell me how call global abstract class created in SE24.
Thanks,
RevanthHi Revanth,
What are you trying to do in abstract class?
Are you inherit and trying to create object?
Regards,
A Vadamalai. -
How to call BOR object- method in custom program
hi all,
I have the following details:
BOR object : INSTLN
Method: createdirect
I need to call the above method in my custom program.
I need to call it entirely. Means if it contains fn modules I dont want to call those fn modules seperately.Hi Sammy,
Phil Soady from SAP Australia provided me with this little gem a few years back. The actual documentation for this can be found somewhere in the workflow programming area, but I just looked and couldn't find it for you. Anyway, this is a sample program I built to show how to do this. In this example I call the Display method of the Sales Document BO.
INCLUDE <cntn02>.
INCLUDE <cntn03>.
FUNCTION zcallbomethod.
*"*"Local interface:
* Data declaration
DATA: vbak_ref TYPE swc_object.
* Declare and initialise container
swc_container container.
swc_create_container container.
* Create object reference to sales document
swc_create_object vbak_ref 'VBAK' '0000000009'. "Sales Document Number
* Call Display
swc_call_method vbak_ref 'Display' container.
* Error handling
IF sy-subrc NE 0.
ENDIF.
ENDFUNCTION.
Cheers
Graham Robbo -
How to call store procedure from an oci program
Hello,
I work on Oracle 8.1.7 under AIX.
I must call from an OCI C++ program a store procedure that have an result set as param out.
I'm not sure how can I call the procedure/function. I want to execute this statement and fetch the results.:
" CALL Department.get_all (:1) " is this OK?
" Call department.GetAll() into :1 "
I have seen some example from an PL/SQL block but that's not ok for me.
what i have done:
i have created an package
create or replace package department as
type cursor_type is ref cursor;
procedure get_emp( i_deptno in number, rs out cursor_type );
procedure get_all( rs out cursor_type );
function GetAll return cursor_type;
end department;
create or replace package body department as
procedure get_emp ( i_deptno in number, rs out cursor_type )
as
begin
open rs for
select empno, ename
from emp
where deptno = i_deptno;
end;
procedure get_all ( rs out cursor_type )
as
begin
open rs for
select empno, ename
from emp;
end;
function GetAll return cursor_type
as
l_cursor cursor_type;
begin
open l_cursor for select ename, empno from emp;
return l_cursor;
end;
end;Hi,
I am new to OCI facing the same problem you have mentioned, If you have found out how to solve it , can you post the answer for the same.
Thanks
Mani
Maybe you are looking for
-
Hi All, We have an issue regarding debit memo. Actually we have created a sales order for $600. But due to internal issues that company code not supposed to have any A/R. So we created a credit memo but with incorrect amount of $540. So again we trie
-
I upgraded IPAD to os6. Now Safari has lost all my bookmarks and won't let me add any new bookmarks or new folders. What is wrong? How do I fix this? IPAD was not synced to laptop.
-
3GS applications opening randomly??
The last coupla days, my new black 32GB 3GS is acting pretty buggy. I will leave it on the home screen and it goes into standby. Sometimes, when I turn it back on, it will already be on an application like Youtube or a specific email is opened, even
-
Hello everyone, I am new to Java. I have a program that should change the background color when a button is clicked. I keep getting the same error no matter what I do. The error is "cannot resolve symbol symbol: variable e String arg = e.getActionCom
-
Hi, I am running distributed deployment with mutiple PSNs,MONs & Admin Nodes are deployed.I was verifying crtical vlan access and radius server dead critera and a test case scenrios to reboot/power off the devices for sometime and trun them on back a