Commit b619ecb8 authored by xfxmcy's avatar xfxmcy

格式化

parent 3da9006d
......@@ -5,6 +5,9 @@ import java.io.File;
import it.sauronsoftware.jave.Encoder;
import it.sauronsoftware.jave.EncoderException;
import it.sauronsoftware.jave.MultimediaInfo;
import org.rcisoft.core.exception.ServiceException;
import org.rcisoft.core.result.ResultCode;
import org.rcisoft.core.result.ResultExceptionEnum;
public class GetVideoTime {
......@@ -23,7 +26,7 @@ public class GetVideoTime {
duration = multimediaInfo.getDuration();
totalTime += duration;
} catch (EncoderException e) {
e.printStackTrace();
throw new ServiceException(ResultCode.ERROR.getCode(),e.getMessage());
}
// long --> hh:mm: calculate the time manually
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment