2013-06-28 30 views
0

我需要顯示和跟蹤android應用程序中的scorm內容。我搜索了一些關於scorm player for mobile devices的帖子,它也被關閉了。我已經使用顯示內容imsmanifest.xmlAndroid的脫機Scorm Player

我被困在scorm文件中跟蹤LMS。經過長時間的搜索,我發現我需要執行一個JavaScript文件來與scorm文件和應用程序進行交互,Scorm_1.2和Scorm_1.3用於舊版和新版scorm。我也執行了JavaScript,但沒有與scorm文件進行通信。

它總是從從JavaScript的SCORM

if (win.API != null) {     
    return win.API; //It always null value 
} 
else { 

    if (win.frames.length > 0) {   
     for (var i = 0; i < win.frames.length; i++) { 
      if (win.frames[i] && win.frames[i].API != null) //Here too it comes null value 
       alert(win.frames[i].API); 
       return win.frames[i].API; 
     } 
    } 
    if (typeof(win.opener) != "undefined" && win.opener != null) { 
     return findAPI(win.opener);    
    } 
    if (win.parent != window && win.parent != win) { 
     return findAPI(win.parent);    
    } 
    return null; 
} 

的API調用對象由於其不使用JavaScript在Scorm_1.2通信

+0

我實現離線scorm播放器同步到moodle服務器。這真的很艱難,並不那麼容易。 –

+0

@AshishNautiyal你能解釋一下如何在離線播放器中同步到moodle服務器。它迫切需要解決這個問題。 – deepa

+0

其正常的數據庫同步 –

回答

0

SCORM設計JavaScript的空值返回空值從網絡瀏覽器運行,而不是應用程序。 LMS必須在彈出窗口或框架集中啓動課程,並且窗口/框架集必須以JavaScript對象的形式提供SCORM API。

離線和移動用例(如您的)是Experience API(又名錫罐)背後的驅動力之一。

正如other StackOverflow posts中提到的那樣,有商業解決方案提供離線支持,但在技術上它們違背了SCORM規範的規則。

+0

是的,我只在框架集webview中呈現html,但javascript對象總是返回空值。 – deepa