简体   繁体   English

播放压缩文件中的音频文件

[英]Playing audio files packed in zip-File

I try to play wav files stored in zip-Files in the filesystem with vlcj. 我尝试使用vlcj播放文件系统中zip文件中存储的wav文件。 I tried to start the media with this call: 我试图通过此调用来启动媒体:

audioMediaPlayer.playMedia("jar:file:/C://Users/abc/Desktop/test/28.zip!/28.wav);

This didn't work. 这没用。

[0000000000454750] core input error: open of `jar:file://C:/Users/abc/Desktop/test/28.zip!/28.wav' failed
[0000000000454750] core input error: Ihre Eingabe konnte nicht ge�ffnet werden
[0000000000454750] core input error: VLC kann die Medienadresse 'jar:file://C:/Users/abc/Desktop/test/28.zip!/28.wav' nicht �ffnen. F�r Details bitte im Fehlerprotokoll nachsehen.

I read this post and tried the following 我阅读了这篇文章,并尝试了以下

audioMediaPlayer.playMedia("zip://C://Users/abc/Desktop/test/28.zip!/28.wav);

this results in this errors: 这将导致以下错误:

[00000000003df990] core access error: no suitable access module for `C://Users/abc/Desktop/test/28.zip'
[00000000003df990] zip access error: not a valid zip archive: 'C://Users/abc/Desktop/test/28.zip'
[0000000000444750] core input error: open of `zip://C://Users/abc/Desktop/test/28.zip!/28.wav' failed
[0000000000444750] core input error: Ihre Eingabe konnte nicht ge�ffnet werden
[0000000000444750] core input error: VLC kann die Medienadresse 'zip://C://Users/abc/Desktop/test/28.zip!/28.wav' nicht �ffnen. F�r Details bitte im Fehlerprotokoll nachsehen.

What's wrong? 怎么了? Where did I find the error protocol? 在哪里找到错误协议? Thankyou for your help. 谢谢您的帮助。

这有效:

zip:///C:/test.zip!/test.avi

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM