Checking hardware acceleration in the Transcoding sample application(Metro UI) -
in sample example provided microsoft(transcoding sample application) need check whether hardware acceleration enabled or not. using code
var hardwareaccelerationenabled = mediatranscoder.hardwareaccelerationenabled; mediatranscoder.hardwareaccelerationenabled = hardwareaccelerationenabled;
but while compiling showing following error:
javascript runtime error: 'mediatranscoder' undefined
kindly help. in advance.
you need create instance of mediatranscoder object first using "new". example below:
var mediatranscoder = new windows.media.transcoding.mediatranscoder(); var hardwareaccelerationenabled = mediatranscoder.hardwareaccelerationenabled;
Comments
Post a Comment