Search the Legacy Support Archive (up to v2020)
  1. Read-only archive (2005–2024). Posting is closed. Need help with MediaLab or DirectRT 2027? Email service@empirisoft.com.

    All words · “exact phrase” · -leave out

    Advanced search

Controlling Movie Files

  1. #1

    Controlling Movie Files

    Is it possible for a subject to manipulate movies within MediaLab? I'd like to show the subjects several videos and have them perform a series of ratings on the videos, but I'd like for each movie to be paused and repeated at will by the subject. The only way I can think of is to create a powerpoint file to do this, but is there some other way directly within MediaLab?

  2. #2
    jarvis24 Blair Jarvis, Administrator
    Was just working on this--try opening the attached html file (see below) in a text editor and change "test.mpg" to the name of one of your videos. Put the video in a folder with the html file--and then open the html file in IE--does it play? If so, you can present this simple HTML page as a background to any item--simply modifying the the name of video clip. For the background, just specify:
    embed.htm (t.1,l.1,w.5,h.5)

    Or whatever works given the size of the video. There are other settings you can change in the html file if you want to experiment.

  3. #3
    [edited by moderator]
    I have been trying to get a video into an html page but everything I'm looking up needs a server, which we don't have because we're not trying to make a web page- just questionnaires. The video needs to be able to be stopped/started and play automatically. I tried using the embed.htm file as said in the post above and the video did not play.

  4. #4
    jarvis24 Blair Jarvis, Administrator
    Does the posted sample work if you run it unaltered? If so, what kind of video are you trying to play?

  5. #5
    No, the posted one does not work. It displays the windows media player but not a video. I am trying to play a .wmv.

  6. #6
    jarvis24 Blair Jarvis, Administrator
    Things seem to have been affected by the release of the newer version of the Windows Media Player.

    Try typing these lines (one at a time) from the Run command on the Windows Start Menu:

    regsvr32 wmpdxm.dll
    regsvr32 wmpasf.dll
    regsvr32 wmp.dll

    That registers three important files that are required in order that the new WMP handles the embedded video rather than the old WMP. Try that and see if it helps. I've attached a slightly revised embed.htm file also. It has these comments included as well as a line that prevents IE from issuing a hassling statement when trying to open the html file.

  7. #7
    jarvis24 Blair Jarvis, Administrator
    Note, here are some additional (optional) parameters that can be used when embedding a video within an HTML file via the attached sample above:
    <param name="AudioStream" value="-1">
    <param name="AutoSize" value="-1">
    <param name="AutoStart" value="1">
    <param name="AnimationAtStart" value="0">
    <param name="AllowScan" value="-1">
    <param name="AllowChangeDisplaySize" value="-1">
    <param name="AutoRewind" value="0">
    <param name="Balance" value="0">
    <param name="BaseURL" value>
    <param name="BufferingTime" value="5">
    <param name="CaptioningID" value>
    <param name="ClickToPlay" value="1">
    <param name="CursorType" value="0">
    <param name="CurrentPosition" value="-1">
    <param name="CurrentMarker" value="0">
    <param name="DefaultFrame" value>
    <param name="DisplayBackColor" value="0">
    <param name="DisplayForeColor" value="16777215">
    <param name="DisplayMode" value="0">
    <param name="DisplaySize" value="0">
    <param name="Enabled" value="-1">
    <param name="EnableContextMenu" value="-1">
    <param name="EnablePositionControls" value="-1">
    <param name="EnableFullScreenControls" value="0">
    <param name="EnableTracker" value="-1">
    <param name="Filename" value="sampleonelq.asx">
    <param name="InvokeURLs" value="-1">
    <param name="Language" value="-1">
    <param name="Mute" value="0">
    <param name="PlayCount" value="1">
    <param name="PreviewMode" value="1">
    <param name="Rate" value="1">
    <param name="SAMILang" value>
    <param name="SAMIStyle" value>
    <param name="SAMIFileName" value>
    <param name="SelectionStart" value="1">
    <param name="SelectionEnd" value="1">
    <param name="SendOpenStateChangeEvents" value="-1">
    <param name="SendWarningEvents" value="-1">
    <param name="SendErrorEvents" value="-1">
    <param name="SendKeyboardEvents" value="0">
    <param name="SendMouseClickEvents" value="0">
    <param name="SendMouseMoveEvents" value="0">
    <param name="SendPlayStateChangeEvents" value="-1">
    <param name="ShowCaptioning" value="0">
    <param name="ShowControls" value="1">
    <param name="ShowAudioControls" value="0">
    <param name="ShowDisplay" value="0">
    <param name="ShowGotoBar" value="0">
    <param name="ShowPositionControls" value="1">
    <param name="ShowStatusBar" value="0">
    <param name="ShowTracker" value="1">
    <param name="TransparentAtStart" value="0">
    <param name="VideoBorderWidth" value="0">
    <param name="VideoBorderColor" value="0">
    <param name="VideoBorder3D" value="0">
    <param name="Volume" value="-230">
    <param name="WindowlessVideo" value="0">

  8. #8
    It still is not working (I've tried on multiple computers). I saved the html in notepad as an .htm file, replaced the "test.wmp" with the title of the video on here but ending in .wmv, and saved it in the same file as the video and the video is not playing when I open the page as a web page. (the test video did not show either- but I'm not sure that it is supposed to). I also ran the the things in the start menu you had me run. I can't determine what the problem is- it seems that this should be simple? Thank you for your help. Please let me know if/what I'm doing wrong or any alternative solution.

    I also need to embed a windows audio file with controls.

  9. #9
    jarvis24 Blair Jarvis, Administrator
    Not much I can do here because it has to be able to play in Internet Explorer otherwise it will never work in MediaLab. And I'm not an HTML expert so I'm just offering suggestions at this point. When you try using the new HTML code, does the player at least LOOK different in IE than it did when you were using the old code?

  10. #10
    jarvis24 Blair Jarvis, Administrator
    [edited from support email response]

    We started working on a new laptop today and it worked on that. Sorry for the trouble, and thank you for the help!

  11. #11