Method for determining the lifetime of a software application associated with audio-video data, wherein data of the software application and said audio-video data are stored in a first storage medium, the audio-video data comprising a plurality of titles, the method comprising the steps of - detecting, by means for detecting selection of a title, selection of a first title (Title#1-3) read from the first storage medium (Disc-B); - detecting on the first storage medium a first application (i-vi) associated with the first title, and an indication relating to the first application, wherein said indication defines a termination condition for the application and comprises two flags that each can assume at least two different values; - playing back the first title and executing the first application, wherein a first medium identifier for identifying the first storage medium is received from the first application; - upon termination of the first title, terminating the first application if the indication indicates that the first application (i,ii) is bound to title, and otherwise continuing the first application (iii-vi); - after termination of the first title, detecting selection of a second title read from the first storage medium; - playing back the second title, and executing the first application if said indication relating to the first application indicates that the application may continue with the second title, wherein otherwise the first application is stopped before playing back the second title; - upon ejection of the first storage medium, if the first application is executing, terminating the first application if the indication indicates that the first application is bound to storage medium (iii,iv,v), and otherwise continuing the first application (vi); - detecting insertion of a second storage medium, wherein the first application is executed if said indication indicates that the first application is not bound to storage medium; - retrieving data from the second storage medium, wherein the data contains a second medium identifier for identifying the second storage medium; and - if the first application is executing, continuing the first application if the retrieved data from the second storage medium indicates that the first application may continue, wherein the retrieved data indicates that the first application may continue if the second medium identifier matches the first medium identifier, and otherwise displaying a message to confirm a user's intention to insert the second storage medium. - detecting, by means for detecting selection of a title, selection of a first title (Title#1-3) read from the first storage medium (Disc-B); - detecting on the first storage medium a first application (i-vi) associated with the first title, and an indication relating to the first application, wherein said indication defines a termination condition for the application and comprises two flags that each can assume at least two different values; - playing back the first title and executing the first application, wherein a first medium identifier for identifying the first storage medium is received from the first application; - upon termination of the first title, terminating the first application if the indication indicates that the first application (i,ii) is bound to title, and otherwise continuing the first application (iii-vi); - after termination of the first title, detecting selection of a second title read from the first storage medium; - playing back the second title, and executing the first application if said indication relating to the first application indicates that the application may continue with the second title, wherein otherwise the first application is stopped before playing back the second title; - upon ejection of the first storage medium, if the first application is executing, terminating the first application if the indication indicates that the first application is bound to storage medium (iii,iv,v), and otherwise continuing the first application (vi); - detecting insertion of a second storage medium, wherein the first application is executed if said indication indicates that the first application is not bound to storage medium; - retrieving data from the second storage medium, wherein the data contains a second medium identifier for identifying the second storage medium; and - if the first application is executing, continuing the first application if the retrieved data from the second storage medium indicates that the first application may continue, wherein the retrieved data indicates that the first application may continue if the second medium identifier matches the first medium identifier, and otherwise displaying a message to confirm a user's intention to insert the second storage medium.