Patent ID: 11968246
Assignee: HANGZHOU HIKVISION DIGITAL TECHNOLOGY CO., LTD.
Field: Audio-visual technology (Electrical engineering)
Classification: CPC H | IPC H

Claim 0:
1. A method of determining a playback mode, being applied to an electronic device and comprising:
obtaining a streaming media data packet; wherein the streaming media data packet comprises an encoding format and a streaming media type of streaming media data; the streaming media type comprises at least one of a video media type or an audio video media type; and
determining, according to the encoding format and the streaming media type of the streaming media data, a plugin-free playback mode for playing back the streaming media data;
wherein the streaming media data packet is a data packet received by the electronic device after the electronic device successfully establishes a connection with a service end;
after determining the plugin-free playback mode for playing back the streaming media data, the method further comprises:
recording a correspondence between a connection identifier of the connection and the plugin-free playback mode;
in response to receiving a streaming media data packet subsequent to the data packet via the connection, determining the plugin-free playback mode corresponding to the connection according to the correspondence; and
playing back the streaming media data packet subsequent to the data packet based on the plugin-free playback mode;

wherein, determining, according to the encoding format and the streaming media type of the streaming media data, the plugin-free playback mode for playing back the streaming media data comprises:
in response to determining that the encoding format of the streaming media data is a first encoding format, determining a first playback mode matching the first encoding format as the plugin-free playback mode; and
in response to determining that the encoding format of the streaming media data is a second encoding format, determining the plugin-free playback mode according to the streaming media type.