开发语言是:java spring mvc手机wap网页上面放一个在手机网页上面打开看,因为是自己的4G网络,有一个提示:您当前是4G网络,还要观看本视频吗?服务器就报错了,网页在访问就很慢,或者访问不了了
程序放在tomcat,哪位大神知道怎么在tomcat中处理这种错误,让程序能正常运行
开发语言是:java spring mvc手机wap网页上面放一个在手机网页上面打开看,因为是自己的4G网络,有一个提示:您当前是4G网络,还要观看本视频吗?服务器就报错了,网页在访问就很慢,或者访问不了了
程序放在tomcat,哪位大神知道怎么在tomcat中处理这种错误,让程序能正常运行
AssetFileDescriptor fileDescriptor = getAssets().openFd(mPlayFileName);
mPlayer.setDataSource(fileDescriptor.getFileDescriptor());
改为
AssetFileDescriptor fileDescriptor = getAssets().openFd(mPlayFileName);
mPlayer.setDataSource(fileDescriptor.getFileDescriptor(), fileDescriptor.getStartOffset(),
fileDescriptor.getLength());
应该就可以了