@@ -23,6 +23,7 @@ import { PLAYER_EVENT, SOURCE_TYPE } from './utils/consts';
2323import { getAnalyticsFromPlayerOptions } from './utils/get-analytics-player-options' ;
2424import { extendCloudinaryConfig , normalizeOptions , isRawUrl , ERROR_CODE } from './plugins/cloudinary/common' ;
2525import { isVideoInReadyState , checkIfVideoIsAvailable } from './utils/video-retry' ;
26+ import { appendQueryParams } from './utils/querystring' ;
2627
2728const INTERNAL_ANALYTICS_URL = 'https://analytics-api-s.cloudinary.com' ;
2829
@@ -265,9 +266,10 @@ class VideoPlayer extends Utils.mixin(Eventable) {
265266 transformation . flags = transformation . flags || [ ] ;
266267 transformation . flags . push ( 'sprite' ) ;
267268
268- const vttSrc = source . config ( )
269+ const vttUrl = source . config ( )
269270 . url ( `${ publicId } .vtt` , { transformation } )
270271 . replace ( / \. j s o n $ / , '' ) ; // Handle playlist by tag
272+ const vttSrc = appendQueryParams ( vttUrl , source . queryParams ( ) ) ;
271273
272274 // vttThumbnails must be called differently on init and on source update.
273275 isFunction ( this . videojs . vttThumbnails )
@@ -299,9 +301,10 @@ class VideoPlayer extends Utils.mixin(Eventable) {
299301 transformation . flags = transformation . flags || [ ] ;
300302 transformation . flags . push ( 'getinfo' ) ;
301303
302- const aiHighlightsGraphSrc = source . config ( )
304+ const aiHighlightsGraphUrl = source . config ( )
303305 . url ( `${ publicId } ` , { transformation } )
304306 . replace ( / \. j s o n $ / , '' ) ; // Handle playlist by tag
307+ const aiHighlightsGraphSrc = appendQueryParams ( aiHighlightsGraphUrl , source . queryParams ( ) ) ;
305308
306309 // Plugin is called differently on init and on source update.
307310 isFunction ( this . videojs . aiHighlightsGraph )
0 commit comments