+ Reply to Thread
Results 1 to 7 of 7

Playing an embedded video file.

  1. #1
    Registered User
    Join Date
    03-05-2008
    MS-Off Ver
    Office 2016 and 365
    Posts
    48

    Playing an embedded video file.

    Hi All,

    I've searched on options on how to embed video file into Excel and use this in a VBA userform using Windows Media Player add-on or anything else, but having issues on getting it to work.
    So, I?m have a few questions to see if it is possible, hopefully.
    I?m using Office365.
    I can import the mp4 file into excel as an object, ?Insert? menu => click on ?Object? and then select ?Create from file?. This inserts the mp4 file into excel, but don?t know how to link this object to the Windows Media Player add-in on the VBA userform.
    The Windows Media Player add-on has a URL section for the video file, and if the file was stored locally, i.e ?C:\Temp\test.mp4?, this works, but how do I point this to the embedded object/mp4 file?

    What I have noticed is the embedded mp4 file is stored in a temporary folder, ?C:\Users\joebloggs\AppData\Local\Temp\? and then in another folder such as ?{6E82E2A2-D55C-4843-AFC3-5D00C2901A29}?, but this folder is different every time the workbook is opened.
    Is it possible to find this file location in VBA and then point the Windows Media Player add-in to this location?

    Or is there any other way to embed the video file into Excel, it?s only a small video file, less than 1MB.

    Hope someone can help,
    Thanks

  2. #2
    Forum Contributor
    Join Date
    10-02-2012
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    254

    Re: Playing an embedded video file.

    The Windows Media Player add-on has a URL section for the video file, and if the file was stored locally, i.e ?C:\Temp\test.mp4?, this works, but how do I point this to the embedded object/mp4 file?
    You've pretty much answered your question yourself. You don't need to embed the video file in the workbook, as long as you put the file location in the URL section of the control settings, it should work fine.

  3. #3
    Registered User
    Join Date
    03-05-2008
    MS-Off Ver
    Office 2016 and 365
    Posts
    48

    Re: Playing an embedded video file.

    Quote Originally Posted by PrizeGotti View Post
    You've pretty much answered your question yourself. You don't need to embed the video file in the workbook, as long as you put the file location in the URL section of the control settings, it should work fine.
    Thanks for your reply, but I require the file to be embedded.

  4. #4
    Forum Contributor
    Join Date
    10-02-2012
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    254

    Re: Playing an embedded video file.

    Then I'm not quite sure what you are trying achieve, because embedding the file, and using the media player control in a userform are 2 separate things, and doesn't require one for the other to function.

  5. #5
    Registered User
    Join Date
    03-05-2008
    MS-Off Ver
    Office 2016 and 365
    Posts
    48

    Re: Playing an embedded video file.

    Ok, is there a way to embed the file into the workbook and use it in the useform, I'm not aware how to do it?

    Thanks

  6. #6
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    2,026

    Re: Playing an embedded video file.

    This will extract the embedded file Object1 called VideoPlayBack.mp4 to the folder sPath and load it into the media player.


    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    03-05-2008
    MS-Off Ver
    Office 2016 and 365
    Posts
    48

    Re: Playing an embedded video file.

    Quote Originally Posted by ByteMarks View Post
    This will extract the embedded file Object1 called VideoPlayBack.mp4 to the folder sPath and load it into the media player.


    Please Login or Register  to view this content.
    Thank you ByteMarks, this works perfectly.

+ 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. My passion is playing video games
    By Kizy8 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 06-23-2020, 12:06 AM
  2. Auto run Embedded video file on start up. help
    By Johnny247 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-30-2019, 02:04 PM
  3. How to make an inputted video always start as playing fullscreened?
    By Taz97 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-25-2018, 11:54 AM
  4. Need help playing an embedded wav file when a condition is met
    By 1nk3d in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-31-2016, 11:41 AM
  5. Playing Video using SnagIt software in Excel
    By jerryjaysr in forum Excel General
    Replies: 4
    Last Post: 01-28-2008, 12:45 PM
  6. [SOLVED] Playing a embedded wav file when excel opens
    By Waving Hello in forum Excel General
    Replies: 1
    Last Post: 04-14-2006, 03:27 PM
  7. [SOLVED] Playing a embedded wav file when excel opens
    By Waving Hello in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-13-2006, 08:15 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