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

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -