Results 1 to 10 of 10

Thread: Display an WMV file

  1. #1
    User
    Join Date
    12-01-10.
    Posts
    30

    Default Display an WMV file

    I've tested this code and it works fine within a simple html page. (not my code).

    I've uploaded the video file. When I go into Articles and attempt to put this code into the html, I can see it in the html but it doesn't run. Can I put an object tag in the editor? If not, how else do I get this video to run within the cms.

    <object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" width="480" height="360" codebase="http://www.microsoft.com/Windows/MediaPlayer/">

    <param name="Filename" value="http://www.15-40.org/videos/1540_andruzzi.wmv">
    <param name="AutoStart" value="true">
    <param name="ShowControls" value="true">
    <param name="BufferingTime" value="2">
    <param name="ShowStatusBar" value="true">
    <param name="AutoSize" value="true">
    <param name="InvokeURLs" value="false">
    <embed src="http://www.15-40.org/videos/1540_andruzzi.wmv" autostart="1" enabled="1" showstatusbar="1" showdisplay="1" showcontrols="1" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,0,0" width="480" height="360"></embed>

    </object>

  2. #2
    Experienced user
    Join Date
    08-21-09.
    Posts
    563

    Default Re: Display an WMV file

    Check the Settings for the "Allowed HTML Tags" and "Upload File Types" fields. Adding additional tags and file extensions is pretty self-explanatory once you see them. This will take care of both your <object> code and uploading of WMV files, respectively.

    The other recommendation I would make is to paste in your <object> code using the HTML content type instead of pasting into the "Text" WYSIWYG (even the source view). I believe the WYSIWYG places restrictions on allowable HTML tags separately, so this will sidestep that.
    Brian

  3. #3
    Experienced user
    Join Date
    06-20-09.
    Posts
    1,311

    Default Re: Display an WMV file

    you need to make sure <embed> is in there too, and parts of your code aren't being stripped

  4. #4
    User
    Join Date
    12-01-10.
    Posts
    30

    Default Re: Display an WMV file

    I did post using html.

  5. #5
    User
    Join Date
    12-01-10.
    Posts
    30

    Default Re: Display an WMV file

    okay. adjusted the settings, added the object and embed tags, added the code through the html. I can see a blank video. This same code runs in a separate html but not within the cms.

    Here's the same code on a simple html page.
    http://www.15-40.org/1540-video.html


    Here's what I'm seeing on the site:
    http://15-40.org/news-details/items/Jim ... chool.html
    Getting a blank video.

    Here's the link to the actual video that is getting called.
    http://www.15-40.org/videos/1540_andruzzi.wmv

  6. #6
    Experienced user
    Join Date
    08-21-09.
    Posts
    563

    Default Re: Display an WMV file

    Quote Originally Posted by MTWK-Applied
    Here's what I'm seeing on the site:
    http://15-40.org/news-details/items/Jim ... chool.html
    Getting a blank video.
    Look at the source code for this video. In the <embed> tag, the path to the video is relative...
    Code:
    src="videos/1540_andruzzi.wmv"
    That's why it isn't working.

    From recent experience, this may not something you are doing, but rather something TinyMCE is trying to do for you. By default it tries to convert all URLs to be relative (even if you paste or type in an absolute URL).

    I had a similar issue that caused links to PDF files to break in all versions of IE.

    Again, the best way to avoid this is to NOT paste this video in using the WYSIWYG. Instead, create a new content element, and from the drop-down, choose "HTML" instead of "Text". When you do this, you will be presented with a blank text box instead of the WYSIWYG box.

    If you must use the WYSIWYG, this thread fixed the issue for me:
    http://tinymce.moxiecode.com/forum/viewtopic.php?id=642

    The location of your TinyMCE configuration files (where you go to change the code) is /system/config/. There are several configuration files, and they all start with "tiny".
    Brian

  7. #7
    User
    Join Date
    12-01-10.
    Posts
    30

    Default Re: Display an WMV file

    I misunderstood you on the html. I was using the editor but clicking on the html. I'll try again.

  8. #8
    Experienced user
    Join Date
    06-20-09.
    Posts
    1,311

    Default Re: Display an WMV file

    The thing to be aware of is that everything is mentioned twice in this type of code (file width height autostart etc).
    What is within the embed tags controls all browsers EXCEPT IE
    What is within the object tags (excluding the embed tags) controls IE ONLY

    Code:
    //FOR IE
    <object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" width="400" height="300" codebase="http://www.microsoft.com/Windows/MediaPlayer/">
    <param name="Filename" value="http://www.15-40.org/videos/1540_andruzzi.wmv" />
    <param name="AutoStart" value="true" />
    <param name="ShowControls" value="true" />
    <param name="BufferingTime" value="2" />
    <param name="ShowStatusBar" value="true" />
    <param name="AutoSize" value="true" />
    <param name="InvokeURLs" value="false" />
    
    
    //FOR NON IE
    <embed width="480" height="360" src="videos/1540_andruzzi.wmv" autostart="1" enabled="1" showstatusbar="1" showdisplay="1" showcontrols="1" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,0,0"></embed>
    
    </object>
    So when I look at your video in IE its fine (as the filepath in the object tag is ok), but not in any other browser because of the incorrect relative filepath within the embed tags.

    The video filepath needs to be EITHER absolute, OR relative to the player calling it.

  9. #9
    User
    Join Date
    12-01-10.
    Posts
    30

    Default Re: Display an WMV file

    Thanks for the explanation though I can't see the video in IE either. I had checked in a few browsers and couldn't see it in any of them.

  10. #10
    Experienced user
    Join Date
    06-20-09.
    Posts
    1,311

    Default Re: Display an WMV file

    Well i'm seeing it in IE - but not Firefox (because your embed src is still relative).
    Your browser(s) probably needs the Windows Media Player plugin or activeX control installed.

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
  •