This invention provides a method, apparatus, and electronic device for proactive data push, applied in the field of media
data transmission technology. In response to a
client's media resource request, this invention generates a security
authorization token containing media data version information and sends it to the
client. During the connection
handshake phase, it receives and parses an early
handshake message carrying the
authorization token. After verifying the token's validity, it retrieves the corresponding first frame data from a local read-only cache based on the version information, encapsulates it into an application-layer
payload with an early data identifier, and proactively sends it to the
client via a streaming frame during a zero round-trip latency phase. This advances the media
data request process to the connection
handshake phase, eliminating at least one round-trip
delay, effectively improving the opening speed of the first frame of the media
stream, and optimizing the user experience.