player-scripts
Advanced tools
Comparing version
@@ -5,2 +5,2 @@ # Changelog | ||
### 1.0.1-canary.0-83e3aee (2024-08-26) | ||
### 1.0.1-canary.0-8dd0069 (2024-09-17) |
{ | ||
"name": "player-scripts", | ||
"version": "1.0.1-canary.0-83e3aee", | ||
"version": "1.0.1-canary.0-8dd0069", | ||
"description": "kaltura player scripts", | ||
@@ -9,2 +9,3 @@ "scripts": { | ||
}, | ||
"main": "dist/playkit-player-scripts.js", | ||
"author": "", | ||
@@ -11,0 +12,0 @@ "license": "ISC", |
@@ -26,6 +26,2 @@ import {KalturaPlayer, Player, PlayerWindow} from '../types'; | ||
let config: any = { | ||
// TODO: remove log config when done | ||
log: { | ||
level: 'DEBUG' | ||
}, | ||
targetId, | ||
@@ -32,0 +28,0 @@ provider: { |
import {v2PlayerEmbed, V2PlayerThumbEmbed} from './embeds-converter'; | ||
import {buildConfigFromFlashvars} from './utils/flashvars-handler'; | ||
import {buildV7Config} from './utils/flashvars-handler'; | ||
@@ -9,4 +9,4 @@ (window as any).kWidget = { | ||
(window as any).__buildConfigFromFlashvars = buildConfigFromFlashvars; | ||
(window as any).__buildV7Config = buildV7Config; | ||
export {v2PlayerEmbed, V2PlayerThumbEmbed, buildConfigFromFlashvars}; | ||
export {v2PlayerEmbed, V2PlayerThumbEmbed, buildV7Config}; |
@@ -0,1 +1,3 @@ | ||
import {mergeDeep} from "./utils"; | ||
/** | ||
@@ -120,1 +122,6 @@ * A key mapping, where the key is the V2 flashvar configuration name and the value is the corresponding V7 configuration path. | ||
}; | ||
export const buildV7Config = (flashvars: Record<string, any>, v7Config: any): Record<string, any> => { | ||
const configFromFlashvars = getConfigFromFlashvars(flashvars); | ||
return mergeDeep(configFromFlashvars, v7Config); | ||
} |
@@ -18,3 +18,3 @@ 'use strict'; | ||
"thumbnail-embed": 'thumbnail-embed/index.ts', | ||
"v2-to-v7-embed": 'v2-to-v7/index.ts' | ||
"playkit-player-scripts": 'v2-to-v7/index.ts' | ||
}, | ||
@@ -25,3 +25,3 @@ output: { | ||
}, | ||
devtool: 'source-map', | ||
devtool: 'inline-source-map', | ||
plugins: plugins, | ||
@@ -49,2 +49,2 @@ module: { | ||
return config; | ||
}; | ||
}; |
Sorry, the diff of this file is not supported yet
142412
389.64%28
7.69%803
10.76%