@@ -46,7 +46,7 @@ message SendHeartbeatRequest {
46
46
string playback_session_id = 1 ;
47
47
// The position in the title in seconds.
48
48
// This can be used to update the position of the playback session, for example, when the user seeks.
49
- uint64 position_seconds = 2 ;
49
+ optional uint32 position_seconds = 2 ;
50
50
}
51
51
52
52
// SendHeartbeatResponse defines the response message for SendHeartbeat.
@@ -65,6 +65,9 @@ message PausePlaybackResponse {}
65
65
message ResumePlaybackRequest {
66
66
// The ID of the playback session.
67
67
string playback_session_id = 1 ;
68
+ // The position in the title in seconds to resume playback from.
69
+ // This can be used to update the position of the playback session, for example, when the user seeks.
70
+ optional uint32 position_seconds = 2 ;
68
71
}
69
72
70
73
// ResumePlaybackResponse defines the response message for ResumePlayback.
@@ -102,19 +105,22 @@ message PlaybackSession {
102
105
// Must be a valid title ID in the system and the title must be available to the user.
103
106
// This field cannot be changed after the playback session is created.
104
107
string title_id = 6 ;
108
+ // The duration of the title in seconds.
109
+ // This field is set by the server and cannot be changed.
110
+ uint32 title_duration_seconds = 7 ;
105
111
// How far into the title the playback session is.
106
112
// The position is maintained by an internal timer and can only be updated via the SendHeartbeat method.
107
- uint64 position_seconds = 7 ;
113
+ uint32 position_seconds = 8 ;
108
114
// The status of the playback session.
109
115
// Users can only update the status of the playback session via the PausePlayback and ResumePlayback methods.
110
- PlaybackStatus status = 8 ;
116
+ PlaybackStatus status = 9 ;
111
117
// The interval in seconds to send heartbeats.
112
118
// If a heartbeat is not received within the interval, the playback session is considered inactive and will be paused.
113
- // The default value is 15 seconds.
114
- uint64 heartbeat_interval_seconds = 9 ;
119
+ // Must be between 60 and 300 seconds. The default is 120 seconds.
120
+ optional uint32 heartbeat_interval_seconds = 10 ;
115
121
// How many times the user has watched the title.
116
122
// This field is incremented each time the user completes the title and cannot be changed by the user.
117
- uint64 watch_count = 10 ;
123
+ uint32 watch_count = 11 ;
118
124
}
119
125
120
126
// PlaybackStatus represents the status of a playback session.
0 commit comments