How to Render SCORM Package


#1

Hi Team,

Can anyone explain how to use SCORM package…??


#2

What have you tried so far?


#3

I have kept the Scorm files inside resources directory,

Controller function

 async openScorm({ params, response, view }) {
    try {
        const Drive = use('Drive')
        const scormPath = this.Helper.resourcesPath() + "/files/scorm/index.html"
        const scormData = await Drive.get(scormPath)
        response.header('Content-type', 'text/html; charset=utf-8')
        response.send(scormData)
    } catch (error) {
        console.log(error)
    }
}