Emwin video play in child window.

    • Emwin video play in child window.

      Hi,

      i want to play video emf file in child window. i can not find any examples.

      GUI_MOVIE_CreateEx functions plays movie in fullscreen. but
      i want to create video within child window using WM_CreateWindowAsChild function.

      any suggestion?

      Thanks.
    • Hi,

      Which emWin version are you using? The MOVIE code prior to emWin V6.30 (before the release of the MOVIE widget) did not work with the window manager. Which means the movie frames were not clipped when drawn in a window.

      This is one reason why the MOVIE widget has been added, which through the window manager does the clipping automatically. If your version is older than V6.30 I would suggest updating and using the MOVIE widget. I hope this helps.

      Best regards,
      Florian
      Please read the forum rules before posting.

      Keep in mind, this is *not* a support forum.
      Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
      Should you be entitled to support you can contact us via our support system: segger.com/ticket/

      Or you can contact us via e-mail.
    • hi, again


      i updated my emwin to 6.34. but video still not working.

      in the sample code there is a callback. How can my other objects appear on the screen while this code is running? Doesn't this part use the complete graphics part?

      Source Code

      1. * Function description
      2. * Uses multiple buffering (if available) to avoid tearing effects.
      3. */
      4. static void _cbNotify(GUI_HMEM hMovie, int Notification, U32 CurrentFrame) {
      5. GUI_USE_PARA(hMovie);
      6. GUI_USE_PARA(CurrentFrame);
      7. switch (Notification) {
      8. case GUI_MOVIE_NOTIFICATION_PREDRAW:
      9. //
      10. // Begin multi-buffering if available.
      11. //
      12. GUI_MULTIBUF_Begin();
      13. break;
      14. case GUI_MOVIE_NOTIFICATION_POSTDRAW:
      15. case GUI_MOVIE_NOTIFICATION_PREDRAW:
      16. //
      17. // End multi-buffering.
      18. //
      19. GUI_MULTIBUF_End();
      20. break;
      21. case GUI_MOVIE_NOTIFICATION_START:
      22. break;
      23. case GUI_MOVIE_NOTIFICATION_STOP:
      24. break;
      25. }
      26. }
      Display All