Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

progressReportDelayInMilliseconds 、progressReportIntervalInMilliseconds变量类型有误,应该设置为Integer。 #10

Open
antonyhong opened this issue Apr 11, 2019 · 0 comments

Comments

@antonyhong
Copy link

在中 /java-sdk/src/main/java/com/baidu/dueros/data/response/directive/videoplayer/Stream.java
的内部类。
public class ProgressReport {
// 如果此字段存在,则设备端在播放该video
// item时,播放到所指定时间之后会上报ProgressReportDelayElapsed事件;不存在则不上报此事件
private int progressReportDelayInMilliseconds = 0;
// 如果此字段存在,则设备端在播放该video
// item时,每隔指定时间上报ProgressReportIntervalElapsed事件,不存在则不上报此事件
private int progressReportIntervalInMilliseconds = 0;
.....
}
属性 progressReportDelayInMilliseconds 、progressReportIntervalInMilliseconds 被定义成原子类型,因此序列化必然存在这两个字段。跟注释:“不存在则不上报此事件” 有冲突。
此处应该改成 Integer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant