Skip to main content

RusticiLaunchScorm

Returns data from the Rustici Scorm engine related to playing SCORMs.

RusticiLaunchScorm(
id: ID
topicOrCourseId: ID!
type: ContentOrTopicEnum
isPreview: Boolean!
): RusticiCourseLaunchResponse!

Arguments

RusticiLaunchScorm.topicOrCourseId ● ID! non-null scalar

RusticiLaunchScorm.type ● ContentOrTopicEnum enum

The type of the Topic Or Course.

RusticiLaunchScorm.isPreview ● Boolean! non-null scalar

Requests the preview URL to launch SCORM content. This requires the current user to be in admin or manager role.

Type

RusticiCourseLaunchResponse object

Contains data to launch SCORM content through Rustici API.

Examples

Run in Postman

Query:

RusticiLaunchScorm(
$id: ID,
$topicOrCourseId: ID!,
$type: ContentOrTopicEnum,
$isPreview: Boolean!
) {
RusticiLaunchScorm(
id: $id,
topicOrCourseId: $topicOrCourseId,
type: $type,
isPreview: $isPreview
) {
isRusticiCourse
url
fullscreenEmbed
height
width
registrationId
courseTitle
registrationCheckerJWT
registrationCheckerEndpoint
}
}

Variables:

{
"id": "58ccb96c-8e90-4464-86e0-f284442981df",
"topicOrCourseId": "58ccb96c-8e90-4464-86e0-f284442981df",
"type": "course",
"isPreview": true
}

Response:

{
"data": {
"RusticiLaunchScorm": {
"isRusticiCourse": false,
"url": "AbsoluteOrRelativeURL",
"fullscreenEmbed": true,
"height": 678,
"width": 678,
"registrationId": "58ccb96c-8e90-4464-86e0-f284442981df",
"courseTitle": "xyz789",
"registrationCheckerJWT": "xyz789",
"registrationCheckerEndpoint": "URL"
}
}
}