forked from EVOgeek/Vmeda.Online
		
	MOBILE-3666 h5p: Enable player reporting
This commit is contained in:
		
							parent
							
								
									7956d8e563
								
							
						
					
					
						commit
						6e98c43651
					
				| @ -39,6 +39,9 @@ if (window.H5PIntegration && window.H5PIntegration.contents && location.search) | |||||||
|             } |             } | ||||||
|         } else if (nameAndValue[0] == 'component') { |         } else if (nameAndValue[0] == 'component') { | ||||||
|             window.H5PIntegration.moodleComponent = nameAndValue[1]; |             window.H5PIntegration.moodleComponent = nameAndValue[1]; | ||||||
|  |             if (window.H5PIntegration.moodleComponent) { | ||||||
|  |                 window.H5PIntegration.reportingIsEnabled = true; | ||||||
|  |             } | ||||||
|         } else if (nameAndValue[0] == 'trackingUrl' && contentData) { |         } else if (nameAndValue[0] == 'trackingUrl' && contentData) { | ||||||
|             contentData.url = nameAndValue[1]; |             contentData.url = nameAndValue[1]; | ||||||
|         } |         } | ||||||
|  | |||||||
| @ -226,6 +226,8 @@ export class CoreH5PPlayer { | |||||||
| 
 | 
 | ||||||
|         settings.moodleLibraryPaths = await this.h5pCore.getDependencyRoots(id); |         settings.moodleLibraryPaths = await this.h5pCore.getDependencyRoots(id); | ||||||
| 
 | 
 | ||||||
|  |         // The Moodle component is added dynamically using the params.js script instead of doing it here.
 | ||||||
|  | 
 | ||||||
|         /* The filterParameters function should be called before getting the dependency files because it rebuilds content |         /* The filterParameters function should be called before getting the dependency files because it rebuilds content | ||||||
|            dependency cache. */ |            dependency cache. */ | ||||||
|         settings.contents[contentId].jsonContent = await this.h5pCore.filterParameters(content, siteId); |         settings.contents[contentId].jsonContent = await this.h5pCore.filterParameters(content, siteId); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user