Multimedia presentation method, apparatus, readable media and electronic device
The present disclosure relates to a multimedia presentation method, apparatus, readable medium and electronic device. The method comprises: in response to a user's rotation operation on a terminal, obtaining a rotation parameter of the terminal, the terminal presenting first multimedia data through a current page; in response to determining that the terminal rotates to a predetermined direction according to the rotation parameter, obtaining second multimedia data corresponding to the first multimedia data; switching a current page of the terminal to a target page and presenting the second multimedia data through the target page. In this way, without a click operation, it is able to switch to the target page through the rotation operation of the user, and present the second multimedia data corresponding to the first multimedia data, which improves the convenience and interest of the user's operation, thereby improving the user experience.
1 . A multimedia presentation method, comprising:
in response to a user's rotation operation on a terminal, obtaining a rotation parameter of the terminal, the terminal presenting first multimedia data through a current page;
in response to determining that the terminal rotates to a predetermined direction according to the rotation parameter, obtaining second multimedia data corresponding to the first multimedia data; and
switching a current page of the terminal to a target page and presenting the second multimedia data through the target page, wherein the target page is different from the current page, and the second multimedia data is different from the first multimedia data,
wherein in response to the user's rotation operation on the terminal, obtaining the rotation parameter of the terminal comprises:
presenting a direction control through the current page, the direction control comprising a current direction of a terminal and the predetermined direction;
during a predetermined period of presenting the direction control, in response to the user's rotation operation on the terminal, detecting a current direction of the terminal through a direction detection apparatus; and
using the current direction as the rotation parameter,
wherein presenting the direction control through the current page comprises:
obtaining a presentation time of the first multimedia data on the current page; and
if the presentation time is greater than or equal to a target time threshold, presenting the direction control through the current page, and
wherein the direction control includes rotation indication identification, including an arrow pointing from the current direction to a predetermined direction.
2 . The method of claim 1 , wherein determining that the terminal rotates to the predetermined direction according to the rotation parameter comprises:
if the current direction is consistent with the predetermined direction, determining that the terminal rotates to the predetermined direction.
3 . The method of claim 1 , wherein the method further comprises:
presenting the presentation time through the current page.
4 . The method of claim 3 , wherein presenting the presentation time through the current page comprises:
presenting a timing control through the current page, the timing control being used to present presentation time of the first multimedia data.
5 . The method of claim 1 , wherein it is determined that the terminal rotates to the predetermined direction according to the rotation parameter, the method further comprising:
presenting predetermined notification information through the current page; the predetermined notification information comprising one or more of the following: a vibration notification, a sound notification and a light notification;
wherein switching a current page of the terminal to a target page and presenting the second multimedia data through the target page comprises:
after presenting the predetermined notification information, switching the current page of the terminal to the target page and presenting the second multimedia data through the target page.
6 . The method of claim 1 , wherein in response to the user's rotation operation on the terminal, obtaining the rotation parameter of the terminal, the terminal presenting first multimedia data through a current page comprises:
in response to the terminal presenting the first multimedia data through the current page, presenting target notification information through the current page, the target notification information being used to notify a user to perform a rotation operation on the terminal; and
in response to the user's rotation operation on the terminal, obtaining the rotation parameter of the terminal.
7 . The method of claim 1 , wherein the direction control comprises a rotation indication identification, the rotation indication identification being used to indicate a relative direction which the terminal needs to rotate to in order to rotate the terminal to the predetermined direction.
8 . A non-transitory computer-readable medium having a computer program stored thereon, wherein, in response to being executed by a processing apparatus, the program implements steps of a method comprising:
in response to a user's rotation operation on a terminal, obtaining a rotation parameter of the terminal, the terminal presenting first multimedia data through a current page;
in response to determining that the terminal rotates to a predetermined direction according to the rotation parameter, obtaining second multimedia data corresponding to the first multimedia data; and
switching a current page of the terminal to a target page and presenting the second multimedia data through the target page, wherein the target page is different from the current page, and the second multimedia data is different from the first multimedia data,
wherein in response to the user's rotation operation on the terminal, obtaining the rotation parameter of the terminal comprises:
presenting a direction control through the current page, the direction control comprising a current direction of a terminal and the predetermined direction;
during a predetermined period of presenting the direction control, in response to the user's rotation operation on the terminal, detecting a current direction of the terminal through a direction detection apparatus; and
using the current direction as the rotation parameter,
wherein presenting the direction control through the current page comprises:
obtaining a presentation time of the first multimedia data on the current page; and
if the presentation time is greater than or equal to a target time threshold, presenting the direction control through the current page, and
wherein the direction control includes rotation indication identification, including an arrow pointing from the current direction to a predetermined direction.
9 . The non-transitory computer-readable medium according to claim 8 , the method further comprising:
if the current direction is consistent with the predetermined direction, determining that the terminal rotates to the predetermined direction.
10 . The non-transitory computer-readable medium according to claim 8 , the method further comprising:
presenting the presentation time through the current page.
11 . The non-transitory computer-readable medium according to claim 8 , the method further comprising:
presenting a timing control through the current page, the timing control being used to present presentation time of the first multimedia data.
12 . The non-transitory computer-readable medium according to claim 8 , the method further comprising:
presenting predetermined notification information through the current page; the predetermined notification information comprising one or more of the following: a vibration notification, a sound notification and a light notification;
wherein switching a current page of the terminal to a target page and presenting the second multimedia data through the target page comprises:
after presenting the predetermined notification information, switching the current page of the terminal to the target page and presenting the second multimedia data through the target page.
13 . The non-transitory computer-readable medium according to claim 8 , the method further comprising:
in response to the terminal presenting the first multimedia data through the current page, presenting target notification information through the current page, the target notification information being used to notify a user to perform a rotation operation on the terminal; and
in response to the user's rotation operation on the terminal, obtaining the rotation parameter of the terminal.
14 . An electronic device, comprising:
a storage apparatus having a computer program stored thereon;
a processing apparatus, configured to execute the computer program in the storage apparatus to implement steps of a method comprising:
in response to a user's rotation operation on a terminal, obtaining a rotation parameter of the terminal, the terminal presenting first multimedia data through a current page;
in response to determining that the terminal rotates to a predetermined direction according to the rotation parameter, obtaining second multimedia data corresponding to the first multimedia data; and
switching a current page of the terminal to a target page and presenting the second multimedia data through the target page, wherein the target page is different from the current page, and the second multimedia data is different from the first multimedia data,
wherein in response to the user's rotation operation on the terminal, obtaining the rotation parameter of the terminal comprises:
presenting a direction control through the current page, the direction control comprising a current direction of a terminal and the predetermined direction;
during a predetermined period of presenting the direction control, in response to the user's rotation operation on the terminal, detecting a current direction of the terminal through a direction detection apparatus; and
using the current direction as the rotation parameter,
wherein presenting the direction control through the current page comprises:
obtaining a presentation time of the first multimedia data on the current page; and
if the presentation time is greater than or equal to a target time threshold, presenting the direction control through the current page, and
wherein the direction control includes rotation indication identification, including an arrow pointing from the current direction to a predetermined direction.