0

最近、WMPのトラブルシューティング用のWebページを作成しようとしていますが、WMPコーデックが見つからない、DRMを渡せないなどの問題が原因で、ビスタがページ上のリソースを再生できない場合は、 、それから私はそれを修正する方法についてのいくつかの情報を彼らに示します。私はErrorCodeをグーグルで検索しました、そして問題はそれがそこに存在する間と同じようにWMPオブジェクトのプロパティがwmpocx常にundefined現れることです。それでどうすればWMPエラーコードを得ることができますかJSCriptで?

よろしく

4

1 に答える 1

0

MicrosoftのWebサイトにあるセキュリティコンポーネントのアップグレードページのソースコードを読んで、解決策を見つけてください。

メインコード:

var error = wmpocx.error;
var errorItem;
var index;    //index into the error queue.
var message;

//The error is an error object that can have multiple errors in a queue
//error.errorCount is the count of errors in the error queue
for(index=0; index<error.errorCount; index++)
{
    errorItem = wmpocx.error.item(index);
    //you can get information on the error with the following properties
    //errorItem.errorCode
    ecode = errorItem.errorCode;
    message = errorItem.errorDescription;
}
于 2011-03-18T08:26:15.203 に答える