Skip to content

Commit

Permalink
Bump 2.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
halx99 committed Feb 6, 2025
1 parent 48fdc59 commit 6c7d7e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/axmolver.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// 00 03 08 00
#define AX_VERSION_MAJOR 2
#define AX_VERSION_MINOR 3
#define AX_VERSION_PATCH 2
#define AX_VERSION_PATCH 3

/* Define axmol version helper macros */
#define AX_VERSION_MAKE(a, b, c) ((a << 16) | (b << 8) | (c & 0xff))
Expand Down
7 changes: 4 additions & 3 deletions core/media/AvfMediaEngine.mm
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,10 @@ - (void)observeValueForKeyPath:(NSString*)keyPath
}

if (_bAutoPlay) {
// fix issue: #2371
// tvOS: we need delay on frame to invoke play even through invoking from KOV playerItem.status==AVPlayerItemStatusReadyToPlay
// otherwise, the player.timeControlStatus will be AVPlayerTimeControlStatusPaused until invoke [player play] at next frame
/* Fix issue: #2371 for tvOS
delay one frame to invoke [player play] to fix player.timeControlStatus
maybe AVPlayerTimeControlStatusPaused at first app startup
*/
__weak AVPlayer* player = _player;
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
if (player != nil)
Expand Down

0 comments on commit 6c7d7e6

Please sign in to comment.