Results 1 to 2 of 2
  1. #1
    New Member
    Join Date
    Sep 2011
    Location
    Crestview FL
    Posts
    1

    Browser detection for what type of video file to play

    I am working with 2 types of files. wmv and flash. I want IE to only load and play the wmv and FF and Chrome to play the swf. I am doing this so that the controls are hidden for my entry videos.. I was using the object method for wmv and IE and embed method for playing flash in all other browsers. Unfortunately what is happening is that IE is playing the WMV but also playing a second video stream that is delayed which I guess is coming from the flash embedded video. I am new at this embedding venture. Maybe there is a better way to do what I wnat to do. If so I can't find it on the web. Please help.

  2. #2
    Administrator Dave's Avatar
    Join Date
    Sep 2004
    Location
    Te Awamutu, New Zealand
    Posts
    3,959
    Blog Entries
    79
    Try the technique on this page:
    http://www.mediacollege.com/internet...detect-ie.html

    Your code would have this layout:
    Code:
    <!--[if IE]>
    Put all the code for playing wmv here.
    <![endif]-->
    
    <![if !IE]>
    Put all the flash code here.
    <![endif]>
    Dave Owen
    MediaCollege.com

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
  •  
Subscribe to us on YouTube