+ Reply to Thread
Results 1 to 2 of 2

Help with Windows Media Player Controls

  1. #1
    Registered User
    Join Date
    07-14-2013
    Location
    portugal
    MS-Off Ver
    Excel 2010
    Posts
    48

    Help with Windows Media Player Controls

    Hello all,

    Im creating an excel file with a macro that load a video using the Windows Media Player.

    I want that the video start at one specific point Range("K5") but ends at another specific point Range ("K6").
    My problem it's to do the stop at the value that i want

    To play im using this macro:

    Sheet1.WindowsMediaPlayer1.Controls.play
    Sheet1.WindowsMediaPlayer1.Controls.currentPosition = Sheet1.Range("K5").Value 'this cell have the value in seconds for the point to start the video
    Sheet1.WindowsMediaPlayer1.uiMode = "full"
    Sheet1.WindowsMediaPlayer1.stretchToFit = True
    Sheet1.WindowsMediaPlayer1.Width = "525"
    Sheet1.WindowsMediaPlayer1.Height = "350"

    Can anyone help?


    Thanks

  2. #2
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: Help with Windows Media Player Controls

    more than likely you will find everything you need to know, that is available from the folks that made media player and excel, here:

    https://docs.microsoft.com/en-us/win...h-visual-basic

    there's an object reference link on that page too, that might be of some use to you. you can do this sort of thing with large tech companies, primarily because they are in desperation mode to sell anything and everything they can to the world to keep their profit levels afloat. here's one way they are trying to cater to anyone they can....

    youtube, which is owned by google, allows you to skip to a point in any video you watch on their site by using the hash symbol and putting a number in for an argument called t. here's an example:

    https://www.youtube.com/watch?v=G05TrN7nt6k#t=50

    and the original video, that starts at the beginning (frame 1), is:

    https://www.youtube.com/watch?v=G05TrN7nt6k

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Help - WINDOWS MÉDIA PLAYER
    By pmlv in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-14-2017, 05:00 PM
  2. [SOLVED] activex windows media player
    By zaky in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-29-2013, 02:00 AM
  3. [SOLVED] Windows Media Player
    By zaky in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-28-2013, 03:38 PM
  4. Disable windows media player autoplay
    By spursrule68 in forum Excel General
    Replies: 5
    Last Post: 07-02-2012, 11:35 AM
  5. Media Player versus Windows Media Player
    By teepee in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-15-2005, 02:05 PM
  6. [SOLVED] Media Player versus Windows Media Player
    By teepee in forum Excel General
    Replies: 1
    Last Post: 10-13-2005, 10:05 PM
  7. Media Player versus Windows Media Player
    By teepee in forum Excel General
    Replies: 1
    Last Post: 10-13-2005, 10:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1