Overlay a label on an axwindowsmediaplayer control while in fullscreen mode?

淺唱寂寞╮ 提交于 2019-12-12 03:54:09

问题


As the title suggests, I'd like to overlay a label on an axwindowsmediaplayer control while in fullscreen mode.

Has anyone any idea how to do it?

Thanks,

Joe


回答1:


I did my by...

  1. Creating 2 forms.1 with the media player set to what ever size needed
  2. The second form with...

    formborderstyle = none
    form2.left = form1.left + form1.mediaplayer.left 
    form2.top = form1.top +  form1.mediaplayer.top 
    
  3. Lower the opacity to 70 or if you want it in code..

    form2.opacity=0.7 
    
  4. Put your text or anything in the second form .

The final effect is a cool shade like effect with text in it with media playing in the background.




回答2:


You may be able to use the windowlessVideo property. It mentions this exact use case in the documentation.

By default, an embedded Windows Media Player control renders video in its own window within the client area. When windowlessVideo is set to true, the Windows Media Player object renders video directly in the client area, so you can apply special effects or layer the video with text.



来源:https://stackoverflow.com/questions/18610979/overlay-a-label-on-an-axwindowsmediaplayer-control-while-in-fullscreen-mode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!