CPC H04N 21/4302 (2013.01) [H04L 65/70 (2022.05); H04N 21/234 (2013.01); H04N 21/2335 (2013.01); H04N 21/44209 (2013.01)] | 16 Claims |
1. An electronic device comprising:
at least one auxiliary processor; and
a main processor operably connected to the at least one auxiliary processor,
wherein the main processor is configured to:
obtain moving image data;
separate the moving image data into image data including plural consecutive image frames, first audio data including plural consecutive audio frames, and plural timestamps corresponding respectively to the plural consecutive audio frames;
generate second audio data using the first audio data by adding header data to each of the plural audio frames;
transmit the second audio data to the at least one auxiliary processor;
generate, based on first time information successively received from the at least one auxiliary processor, second time information; and
play back the image data based on the second time information,
wherein the at least one auxiliary processor is configured to:
play back an audio signal based on the received second audio data; and
generate the first time information about a playback time of the audio signal based on the header data,
wherein the main processor is further configured to:
calculate a difference value between a first timestamp corresponding to a first audio frame and a second timestamp corresponding to a second audio frame immediately following the first audio frame among the plural timestamps;
identify that a time jump has occurred based on the difference value being greater than a time jump threshold; and
change the second time information based on the second timestamp based on identifying that the time jump has occurred.
|