Handling events from native objects in Java code - Code from Sachin Agrawal

Hi All,
I�ve been studing this example in http://www.ibm.com/developerworks/java/library/j-jniobs/ , so I find it so interesting to be used on programs, but I'm just a starter programmer when we talk about JNI.
I hope that some good soul will tell me how I use it in java.
Let me explain better.
In this example, a main.exe it's the reponsible to call the entire program, java and C. I want to use this code, but, In java. Or better, I wanna know what I have to change, to call it from my Java code...
for example, I've tryed this:
package events;
import javax.swing.JFrame;
public class MouseDownListener extends JFrame implements IJMouseDownListener {
     EventSourceProxy _proxy;
     IJMouseDownListener _listener;
     public MouseDownListener(int handleEventSource) {
          _proxy = EventSourceProxy.get(handleEventSource);
          if (null == _proxy) {
               return;
          _listener = new IJMouseDownListener() {
               public void onMouseDown(int hPos, int vPos) {
                    System.out.println("In MouseDownListener.onMouseDown");
                    System.out.println("     X = " + String.valueOf(hPos));
                    System.out.println("     Y = " + String.valueOf(vPos));
          _proxy.addMouseDownListener(_listener);
     public void release() {
          _proxy.removeMouseDownListener(_listener);
          _listener = null;
          _proxy = null;
         public void onMouseDown(int x, int y){
        System.out.println(x + "-" +y );
     public static void main(String[] argv) {
          MouseDownListener listener = new MouseDownListener(0);
                listener.setVisible(true);
}but doesn�t work.
Thanks for your help!

Jschell Hello,
I really think that I was not very clear in my question.
Sorry about my very bad English.
In the example linked, there is a file main.cpp that starts the program:
// Defines the entry point
#include "EventSource.h"
#include "MouseDownListener.h"
#include "Jvm.h"
#include <process.h>
#include <windows.h>
void __cdecl ThreadMain(void * pSource)
     ((CEventSource *)pSource)->fireMouseDownEvent(50, 100);
     CJvm::DetachThread();
int main(int argc, char* argv[])
     CEventSource eventSource;
     CMouseDownListener listener;
     eventSource.addMouseDownListener(&listener);
     CJvm::CreateJVM(argc-1, &argv[1]);
     jobject jobj = CJvm::CreateJavaObject("events/MouseDownListener", (int)(IEventSource *)&eventSource);
     _beginthread(ThreadMain, 0, &eventSource);
     Sleep(2000);
     CJvm::ReleaseJObject(jobj);
     CJvm::DestroyJVM();
     return 0;
}And the command line to execute all the thing is
main.exe "-Djava.class.path=.\\java\\bin"
"-Djava.library.path=.\\cpp\\listener\\Debug"and the result in a dos prompt is:
In CMouseDownListener::onMouseDown
X = 50
Y = 100
In MouseDownListener.onMouseDown
X = 50
Y = 100
According to the example, this code main.cpp, calls the Java classes too:
EventSourceProxy.java, IJMouseDownListener.java, MouseDownListener.java.
But, I want to modify it so that I can start my program directly from within Java in a way that I start the program with something like
"Main java," plus the required parameters, and can thus manipulate the results obtained through the java.
In short, I wanted to translate the main.cpp for Java, so I have a main class in Java that start the program, call the listener.dll through JNI, take the position of the mouse, and return to my program in Java.
If you or someone else can help me,'ll be very grateful.
Tkd,
Dino

Similar Messages

  • How to use Oracle objects in java code

    Hi all!
    I'm reading an xls and i need to fill me oracle objects with java code:
    OBJECT_NAME OBJECT_TYPE
    LETTURA_OBJ TYPE
    LETTURA_OBJ TYPE BODY
    In the past weeks i've been using both java code into oracle and oracle objects, but new i need to write those objects with data i read with java, anybody can help me?
    I know that the easiest work around would be to put the data i read from the excel file into a table and then fill the oracle objects, but now i want to learn how to write directly those objects with a command like the following one:
    a sample of the code i'm tryng to write:
    CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED REPORT."Manage_Excel_ASMBS" AS
    import java.io.*;
    import java.io.IOException;
    import jxl.*;
    public cass ....
    #sql{  variabili_globali.var_ER_F3.Tipo_Lettura := 5}
    thanks,
    Massimo
    Edited by: LinoPisto on 16-mag-2011 16.38

    mmmh i'm not understanding so much....
    well... as i told before i'm working in oracle database environment and i'm developing a java procedure.
    now, i have this object
    CREATE OR REPLACE
    TYPE REPORT.FATTURA_OBJ AS OBJECT (
    POD VARCHAR2(1000),
    ID_FATTURA NUMBER,
    ID_FILE NUMBER,
    COERENZA_EA_F VARCHAR2(1000),
    COERENZA_ER_F VARCHAR2(1000),
    COERENZA_EA_M VARCHAR2(1000),
    COERENZA_EF_M VARCHAR2(1000),
    ANOMALIA VARCHAR2(1000),
    MOTIVO_INVALIDAZIONE VARCHAR2(1000),
    MATRICOLA_CONTATORE VARCHAR2(1000),
    POTENZA_DISPONIBILE VARCHAR2(1000),
    MEMBER PROCEDURE pulisci
    /and i need to work with it inside this procedure:
    CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED REPORT."Manage_Excel_ASMBS" AS
    import java.io.*;
    import java.io.IOException;
    import java.io.StringWriter;
    public class Manage_Excel_ASMBS
    public static void read_Excel(String inputFile,int var_Id_Caricamento, int var_Id_Distributore, String var_Distributore) throws SQLException, IOException
              **here i need to put what i'm reading inside the excel file into oracle objects**
    /can you please give me a sample ?
    thanks

  • How to Handle events from audioplayer by ADF ObjectMedia Component

    Hi,
    In My application Having a ADF ObjectMedia Component for the audio play,
    My requirement is to handle the events from the Player,i.e Need to get an
    event when the user pause the player,can i get the event in backing bean.or else please help me in any other way to get the requirement asap.
    Thanking you....

    Hi,
    assume the media player most likely is a browser plugin. Question: Does the media plugin raise events ?
    If the media player has a JavaScript API that allows you to call a JavaScript function then you found a gate open to publish the event to the JSF application
    So as a todo for you: Check with the media player vendor if there exist a JavAScript API or any other sort of eventing.
    Frank

  • How to send data to bam data object through java code

    how to send data to bam data object through java code

    I've made a suggestion in other thread: https://forums.oracle.com/thread/2560276
    You can invoke BAM Webservices (Using Oracle BAM Web Services) or use JMS integration using Enterprise Message Sources (http://docs.oracle.com/cd/E17904_01/integration.1111/e10224/bam_ent_msg_sources.htm)
    Regards
    Luis Fernando Heckler

  • How to handle event from subVI in the main VI?

    Hello,
    I'm doing some measurement. During the measurement I want the user to see some activity dialog - that's easy to do. Before the measurement starts I dynamically run VI (EX_Progress.vi) that shows some activity and then I do the measurement (in my example simulated by random number generation) . After the measurement is done (or error occurs) I can dynamically abort the activity indicator. But on the other hand I want to give to the user chance to abort the measurement manually via the activity dialog by STOP button. There are some ways how to do it via global variable and check every iteration in the main VI it's state but isn't there some better way? Would be nice to run event in the main VI when the user pushes the STOP button in the Progress VI. Is it possible to achieve this using register events? I tried but don't really now how I'm not familiar with this technique.
    Thanks in advance
    Message Edited by ceties on 11-26-2007 01:34 PM
    LV 2011, Win7
    Attachments:
    Ex.zip ‏374 KB

    OK, here's an example using User Events. It doesn't directly have the main VI listen for the Button press event in the subVI. Instead, it has the main VI listen for a custom User Event that the subVI fires every time there's a button press. You could theoretically directly listen to the button press directly from the Main VI, but you would have to somehow get that control's reference to the main VI. That would require storing a copy of it in a global or some such method. This method I will show here is very common and is definitely worth learning.
    For more info on User Events, refer to the LabVIEW help. You can learn more by clicking any of the User Event VIs and selecting Help from the shortcut menu.
    (I didn't set the subVIs front panel to open automatically, so you'll have to do that yourself to see anything from this demo...)
    Message Edited by Jarrod S. on 11-26-2007 02:51 PM
    Jarrod S.
    National Instruments
    Attachments:
    Example.zip ‏25 KB

  • Handling event from background ?

    I like to listen and handle KeyEvent which is occured
    during my application is in background or deiconized.
    Is it possible ? How can I do that?
    Please...give me some advice !

    KeyEvents will only be processed by your app when it's in the foreground. If you need to capture keyEvents everywhere, you would need to use JNI and write c/c++ code implementing a KeyHook

  • Parent frame handling events from a child frame

    Hello, I'm making an app where i have a frame ("A" frame where A is a JFrame extended class) with a Button, nothing more nothing less, and, inside the mouseclick event I create an instance of another frame ("B" frame, created just by the common sentence B screenB = new B(); where B is a JFrame extended class) that it has, exactly like the parent, a Button but this has a different behavior, when i click the button of the "B" frame (Child) it's supposedly have to change the text of the button in "A" frame (Parent). In other words, an event in a child frame have to make changes in the parent frame, or the parent have to listen to events of the child to make any changes at the moment it happened, or whatever, what you understand the best for this.
    And another thing, in some apps you have a screen to fill some fields, and when you click a button or something, sometimes it appears another screen, let's say it has more fields, but that screen is now on the top of the screens and unless you close it or click a Ok button for say something, it denies you to do anything on the parent screen or another screen, like that are disabled or something. This is a property included in Frames, or it has to be imaginated and coded in java?
    Hope you can help me.

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class ListeningToChildren implements ActionListener {
        JLabel label;
        JFrame child;
        public void actionPerformed(ActionEvent e) {
            if(child == null)
                launchChild();
            else
                child.toFront();
        private void launchParent() {
            JButton button = new JButton("launch child");
            button.addActionListener(this);
            JPanel panel = new JPanel();
            panel.add(button);
            label = new JLabel("count = 0");
            label.setHorizontalAlignment(JLabel.CENTER);
            JFrame f = getFrame("Parent", new Point(200,200));
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(panel, "First");
            f.getContentPane().add(label);
            f.setVisible(true);
        private void launchChild() {
            JButton toParent = new JButton("talk to parent");
            toParent.addActionListener(listener);
            JButton openDialog = new JButton("open dialog");
            openDialog.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    String s = "<html><font color=blue size=8>" +
                               "Hello World</font></html>";
                    JLabel msg = new JLabel(s, JLabel.CENTER);
                    JOptionPane.showMessageDialog(child, msg, "modal dialog",
                                                  JOptionPane.PLAIN_MESSAGE);
            JPanel north = new JPanel();
            north.add(toParent);
            JPanel south = new JPanel();
            south.add(openDialog);
            child = getFrame("Child", new Point(450,200));
            child.addWindowListener(disposer);
            child.getContentPane().add(north, "First");
            child.getContentPane().add(south, "Last");
            child.setVisible(true);
        private JFrame getFrame(String title, Point loc) {
            JFrame f = new JFrame(title);
            f.setSize(200,150);
            f.setLocation(loc);
            return f;
        private ActionListener listener = new ActionListener() {
            int count = 0;
            public void actionPerformed(ActionEvent e) {
                label.setText("count = " + ++count);
        private WindowListener disposer = new WindowAdapter() {
            public void windowClosing(WindowEvent e) {
                child.dispose();
                child = null;
        public static void main(String[] args) {
            new ListeningToChildren().launchParent();
    }

  • Calling C++ Objects within Java code

    Hi guys,
    I am currently facing the problem, that I have a huge C++ library and I would like to make use of it.
    My problem is, how to invoke C++ Objects/Methods within my
    java application ?
    I would be most grateful if someone could help me.
    Thanks in advance,
    Hannes

    thanks for this suggestion, but there is indeed a way to do so.
    i.e.
    http://www.noodleglue.org/noodleglue/noodleglue.html
    I was actually wondering if someone has experience with some of
    those wrappers and could recommend one ?
    Thanks,
    Hannes

  • Events from C# Control ? Urgent !!

    Hi all,
        Is there any way to handle events from a C# customcontrol in ABAP?
        When I used ActiveX controls, it was easy - just check by EventID in DISPATCH, and RAISE EVENT that would then be handled...
        But now, with C# controls, events are "delegate" functions, and I just can't figure out how to make ABAP subscribe to this tricky kind of event...
        Please, help!!!
    Thanks,
    Arnaldo.

    This article will explain how to declare and use the C# events in your application as Event Control. You can design your event control in couple of mints, making your event as control will be easy for GUI developers to implement events in client side.
    Here are the steps:
    Create one Windows Application Project
    Add “Component Class” using "Add New Item". This is going to be your Event Control.
    Declare your delegate in your Event Control under your namespace
    Now declare your event inside your Event Control class.
    Also add the FireTheEvent method to fire the event.
    Build the project.
    Go to Form, then ToolBox, add the Event Control using “Add/Remove Items” menu by right clicking on the tool box.
    Drag and drop the new control. Using the property window of the control you can easily implement the Event method in your application.
    Call The FireTheEvent method in your button click after adding new button to your form.
    Run the application and click on your button, you should see your Event firing.
    Here's a list of all the events for the DataGrid control:
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemWebUIWebControlsDataGridEventsTopic.asp.
    After referring to the DataGrid Event Handler (http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemwebuiwebcontrolsdatagriditemeventhandlerclasstopic.asp) information, I think you'll want your code to look something like this:
    <%@ Page Language="C#" AutoEventWireup="True" %>
    <%@ Import Namespace="System.Data" %>
    <script language="C#" runat="server">
    void Page_Load(Object sender, EventArgs e)
    // Set things up...
    void Item_Data_Bound(Object sender, DataGridItemEventArgs e)
    // Your event code
    </script>

  • Event for ABAP Objects

    Dear All,
    Would you mind tell me the concept of the event in the ABAP objects.
    Regards,
    Luke

    hI
    Triggering and Handling Events
    In ABAP Objects, triggering and handling an event means that certain methods act as triggers and trigger events, to which other methods - the handlers - react. This means that the handler methods are executed when the event occurs.
    This section contains explains how to work with events in ABAP Objects.  For precise details of the relevant ABAP statements, refer to the corresponding keyword documentation in the ABAP Editor.
    Triggering Events
    To trigger an event, a class must
    ·        Declare the event in its declaration part
    ·        Trigger the event in one of its methods
    Declaring Events
    You declare events in the declaration part of a class or in an interface. To declare instance events, use the following statement:
    EVENTS ) TYPE type ..
    To declare static events, use the following statement:
    CLASS-EVENTS ... ...
    It links a list of handler methods with corresponding trigger methods.  There are four different types of event.
    It can be
    ·        An instance event declared in a class
    ·        An instance event declared in an interface
    ·        A static event declared in a class
    ·        A static event declared in an interface
    The syntax and effect of the SET HANDLER depends on which of the four cases listed above applies. 
    For an instance event, you must use the FOR addition to specify the instance for which you want to register the handler.  You can either specify a single instance as the trigger, using a reference variable ...
    The registration applies automatically to the whole class, or to all of the classes that implement the interface containing the static event.  In the case of interfaces, the registration also applies to classes that are not loaded until after the handler has been registered.
    Timing of Event Handling
    After the RAISE EVENT statement, all registered handler methods are executed before the next statement is processed (synchronous event handling).  If a handler method itself triggers events, its handler methods are executed before the original handler method continues. To avoid the possibility of endless recursion, events may currently only be nested 64 deep.
    Handler methods are executed in the order in which they were registered.  Since event handlers are registered dynamically, you should not assume that they will be processed in a particular order. Instead, you should program as though all event handlers will be executed simultaneously.
    http://help.sap.com/saphelp_erp2004/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm
    http://help.sap.com/saphelp_erp2004/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm
    http://help.sap.com/saphelp_erp2004/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm
    http://help.sap.com/saphelp_erp2004/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm

  • Calling native Objective C code from Java Script

    Hi,
    I want to call native objective C code from Java script.
    I know one way by using : webView:shouldStartLoadWithRequest:navigationType
    Is there another way of doing same?
    Thanks,
    Ganesh Pisal
    Vavni Inc

    Are any of those threads calling java code? If yes then are you calling the Attach method?

  • Ttrigger Event Sub-Process from Java code.

    Hi All,
    Is there any way to trigger Event Sub-Process from Java code.
    My requirement is to trigger an Event SubProcess when a Approver clicks on REJECT button in HUMAN TASK.
    One way of achieving this is by placing a gateway after the human task and by validating the human task outcome and there by triggering a call to Event SubProcess.
    But we dont want to put a gateway after the human task. But instead we would like to trigger the Event SubProcess from the ADF task forms itself. ie, by calling a JavaCode.
    Please give me some pointers on achieving this task.
    Thanks
    Parker.

    Hi  jtahlborn, mohan
    yes the process is created from my java code. 
    in my code iam creating a process like below and if it is running for a long i need to kill it from java.
    For that " Runtime.getRuntime().exec("taskkill /F /PID " +  7408); " is working fine.
    7408 is my process id in taskmgr created from java and iam manually passing the PID it to kill it.
    But i need to get the PID from java code.
    Thanks for your suggestions.
    Sample Code:
    public static void main(String args[])
            try {
              Process process = Runtime.getRuntime().exec(new String[]{"cmd.exe","/c","start"});        
              Field f = process.getClass().getDeclaredField( "handle");
              f.setAccessible( true);         
              long procHandle = f.getLong( process);
              System.out.println( "prochandle: " + procHandle );
              //Runtime.getRuntime().exec("taskkill /F /PID " +  procHandle);
            } catch( Exception e) {
              e.printStackTrace();

  • Can u access Oracle9i Reports objects from Java Code?

    Hi,
    How can you access Oracle9i Reports (Rel 2) objects like Body, DataSource, Groups etc from Java Code?
    What are the available APIs?
    I went thru the APIs at http://otn.oracle.com/products/reports/htdocs/getstart/docs/Javadocs/oracle/reports/plugin/definition/package-summary.html
    However various constructors stated in these APIs are using classes from "oracle.reports.definition" package which are difficult for me to locate.
    For eg. Report constructor is using oracle.reports.definition.RWReport and there is no API documentation available for RWReport class.
    Please suggest me the site for the above APIs or the method to get a reference to "Report" instance.
    Thanks
    Rakesh.

    Thanks Tugdual for your quick reply.
    Thats exactly what I am trying to do. I want to develop a utility which can have a subset of Report Developer's functionality.
    Currently using Reports Developer & Report Wizard, I can create a report by providing SQL statement and few parameters (like Report Style, Calculated Fields, Template file etc). I want to put all these parameters in a XML file and run my java utility (based on the APIs which I am looking for) which will use these XML parameter file and generate a '.rdf' file.
    Also, could you please suggest me the site for oracle.reports.definition package API or the way to get a reference to oracle.reports.plugin.definition.Report instance.
    Thanks,
    Rakesh

  • How can i return object from oracle in my java code using pl/sql procedure?

    How can i return object from oracle in my java code using pl/sql procedure?
    And How can i returned varios rows fron a pl/sql store procedure
    please send me a example....
    Thank you
    null

    yes, i do
    But i can't run this examples...
    my problem is that i want recive a object from a PL/SQL
    //procedure callObject(miObj out MyObject)
    in my java code
    public static EmployeeObj callObject(Connection lv_con,
    String pv_idEmp)
    EmployeeObj ret = new EmployeeObj();
    try
    CallableStatement cstmt =
    lv_con.prepareCall("{call admin.callObject(?)}");
    cstmt.registerOutParameter(1, OracleTypes.STRUCT); // line ocurr wrong
    //registerOutParameter(int parameterIndex, int sqlType,String sql_name)
    cstmt.execute();
    ret = (EmployeeObj) cstmt.getObject(1);
    }//try
    catch (SQLException ex)
    System.out.println("error SQL");
    System.out.println ("\n*** SQLException caught ***\n");
    while (ex != null)
    System.out.println ("SQLState: " + ex.getSQLState ());
    System.out.println ("Message: " + ex.getMessage ());
    System.out.println ("Vendor: " + ex.getErrorCode ());
    ex = ex.getNextException ();
    System.out.println ("");
    catch (java.lang.Exception ex)
    System.out.println("error Lenguaje");
    return ret;
    Do you have any idea?

  • Event Bubbling Custom Object not inheriting from control

    One of the new things flash flex and xaml have are ways which
    the event easily bubbles up to a parent that knows how to handle
    the event. Similar to exceptions travel up until someone catches
    it.
    My goal is to use the frameworks event system on custom
    objects. My custom objects are:
    ApplicationConfiguration
    through composition contains:
    SecurityCollection which contains many or no SecurityElements
    and
    FileSystemCollection.cs which contains many or no
    FileSystemElement objects
    ect ect basically defining the following xml file with custom
    objects.
    [code]
    <ApplicationConfiguration>
    <communication>
    <hardwareinterface type="Ethernet">
    <ethernet localipaddress="192.168.1.2" localport="5555"
    remoteipaddress="192.168.1.1" remoteport="5555" />
    <serial baudrate="115200" port="COM1" />
    </hardwareinterface>
    <timing type="InternalClock" />
    </communication>
    <filesystem>
    <add id="location.scriptfiles" value="c:\\" />
    <add id="location.logfiles" value="c:\\" />
    <add id="location.configurationfiles" value="c:\\" />
    </filesystem>
    <security>
    <add id="name1" value="secret1" />
    <add id="name2" value="secret2" />
    </security>
    <logging EnableLogging="true"
    LogApplicationExceptions="true" LogInvalidMessages="true"
    CreateTranscript="true" />
    </ApplicationConfiguration>
    [/code]
    basically these custom objects abstract the xml details of
    accessing attributes, writing content out of the higher application
    layers.
    These custom objects hold the application configuration which
    contains the users options. The gui application uses these
    parameters across various windows forms, modal dialog boxes ect.
    The gui has a modal dialog that allows the user to modify these
    parameters during runtime.
    basically i manage: load, store, new, edit, delete of these
    configuration files using my custom objects.
    Where would event propagation help in custom objects like
    described above?
    ConfigurationSingleton.getInstance().ApplicationConfiguration.CommunicationElement.Hardwar eInterfaceElement.EthernetElement.RemoteIPAddress
    =
    System.Net.IPAddress.Parse(this.textBoxRemoteEthernetIpAddress.Text);
    The EthernetElement should propagate a changed event up to
    the parent ApplicationConfiguration which would persist this to the
    registry, db, file or whatever backend.
    currently this logic is maintained else where. I serialize
    the root node which compositely serializing the nested nodes and i
    check of the serialization is different from that in the backend
    … This tells me if the dom was modified. It works but i would
    like an event driven system.
    how should i implement bubbling using custom objects?
    3 implementation ideas:
    1) A simple way is to implement a singleton event manager:
    EventManager.RegisterRoutedEvent
    http://msdn2.microsoft.com/en-us/library/ms742806.aspx
    I like this idea but how can you tell which object is nested
    in who… this way the event can be stopped and discontinue
    propagation?
    2) If i use binders as discussed in Apress’s book:
    Event-Based
    Programming Taking Events to the Limit
    basically a binder connects the events between seperate
    objects together… although it would work for my app, I would
    like a more generalized approach so i can reuse the event system on
    future project.
    3) how does flash flex handle this..
    objectproxy.as?
    http://www.gamejd.com/resource/apollo_alpha1_docs/apiReference/combined/mx/utils/ObjectPro xy.html#getComplexProperty()
    >Provides a place for subclasses to override how a complex
    property that needs to be either proxied or daisy chained for event
    bubbling is managed.
    how does these systems all work....? Reflection ?
    this way i can simulate this on my own custom classes.
    Thanks!

    I have a strong sensation that the OSMF project is quite dead.
    no new submits since 2010, the contact form on the offical OSMF
    project website http://www.opensourcemediaframework.com/
    returns a PHP error.
    and many unanswered questions about OSMF in this forum.
    i think it would be wise to not use OSMF if possible, although
    I'm also stuck with it since we are utilizing HDS/PHDS
    protocols which are utilized in the framework.
    otherwise its quite a head-ache.
    I'm unable to get to a video element coming from a proxied element
    that is being produced via an HDS connection.
    and haven't found any solution that works.

Maybe you are looking for