eb-player 1.54.39 → 1.54.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/build/default.js +1 -1
  2. package/dist/players/videos/equipe/EB_lequipe-preprod-1.54.39.js +1 -0
  3. package/dist/players/videos/equipe/EB_lequipe-preprod-1.54.40.js +1 -0
  4. package/dist/players/videos/equipe/EB_lequipe-preprod-1.54.40_1.js +1 -0
  5. package/dist/players/videos/equipe/EB_lequipe-preprod-1.54.40_2.js +1 -0
  6. package/dist/players/videos/equipe/EB_lequipe-preprod-1.54.40_3.js +1 -0
  7. package/dist/players/videos/equipe/EB_lequipe-preprod-1.54.40_4.js +1 -0
  8. package/dist/players/videos/equipe/EB_lequipe-preprod-1.54.40_5.js +1 -0
  9. package/dist/players/videos/equipe/EB_lequipe-preprod-1.54.41.js +1 -0
  10. package/dist/players/videos/equipe/EB_lequipe-preprod.js +1 -0
  11. package/dist/players/videos/equipe/equipe.js +1 -0
  12. package/dist/players/videos/equipe/index.html +26 -8
  13. package/package.json +1 -1
  14. package/dist/build/forja.js +0 -1
  15. package/dist/players/radios/globecast/medi1/afrique/afrique.js +0 -1
  16. package/dist/players/radios/globecast/medi1/afrique/index.html +0 -15
  17. package/dist/players/radios/globecast/medi1/maghreb/index.html +0 -15
  18. package/dist/players/radios/globecast/medi1/maghreb/maghreb.js +0 -1
  19. package/dist/players/radios/globecast/rtn/eb.voixsahel.min.js +0 -1
  20. package/dist/players/radios/globecast/rtn/index.html +0 -5
  21. package/dist/players/radios/globecast/snrt/alIdaaAlAmazighia/EBalIdaaAlAmazighia.js +0 -1
  22. package/dist/players/radios/globecast/snrt/alIdaaAlAmazighia/index.html +0 -5
  23. package/dist/players/radios/globecast/snrt/alIdaaAlWatania/EBalIdaaAlWatania.js +0 -1
  24. package/dist/players/radios/globecast/snrt/alIdaaAlWatania/index.html +0 -5
  25. package/dist/players/radios/globecast/snrt/chaineInter/EBchaineInter.js +0 -1
  26. package/dist/players/radios/globecast/snrt/chaineInter/index.html +0 -16
  27. package/dist/players/radios/globecast/snrt/idaatmohammedassadiss/EBquranAlKarim.js +0 -1
  28. package/dist/players/radios/globecast/snrt/idaatmohammedassadiss/index.html +0 -5
  29. package/dist/players/radios/globecast/snrt/live/radio/regionalRadio/SNRTplaylistRadios/SNRTplaylistRadios.js +0 -1
  30. package/dist/players/radios/globecast/snrt/live/radio/regionalRadio/SNRTplaylistRadios/index.html +0 -5
  31. package/dist/players/videos/equipe/EB_lequipe.js +0 -1
  32. package/dist/players/videos/globecast/rtn/eb.telesahel.min.js +0 -1
  33. package/dist/players/videos/globecast/rtn/index.html +0 -5
@@ -7,7 +7,7 @@
7
7
  * This function is called to provide extra parameters for token fetching.
8
8
  * @returns {object} An object containing accessToken and providerEntitlement.
9
9
  */
10
- function getExtraParamsCallback() {
10
+ async function getExtraParams() {
11
11
  return {
12
12
  accessToken: `${count++}`,
13
13
  providerEntitlement: 'ligue1-1'
@@ -22,26 +22,44 @@
22
22
  * @param {string} payload.errorType - The type of error.
23
23
  */
24
24
  function tokenCDNErrorCallback({ status, code, errorType } = {}) {
25
- console.log('tokenCDNErrorCallback >>>>>:', { status, code, errorType });
25
+ console.error('tokenCDNErrorCallback >>>>>:', { status, code, errorType });
26
26
  }
27
+
28
+ document.addEventListener('eb:stats', (event) => {
29
+ console.log('eb:stats event received:', event.statName, event.videoSrc, event.timestamp);
30
+ });
27
31
 
28
32
  document.addEventListener('DOMContentLoaded', () => {
29
33
  // if start() is not working, check that the config has start: false
30
34
  window?.EBPlayer?.start({
31
- src: 'https://cdn.lequipe.easybroadcast.io/abr_drm_corp/ligue1-1/playlist.m3u8',
35
+ // src: 'https://cdn.lequipe.easybroadcast.io/abr_drm_corp/ligue1-1/playlist.m3u8', // live prod
36
+ // src: 'https://cdn.lequipe.easybroadcast.io/pp_abr_drm_corp/ligue1-1/playlist.m3u8', // live preprod
37
+ // src: 'https://cdn.lequipe.easybroadcast.io/pp_drm_vod/ligue1-20223053/fp/playlist.m3u8', // vod preprod with DRM
38
+ // src: 'https://encoder.cdn.easybroadcast.fr/vod/EBCORP_DEV/5074/playlist.m3u8', // vod preprod without DRM
39
+ src: 'https://cdn.live2.easybroadcast.io/abr_drm_corp/eurosport-11/playlist_fmp4_dvr.m3u8', // Live Eurosport 1 DRM
40
+ isLive: true,
41
+ liveButton: true,
42
+ seekbar: true,
32
43
  engineSettings: {
33
44
  emeEnabled: true,
34
45
  drmSystems: {
35
46
  'com.apple.fps': {
36
- licenseUrl: 'https://fps.ezdrm.com/api/licenses/2382ABBB-AF5E-4ECA-8A56-072C83CBBEA1',
37
- serverCertificateUrl: 'https://gcp-preprod-sdwh.lequipe.fr/iPhoneDatas/certs/lequipe_fps_v4.cer'
47
+ // Production DRM settings
48
+ licenseUrl: 'https://fps.ezdrm.com/api/licenses/4284be24-5a56-4dc2-bb0b-76619a2d2cf5',
49
+ serverCertificateUrl: 'https://sdwh.lequipe.fr/iPhoneDatas/certs/lequipe_fps_v4.cer'
50
+ // PreProduction DRM settings
51
+ // licenseUrl: 'https://fps.ezdrm.com/api/licenses/EB4A39C3-892B-F0EB-414E-7EBD6742C452',
52
+ // serverCertificateUrl: 'https://gcp-preprod-sdwh.lequipe.fr/iPhoneDatas/certs/lequipe_fps_v4.cer'
38
53
  },
39
54
  'com.widevine.alpha': {
55
+ // Production DRM settings
40
56
  licenseUrl: 'https://widevine-dash.ezdrm.com/proxy?pX=78F763'
57
+ // PreProduction DRM settings
58
+ // licenseUrl: 'https://widevine-dash.ezdrm.com/proxy?pX=10E96F'
41
59
  }
42
60
  },
43
- onTokenCDNError: (payload) => tokenCDNErrorCallback(payload),
44
- extraParamsCallback: () => getExtraParamsCallback()
61
+ onCDNTokenError: ({ status, errorCode, errorType }) => tokenCDNErrorCallback({ status, errorCode, errorType }),
62
+ extraParamsCallback: async () => getExtraParams()
45
63
  }
46
64
  });
47
- });</script></body></html>
65
+ });</script></body></html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eb-player",
3
- "version": "1.54.39",
3
+ "version": "1.54.41",
4
4
  "scripts": {
5
5
  "build": "webpack --config-name component",
6
6
  "generate": "webpack --config-name generate",