<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 28/04/2014 18:07, Michael Stahl
      wrote:<br>
    </div>
    <blockquote cite="mid:535E7CDE.6010500@redhat.com" type="cite">
      <pre wrap="">On 17/04/14 11:23, Fernand Vanrie wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">On The French user site i found usefull code to play video on Windows 
using the API and Basic.

The code opens a MediaWindow and play any video

The player has a undocumented method "CreatePlayerWindow" who needs 
arguments (a empty array do crash LO)

Do someone knows how to use this method and how Video can been played in 
a Dialog ?
</pre>
      </blockquote>
      <pre wrap="">
hi Fernand,

let's see...

avmedia/source/win/window.cxx:
</pre>
      <blockquote type="cite">
        <pre wrap="">bool Window::create( const uno::Sequence< uno::Any >& rArguments )
{
    IVideoWindow* pVideoWindow = const_cast< IVideoWindow* >( mrPlayer.getVideoWindow() );
    WNDCLASS* mpWndClass = lcl_getWndClass();

    if( !mnFrameWnd && pVideoWindow && mpWndClass )
    {
        awt::Rectangle  aRect;
        sal_IntPtr       nWnd;

        rArguments[ 0 ] >>= nWnd;
        rArguments[ 1 ] >>= aRect;

        mnParentWnd = static_cast<int>(nWnd);

</pre>
      </blockquote>
      <pre wrap="">
so on Windows, parameters are a HWND of the parent and a rectangle...
probably the parameters are undocumented for a reason, very
system-dependent and subject to change without notice.  also i have no
idea how you can get a window's HWND from BASIC code.</pre>
    </blockquote>
    <br>
    Michael thakns for the hint<br>
    <br>
    on the ooForum i found this code:<br>
    <br>
    <span style="color: rgb(0, 102, 0); font-family: Courier, 'Courier
      New', sans-serif; font-size: 11px; font-style: normal;
      font-variant: normal; font-weight: normal; letter-spacing: normal;
      line-height: normal; orphans: auto; text-align: start;
      text-indent: 0px; text-transform: none; white-space: normal;
      widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
      background-color: rgb(250, 250, 250); display: inline !important;
      float: none;"></span><br style="color: rgb(0, 102, 0);
      font-family: Courier, 'Courier New', sans-serif; font-size: 11px;
      font-style: normal; font-variant: normal; font-weight: normal;
      letter-spacing: normal; line-height: normal; orphans: auto;
      text-align: start; text-indent: 0px; text-transform: none;
      white-space: normal; widows: auto; word-spacing: 0px;
      -webkit-text-stroke-width: 0px;">
    <span style="color: rgb(0, 102, 0); font-family: Courier, 'Courier
      New', sans-serif; font-size: 11px; font-style: normal;
      font-variant: normal; font-weight: normal; letter-spacing: normal;
      line-height: normal; orphans: auto; text-align: start;
      text-indent: 0px; text-transform: none; white-space: normal;
      widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
      background-color: rgb(250, 250, 250); display: inline !important;
      float: none;">Dim arg(0) As Object<span
        class="Apple-converted-space"> </span></span><br style="color:
      rgb(0, 102, 0); font-family: Courier, 'Courier New', sans-serif;
      font-size: 11px; font-style: normal; font-variant: normal;
      font-weight: normal; letter-spacing: normal; line-height: normal;
      orphans: auto; text-align: start; text-indent: 0px;
      text-transform: none; white-space: normal; widows: auto;
      word-spacing: 0px; -webkit-text-stroke-width: 0px;">
    <span style="color: rgb(0, 102, 0); font-family: Courier, 'Courier
      New', sans-serif; font-size: 11px; font-style: normal;
      font-variant: normal; font-weight: normal; letter-spacing: normal;
      line-height: normal; orphans: auto; text-align: start;
      text-indent: 0px; text-transform: none; white-space: normal;
      widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
      background-color: rgb(250, 250, 250); display: inline !important;
      float: none;">Dim oWindow As Object<span
        class="Apple-converted-space"> </span></span><br style="color:
      rgb(0, 102, 0); font-family: Courier, 'Courier New', sans-serif;
      font-size: 11px; font-style: normal; font-variant: normal;
      font-weight: normal; letter-spacing: normal; line-height: normal;
      orphans: auto; text-align: start; text-indent: 0px;
      text-transform: none; white-space: normal; widows: auto;
      word-spacing: 0px; -webkit-text-stroke-width: 0px;">
    <span style="color: rgb(0, 102, 0); font-family: Courier, 'Courier
      New', sans-serif; font-size: 11px; font-style: normal;
      font-variant: normal; font-weight: normal; letter-spacing: normal;
      line-height: normal; orphans: auto; text-align: start;
      text-indent: 0px; text-transform: none; white-space: normal;
      widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
      background-color: rgb(250, 250, 250); display: inline !important;
      float: none;">    ...<span class="Apple-converted-space"> </span></span><br
      style="color: rgb(0, 102, 0); font-family: Courier, 'Courier New',
      sans-serif; font-size: 11px; font-style: normal; font-variant:
      normal; font-weight: normal; letter-spacing: normal; line-height:
      normal; orphans: auto; text-align: start; text-indent: 0px;
      text-transform: none; white-space: normal; widows: auto;
      word-spacing: 0px; -webkit-text-stroke-width: 0px;">
    <span style="color: rgb(0, 102, 0); font-family: Courier, 'Courier
      New', sans-serif; font-size: 11px; font-style: normal;
      font-variant: normal; font-weight: normal; letter-spacing: normal;
      line-height: normal; orphans: auto; text-align: start;
      text-indent: 0px; text-transform: none; white-space: normal;
      widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
      background-color: rgb(250, 250, 250); display: inline !important;
      float: none;">   moSM =
      CreateObject("com.sun.star.ServiceManager")<span
        class="Apple-converted-space"> </span></span><br style="color:
      rgb(0, 102, 0); font-family: Courier, 'Courier New', sans-serif;
      font-size: 11px; font-style: normal; font-variant: normal;
      font-weight: normal; letter-spacing: normal; line-height: normal;
      orphans: auto; text-align: start; text-indent: 0px;
      text-transform: none; white-space: normal; widows: auto;
      word-spacing: 0px; -webkit-text-stroke-width: 0px;">
    <span style="color: rgb(0, 102, 0); font-family: Courier, 'Courier
      New', sans-serif; font-size: 11px; font-style: normal;
      font-variant: normal; font-weight: normal; letter-spacing: normal;
      line-height: normal; orphans: auto; text-align: start;
      text-indent: 0px; text-transform: none; white-space: normal;
      widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
      background-color: rgb(250, 250, 250); display: inline !important;
      float: none;">   <span class="Apple-converted-space"></span></span><br
      style="color: rgb(0, 102, 0); font-family: Courier, 'Courier New',
      sans-serif; font-size: 11px; font-style: normal; font-variant:
      normal; font-weight: normal; letter-spacing: normal; line-height:
      normal; orphans: auto; text-align: start; text-indent: 0px;
      text-transform: none; white-space: normal; widows: auto;
      word-spacing: 0px; -webkit-text-stroke-width: 0px;">
    <span style="color: rgb(0, 102, 0); font-family: Courier, 'Courier
      New', sans-serif; font-size: 11px; font-style: normal;
      font-variant: normal; font-weight: normal; letter-spacing: normal;
      line-height: normal; orphans: auto; text-align: start;
      text-indent: 0px; text-transform: none; white-space: normal;
      widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
      background-color: rgb(250, 250, 250); display: inline !important;
      float: none;">   moDesk =
      moSM2.CreateInstance("com.sun.star.frame.Desktop")<span
        class="Apple-converted-space"> </span></span><br style="color:
      rgb(0, 102, 0); font-family: Courier, 'Courier New', sans-serif;
      font-size: 11px; font-style: normal; font-variant: normal;
      font-weight: normal; letter-spacing: normal; line-height: normal;
      orphans: auto; text-align: start; text-indent: 0px;
      text-transform: none; white-space: normal; widows: auto;
      word-spacing: 0px; -webkit-text-stroke-width: 0px;">
    <span style="color: rgb(0, 102, 0); font-family: Courier, 'Courier
      New', sans-serif; font-size: 11px; font-style: normal;
      font-variant: normal; font-weight: normal; letter-spacing: normal;
      line-height: normal; orphans: auto; text-align: start;
      text-indent: 0px; text-transform: none; white-space: normal;
      widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
      background-color: rgb(250, 250, 250); display: inline !important;
      float: none;">  oWindow = moDesk.ActiveFrame.GetContainerWindow()<span
        class="Apple-converted-space"> </span></span><br style="color:
      rgb(0, 102, 0); font-family: Courier, 'Courier New', sans-serif;
      font-size: 11px; font-style: normal; font-variant: normal;
      font-weight: normal; letter-spacing: normal; line-height: normal;
      orphans: auto; text-align: start; text-indent: 0px;
      text-transform: none; white-space: normal; widows: auto;
      word-spacing: 0px; -webkit-text-stroke-width: 0px;">
    <span style="color: rgb(0, 102, 0); font-family: Courier, 'Courier
      New', sans-serif; font-size: 11px; font-style: normal;
      font-variant: normal; font-weight: normal; letter-spacing: normal;
      line-height: normal; orphans: auto; text-align: start;
      text-indent: 0px; text-transform: none; white-space: normal;
      widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
      background-color: rgb(250, 250, 250); display: inline !important;
      float: none;">    Dim tableau()<span class="Apple-converted-space"> </span></span><br
      style="color: rgb(0, 102, 0); font-family: Courier, 'Courier New',
      sans-serif; font-size: 11px; font-style: normal; font-variant:
      normal; font-weight: normal; letter-spacing: normal; line-height:
      normal; orphans: auto; text-align: start; text-indent: 0px;
      text-transform: none; white-space: normal; widows: auto;
      word-spacing: 0px; -webkit-text-stroke-width: 0px;">
    <span style="color: rgb(0, 102, 0); font-family: Courier, 'Courier
      New', sans-serif; font-size: 11px; font-style: normal;
      font-variant: normal; font-weight: normal; letter-spacing: normal;
      line-height: normal; orphans: auto; text-align: start;
      text-indent: 0px; text-transform: none; white-space: normal;
      widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
      background-color: rgb(250, 250, 250); display: inline !important;
      float: none;">    tableau = Array()<span
        class="Apple-converted-space"> </span></span><br style="color:
      rgb(0, 102, 0); font-family: Courier, 'Courier New', sans-serif;
      font-size: 11px; font-style: normal; font-variant: normal;
      font-weight: normal; letter-spacing: normal; line-height: normal;
      orphans: auto; text-align: start; text-indent: 0px;
      text-transform: none; white-space: normal; widows: auto;
      word-spacing: 0px; -webkit-text-stroke-width: 0px;">
    <span style="color: rgb(0, 102, 0); font-family: Courier, 'Courier
      New', sans-serif; font-size: 11px; font-style: normal;
      font-variant: normal; font-weight: normal; letter-spacing: normal;
      line-height: normal; orphans: auto; text-align: start;
      text-indent: 0px; text-transform: none; white-space: normal;
      widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
      background-color: rgb(250, 250, 250); display: inline !important;
      float: none;">    ' the 1st param is an empty array, the 2nd is an
      integer = 1 (may be OS dependant ?)<span
        class="Apple-converted-space"> </span></span><br style="color:
      rgb(0, 102, 0); font-family: Courier, 'Courier New', sans-serif;
      font-size: 11px; font-style: normal; font-variant: normal;
      font-weight: normal; letter-spacing: normal; line-height: normal;
      orphans: auto; text-align: start; text-indent: 0px;
      text-transform: none; white-space: normal; widows: auto;
      word-spacing: 0px; -webkit-text-stroke-width: 0px;">
    <span style="color: rgb(0, 102, 0); font-family: Courier, 'Courier
      New', sans-serif; font-size: 11px; font-style: normal;
      font-variant: normal; font-weight: normal; letter-spacing: normal;
      line-height: normal; orphans: auto; text-align: start;
      text-indent: 0px; text-transform: none; white-space: normal;
      widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
      background-color: rgb(250, 250, 250); display: inline !important;
      float: none;">    mHwndOOo = oWindow.getWindowHandle(tableau, 1)</span><br>
    <br>
    but how to make this work in a dialog ?<br>
    <br>
    Greetz<br>
    <br>
    Fernand<br style="color: rgb(0, 102, 0); font-family: Courier,
      'Courier New', sans-serif; font-size: 11px; font-style: normal;
      font-variant: normal; font-weight: normal; letter-spacing: normal;
      line-height: normal; orphans: auto; text-align: start;
      text-indent: 0px; text-transform: none; white-space: normal;
      widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">
    <span style="color: rgb(0, 102, 0); font-family: Courier, 'Courier
      New', sans-serif; font-size: 11px; font-style: normal;
      font-variant: normal; font-weight: normal; letter-spacing: normal;
      line-height: normal; orphans: auto; text-align: start;
      text-indent: 0px; text-transform: none; white-space: normal;
      widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
      background-color: rgb(250, 250, 250); display: inline !important;
      float: none;">   </span><br style="color: rgb(0, 102, 0);
      font-family: Courier, 'Courier New', sans-serif; font-size: 11px;
      font-style: normal; font-variant: normal; font-weight: normal;
      letter-spacing: normal; line-height: normal; orphans: auto;
      text-align: start; text-indent: 0px; text-transform: none;
      white-space: normal; widows: auto; word-spacing: 0px;
      -webkit-text-stroke-width: 0px;">
    <br>
    <blockquote cite="mid:535E7CDE.6010500@redhat.com" type="cite">
      <pre wrap="">

_______________________________________________
LibreOffice mailing list
<a class="moz-txt-link-abbreviated" href="mailto:LibreOffice@lists.freedesktop.org">LibreOffice@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/libreoffice">http://lists.freedesktop.org/mailman/listinfo/libreoffice</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>