The invention relates to a method and
system for implementing playback of a panoramic video on a
mobile device. The method comprises the steps of after sensing that a user acquires a selected
video image by a trigger operation on a video application, creating a three-dimensional sphere in a virtual environment by using an
OpenGL ES (Open
Graphics Library for
Embedded System); placing a camera in the three-dimensional world inside the sphere; executing a video acquiring and converting step, i.e. reading the
video image at a preset speed, acquiring each frame of
video image and converting the video image into texture information; executing a texture
information mapping step, i.e. mapping the texture information obtained by conversion into the sphere; executing a
view angle calculating step, i.e. according to a rotating angle and a camera
view angle of the three-dimensional sphere, carrying out
quaternion matrix calculation to obtain an actually displayed image matrix; and repeating the video acquiring and converting step, the texture
information mapping step and the
view angle calculating step, and acquiring a panoramic video image. Therefore, 360-degree panoramic video playback on the
mobile device is implemented, and a video viewing effect is improved.