tuarua / WebViewANE

WebView Adobe Air Native Extension for macOS 10.10+, Windows Desktop, iOS 9.0+ and Android 19+. This ANE provides access to a more modern webview from AIR.
Apache License 2.0
183 stars 53 forks source link

FreTypeMismatch #295

Closed koreaflash closed 2 years ago

koreaflash commented 2 years ago

Answer the below. DO NOT DELETE!!

tuarua commented 2 years ago

Please provide full details and steps to reproduce.

koreaflash commented 2 years ago

My guess is that it only appears when loading a webpage with video content.

Copy the HTML page for video content playback to local (File.applicationStorageDirectory) and use it.

The src value is as follows. C:/Users/myuser/AppData/Roaming/appid/Local%20Store/player/ index.html?device=desktop&video=https://mycontents.com/fileRoot/multimedia/202008/PW.ExLect. 1B.U4.L4.mp4&bmove=y&bspeed=y&bctrlpos=y

After calling loadFileURL(src, null), the below message is displayed in the console window. [WebViewANE] [FreSharp] ‼ FreTypeMismatch cannot get FREObject as String

■ If you use the load() method, the above message does not appear. ■ The reason to use the loadFileURL() method is: https://github.com/tuarua/WebViewANE/issues/286#issuecomment-859014137 ■ It seems that there is no problem with the operation. But I wonder what that message means.

tuarua commented 2 years ago

You are passing nullas param 2. It expects a String. which is why it says "Type Mismatch"

use File.applicationStorageDirectory.nativePath for param 2