Skip to content

Commit

Permalink
feat: notify rotate degree for video toolbox
Browse files Browse the repository at this point in the history
  • Loading branch information
befovy committed Nov 28, 2019
1 parent fc7e199 commit 3160c76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions ios/IJKMediaPlayer/IJKMediaPlayer/IJKFFMediaPlayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ typedef NS_ENUM(NSInteger, IJKMPEventType) {
IJKMPET_BUFFERING_START = 500,
IJKMPET_BUFFERING_END = 501,
IJKMPET_BUFFERING_UPDATE = 502,
IJKMPET_CURRENT_POSITION_UPDATE = 510,
IJKMPET_PLAYBACK_STATE_CHANGED = 700,
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ int videotoolbox_video_thread(void *arg)
Decoder *d = &is->viddec;
int ret = 0;

ffp_notify_msg2(ffp, FFP_MSG_VIDEO_ROTATION_CHANGED, ffp_get_video_rotate_degrees(ffp));

for (;;) {

if (is->abort_request || d->queue->abort_request) {
Expand Down

0 comments on commit 3160c76

Please sign in to comment.