Вверх ↑
Главный модератор
Ответов: 2961
Рейтинг: 389
#1: 2016-12-15 18:14:44 ЛС | профиль | цитата
Description
   Windows Media Player control.

Properties
  • Ctlenabled<bool> - Sets a value indicating whether the Windows Media Player control is enabled.
  • enableContextMenu<bool> - Sets a value indicating whether to enable the context menu, which appears when the right mouse button is clicked.
  • fullScreen<bool> - Sets a value indicating whether video content is played back in full-screen mode.
  • stretchToFit<bool> - Sets a value indicating whether video will stretch to fit size of the Windows Media Player control video display.
  • uiMode<string> - Sets a value indicating which controls are shown in the user interface when Windows Media Player is embedded in a webpage.
  • URL<string> - Sets the URL of the media item to operate.
  • windowlessVideo<bool> - Sets a value indicating whether the Windows Media Player control renders video in windowless mode.
    Methods
  • doClose() - Closes the current digital media file, stops playback in Windows Media Player and releases Windows Media Player resources.
  • doLaunchURL(string URL) - Sends a URL to the user's default browser to be rendered.
  • doOpenPlayer(string URL) - Opens Windows Media Player using the specified URL.
    Variables
  • Ctlenabled<bool> - Returns a value indicating whether the Windows Media Player control is enabled.
  • dvd<IWMPDVD> - Returns an IWMPDVD interface that provides properties and methods for working with DVDs.
  • enableContextMenu<bool> - Returns a value indicating whether to enable the context menu, which appears when the right mouse button is clicked.
  • fullScreen<bool> - Returns a value indicating whether video content is played back in full-screen mode.
  • newMedia<IWMPMedia> - Returns an IWMPMedia interface for a new media item by specified URL.
  • newPlaylist<IWMPPlaylist> - Returns an IWMPPlaylist interface for a new playlist.
  • stretchToFit<bool> - Returns a value indicating whether video will stretch to fit size of the Windows Media Player control video display.
  • uiMode<string> - Returns a value indicating which controls are shown in the user interface when Windows Media Player is embedded in a webpage.
  • versionInfo<string> - Returns a value that specifies the version of the Windows Media Player.
  • windowlessVideo<bool> - Returns a value indicating whether the Windows Media Player control renders video in windowless mode.
  • WMPlayer<AxWindowsMediaPlayer> - Returns the WMPlayer object.
    Parameters
  • Name<string> - Defines the name of the new playlist.
  • URL<string> - Defines the URL of the media item to operate.
    Examples
    
    #sha
    Add(EntryPoint,2953706,175,119)
    {
    Width=203
    Height=224
    AutoScroll=0
    Platform=1
    Point(doText)
    link(onCreate,16487610:doData,[(219,125)(219,113)(114,113)(114,125)])
    link(onError,10215828:doShow,[])
    }
    Add(MessageBox,10215828,224,126)
    {
    }
    Add(WMPlayer,15916831,119,70)
    {
    Width=200
    Height=200
    Dock=5
    URL="C:\HiAsm\Elements\CNET\Example\Multimedia\smooth.wmv"
    uiMode=0
    Point(versionInfo)
    AddHint(-96,-47,291,26,URL)
    }
    Add(DoData,16487610,126,119)
    {
    link(onEventData,2953706:doText,[])
    link(Data,15916831:versionInfo,[])
    }
    Notes
    Inheritance Hierarchy:
    Control

    Find more information: https://msdn.microsoft.com/en-us/library/windows/desktop/dd562388.aspx

    Element update: [svn]WMPlayer.cs[/svn]
  • карма: 7
    Дорогу осилит идущий. Install/Update HiAsm.NET
    1
    Голосовали:Konst