Hi!
I am trying to create a BrightScript that recognises automatically when a USB memory stick is attached or deattached from the player and then plays videos from the root folder of the USB stick.
I am using roStorageHotplug for this. It is connected to roMessagePort and I am waiting for the messages. However, the messages are never sent because the unmounting fails as the system is reading a video from the USB stick. Is there any way around this?
I managed to get it trigger one time randomly. After that when reattaching a usb stick, the program could not find the new files as in the mounting phase the new usb was assigned to storage/usb2 as according to it storage/usb1 was already existing. This is another problem I need to solve somehow?
Any ideas of either of these points? Or am I thinking about this in a too complicated way?
Best, Miro