Addition of AVMetadataCommonIdentifierDuration as a custom metadata for AVPlayerItem
Originator: | dcorderoramirez | ||
Number: | rdar://31756153 | Date Originated: | 21-Apr-2017 02:17 PM |
Status: | tvOS + SDK | Resolved: | |
Product: | tvOS + SDK | Product Version: | tvOS 10.2 |
Classification: | Reproducible: | Always |
Area: AV Playback Summary: At the moment it is possible to set some custom metadata to instances of AVPlayerItem. This information is at the end presented on the "Info" tab bar when swiping down on an instance of AVPlayerViewController. The following are some examples of customizable metadata: AVMetadataCommonIdentifierTitle: To add title metadata AVMetadataCommonIdentifierDescription: To add a description metadata On the other hand, there is a not customizable Duration label shown in the same view, between Title and Description. (Please check the attached image for clarification.) https://imagebin.ca/v/3JphMqeY4VNv There is no documentation about this duration field, but attending to the talk "AVKit on tvOS" from WWDC 2016, this information is inferred automatically from the stream. This inference does not work properly for live streams, in which the value that is shown is the size of the event stream instead of the duration of the showing event. Having a new editable metadata AVMetadataCommonIdentifierDuration to customize the duration label would allow setting the right program duration when needed. Steps to Reproduce: Try to edit the duration label shown on the Info tab bar presented by an instance of AVPlayerViewController Expected Results: Having a new editable metadata AVMetadataCommonIdentifierDuration to customize the duration label would allow setting the right program duration when needed. Actual Results: The duration label is showing an inferred value from the stream, which is inferring a wrong for live events. Version: tvOS 10.2 Configuration: AppleTv 4th Generation Attachments: 'avplayerMetadata.png' was successfully uploaded.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!