Skip to content

PlayerEvent.tracksAvailable observer does not have videoTracks as Android does #473

Description

@StefanoStream
Prerequisites
  • Have you checked for duplicate issues: Yes
  • Which Player version are you using: v3.28.0
  • Can you reproduce the issue with our latest release version: Yes
  • Can you reproduce the issue with the latest code from master: Yes
  • What devices and OS versions are you using: iOS 17.0
  • If applicable, add test code or test page to reproduce:
playKit.player?.addObserver(self, event: PlayerEvent.tracksAvailable) { [weak self] event in
    dump(event.tracks)
}
Expected behavior

Receiving videoTracks details as playkit-android does

Actual behavior

Only textTracks and audioTracks will be returned

Console output
▿ Optional(<PlayKit.PKTracks: 0x6000002cb380>)
  ▿ some: <PlayKit.PKTracks: 0x6000002cb380> #0
    - super: NSObject
    ▿ audioTracks: Optional([<PlayKit.Track: 0x6000017baa80>])
      ▿ some: 1 element
        ▿ <PlayKit.Track: 0x6000017baa80> #1
          - super: NSObject
          - id: "AVMediaType(_rawValue: soun):0"
          - title: "Unknown"
          - language: nil
          - type: PlayKit.TrackType.audio
    ▿ textTracks: Optional([<PlayKit.Track: 0x6000017ba6c0>, <PlayKit.Track: 0x6000017ba780>])
      ▿ some: 2 elements
        ▿ <PlayKit.Track: 0x6000017ba6c0> #2
          - super: NSObject
          - id: "sbtl:-1"
          - title: "Off"
          - language: nil
          - type: PlayKit.TrackType.text
        ▿ <PlayKit.Track: 0x6000017ba780> #3
          - super: NSObject
          - id: "sbtl:0"
          - title: "English"
          ▿ language: Optional("en")
            - some: "en"
          - type: PlayKit.TrackType.text

ANDROID:
tracksAvailable_Android

IOS:
tracksAvailable_iOS

Is there a way to know the width and height size of the current video track without having the videoTracks from PlayerEvent.tracksAvailable?
Is it possible to implement the same behaviour of Android's PlayerEvent.tracksAvailable observer/listener?

Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions