我正在开发一个应用程序,其中有一个启动视频
我希望将此视频嵌入我的可执行 jar 或可以受密码保护的单独 zip
我尝试使用以下代码,但它不起作用
audioPlayer.prepareMedia("zip:///C:/Users/User/Documents/NetBeansProjects/HanumanChalisa/res.zip!/res/startup.mp4");
请帮助我。
编辑 :
这是我得到的错误
[mov,mp4,m4a,3gp,3g2,mj2 @ 000000000053e320] moov atom not found
[000000000d245358] avcodec demux error: Could not open C:\Users\User\Documents\NetBeansProjects\HanumanChalisa\res.zip!\res\startup.mp4: Specified event object handle is invalid
[000000000d245358] ps demux error: cannot peek
[000000000d2390c8] main input error: no suitable demux module for 'zip/:///C:/Users/User/Documents/NetBeansProjects/HanumanChalisa/res.zip!/res/startup.mp4'
[000000000d2390c8] main input error: VLC can't recognize the input's format
[000000000d2390c8] main input error: The format of 'zip:///C:/Users/User/Documents/NetBeansProjects/HanumanChalisa/res.zip!/res/startup.mp4' cannot be detected. Have a look at the log for details.`