Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
6 tasks done
StefanoStream opened this issue Nov 23, 2023 · 0 comments
Open
6 tasks done

Comments

@StefanoStream
Copy link

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

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

No branches or pull requests

1 participant