Patent ID: 8015548

Claim:
A method for obtaining context of corresponding Xlet while playing Blue-ray Disc Java (BD-J) title comprises the steps of: when loading all classes of an application, namely Xlet, that the current playing BD-J title needs into a cache of BD-J, setting up source file attribute of each class by adding an Xlet context identification (ID) as an unique code of the class; when searching for Xlet context, looking up a call stack to search for Xlet class of the current BD-J title; determining whether or not the Xlet class of the current BD-J title is obtained; when it is determined that the Xlet class of the current BD-J title is not obtained, calling stack information of a creator who creates a Thread and then looping back to look up the call stack to search for the Xlet class of the current BD-J title; and when it is determined that the Xlet class of the current BD-J title is obtained, obtaining the Xlet context ID according to the source file attribute and then acquiring the corresponding Xlet context through searching a context map by using the Xlet context ID.