Type Definitions
-
GetOrCreateFolderResponse
-
Properties:
Name Type Description fidinteger the folder's ID; pass it as the `fid` metadata field to put a new video in this folder createdboolean true if this call created the folder, false if it already existed -
PartnerAccountInfo
-
Properties:
Name Type Description is4Kboolean whether your partner account may upload video above 1080p. Without 4K, PB Vision does not analyze such a video. -
PlayerForTagging
-
A player to tag, identified by a name, an email, or both. At least one of the two is required.
Properties:
Name Type Attributes Description namestring <optional>
what to call the player: 1 to 64 characters after trimming. Shown unless the email belongs to a PB Vision account, in which case that account's own name is shown. emailstring <optional>
the player's email address. The player is emailed that they were tagged. If the address belongs to a PB Vision account, the game is added to that account's library; if not, the game joins their library when they sign up with this address. -
PlayersForTagging
-
The players to tag automatically once the video is processed, identified by their role at the start of the first game. The team that serves first supplies `server` (its first server) and `serverPartner`. The other team's first server is `receiver`: they start on the right and receive the first serve. Their partner is `receiverPartner`. Omit both partners for singles. Each email may be given for only one player.
Properties:
Name Type Attributes Description serverPlayerForTagging the player who served the first point receiverPlayerForTagging the player who received the first point serverPartnerPlayerForTagging <optional>
the server's partner (omit for singles) receiverPartnerPlayerForTagging <optional>
the receiver's partner (omit for singles) -
RecordingLink
-
Properties:
Name Type Description vidstring the ID of the video the recording will upload to uidstring the ID of your partner account, which owns the video urlstring the link that opens the PB Vision app to record the game -
RecordingLinkOptions
-
The video's details and camera settings for makeRecordingLink(). The details are the same as in VideoMetadata, except that there is no gameStartEpoch: the game's time comes from its recording.
Properties:
Name Type Attributes Default Description userEmailsArray.<string> <optional>
the email addresses of up to 4 players in the game (see VideoMetadata) namestring <optional>
the title of the game descstring <optional>
a longer description of the game facilitystring <optional>
the facility where the game is played courtstring <optional>
the court where the game is played fidinteger <optional>
the ID of the folder in your partner account's library to add the video to (see getOrCreateFolder()) playersForTaggingPlayersForTagging <optional>
the players to tag automatically once processing completes noncestring <optional>
identifies the game, e.g. your own ID for it: every call with the same nonce returns the same video and link (see makeVideoId()) resolutionstring <optional>
'1080p' the resolution to record at: '1080p' or '4k'. 4K requires your partner account to have 4K enabled; otherwise PB Vision rejects the upload. fpsinteger <optional>
30 the frame rate to record at: 30 or 60 mayChangeResolutionboolean <optional>
false whether the person recording may choose a different resolution in the app mayChangeFPSboolean <optional>
false whether the person recording may choose a different frame rate in the app -
VideoMetadata
-
Information about the Video that can be set prior to it being uploaded.
Properties:
Name Type Attributes Description userEmailsArray.<string> a list of email addresses of up to 4 players who were playing in the game; they will also be notified when the video processing is complete (unless they have these notifications disabled) namestring <optional>
the title of the game (if omitted, we'll use the time of the game, or if that isn't provided then the time of the upload) descstring <optional>
a longer description of the game gameStartEpochinteger <optional>
the epoch at which the game started facilitystring <optional>
the facility where the game was recorded (e.g., "Cool Club #3 - Barcelona") courtstring <optional>
the court where the game was recorded (e.g., "11A") fidinteger <optional>
the ID of the folder in your partner account's library to add this video to (see getOrCreateFolder()). A fid that is not one of your folders is refused. playersForTaggingPlayersForTagging <optional>
the players to tag automatically once processing completes, each by a name, an email, or both. Identify players by their role at the start of the first game. Honored by uploadVideo(), sendVideoUrlToDownload(), makeVideoId(), and makeRecordingLink(). -
VideoUrlToDownloadResponse
-
Properties:
Name Type Attributes Description vidstring the ID of the new video hasCreditsboolean <optional>
for passthrough partners, this field will be present and indicate whether the first user has any credits available