Skip to content

[CMCD] DefautDataSource doesn't add headers on master playlist requests #1951

Closed
@AlexStankevic

Description

@AlexStankevic

Version

Media3 1.4.1

More version details

DefautDataSource doesn't add headers on master playlist requests

Devices that reproduce the issue

reproduced on Google Pixel 6 Pro

Devices that do not reproduce the issue

no device

Reproducible in the demo app?

Not tested

Reproduction steps

  1. Add cmcd headers into CMCDConfiguration factory, add it into Datasource
val cmcdConfigurationFactory = CmcdConfiguration.Factory { mediaItem ->
        val cmcdRequestConfig = CmcdConfiguration(
            /* sessionId=*/  UUID.randomUUID().toString() 
            /* contentId= */ UUID.randomUUID().toString() ,
            object : CmcdConfiguration.RequestConfig {})

mediaSourceFactory.setCmcdConfigurationFactory(cmcdConfigurationFactory)

  1. Run any HLS stream

  2. Headers is presents during ts requests, but not presents during m3u8 requests

Expected result

cmcd headers presents in m3u8 requests

Actual result

No cmcd headers in m3u8 requests

Media

https://devstreaming-cdn.apple.com/videos/streaming/examples/adv_dv_atmos/main.m3u8
But can be uses any hls stream

Bug Report

  • You will email the zip file produced by adb bugreport to [email protected] after filing this issue.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions