internet explorer 8 - IE 8 wont allow me setScr (mediaelement.js) -


i playing video mediaelement.js. works fine when want change source of video error:

script438: object doesn't support property or method 'setsrc'

anyone idea how fix this?

code:

function playvideo(source) {       var fileformat:string       player.pause();       if (modernizr.video) {          fileformat = ".mp4";      } else {        fileformat = ".flv";      }      var sources = [         { src: 'media/'+ source + fileformat }     ];      player.setsrc(sources);     player.load();     player.play();  } 


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -