AndroidDocViewer icon indicating copy to clipboard operation
AndroidDocViewer copied to clipboard

android10-vivo x30预览pdf和ppt文件有问题,路径是Download或App的缓存目录下面

Open panhs opened this issue 3 months ago • 1 comments

大佬有时间帮忙看下,如题,pdf报错提示是:[INFO:CONSOLE(0)] "Failed to load module script: The server responded with a non-JavaScript MIME type of "". Strict MIME type checking is enforced for module scripts per HTML spec.", source: file:///android_asset/pdf/js/pdf.mjs (0) [INFO:CONSOLE(0)] "Failed to load module script: The server responded with a non-JavaScript MIME type of "". Strict MIME type checking is enforced for module scripts per HTML spec.", source: file:///android_asset/pdf/viewer.mjs (0)

ppt报错是:[INFO:CONSOLE(163)] "文件加载filePath: content://com.seapeak.example.provider/download/sample4.pptx", source: file:///android_asset/ppt/index-BLhbz3dR.js (163) [INFO:CONSOLE(163)] "文件加载失败: Error: Network error", source: file:///android_asset/ppt/index-BLhbz3dR.js (163) ppt是改成用XMLHttpRequest的方式,高版本android13的试过是正常的

panhs avatar Oct 16 '25 07:10 panhs

确实有点奇怪,你的 content://com.seapeak.example.provider/download/sample4.pptx 能不能 转成file:// 开头的再试试?

seapeak233 avatar Oct 30 '25 08:10 seapeak233