Need Help With Video Extension

I took a look at your project and the device log shows:

default 08:34:35.551800+0200 THEETHERS DEBUG:SCRIPT: videoplayer.VIDEO_EVENT_FINISHED
default 08:34:35.552160+0200 THEETHERS DEBUG:SCRIPT: Ending Video
default 08:34:35.552485+0200 THEETHERS ERROR:GAMESYS: Collection proxy already loaded: ‘/mainmenu/mainmenu.collectionc’ Message ‘load’ sent from loader:/go#loader to loader:/go#mainmenu.
  1. In your loader.script you call load_menu() from init() which loads mainmenu.collection
  2. In your mainmenu.collection you start playing a video
  3. When the video ends you send msg.post("loader:/go#loader", "load_menu")
  4. You loader.script will try to load the menu again, but it is already loaded and you get error above.

There is also a problem in your video_end() function because you never destroy the video:

Use self.video instead of video

3 Likes