Question
We're experiencing a critical issue with our web application running on Samsung Tizen TVs (2015 and 2016 models). The problem occurs under the following circumstances:
- The app is running normally
- The TV is turned off and then back on
- When reopening the app (which maintains its previous state through the multitasking feature)
After this sequence:
- All animations using VelocityJS stop working
- Menus become overlapped and unusable
- CSS animations continue to work normally
Important observations:
- The issue only occurs after TV power cycling, not when switching between apps
- The visibilitychange event handler is being used for multitasking management
- The same event handler logs "HIDE" when document.hidden is true and "RESTORE" when false
- Both power cycling and app switching trigger the same visibilitychange events
We urgently need assistance with this critical functionality issue.
Answer
Problem Understanding
The issue appears to be specific to VelocityJS animations after TV power cycles, while CSS animations remain unaffected. The problem suggests a potential memory management or initialization issue with VelocityJS when the TV hardware is power cycled.
Solution Methods
-
Redirect to Samsung TV Forum: Since this is a TV-specific issue, it's recommended to seek help on the Samsung TV Developer Forum where experts on TV-specific implementations can assist.
-
Potential Workarounds:
- Consider reinitializing VelocityJS when the app regains visibility
- Implement a manual refresh of animation elements after power cycle events
- Explore using CSS animations as an alternative where possible
-
Debugging Steps:
- Add detailed logging to track VelocityJS initialization and execution
- Monitor memory usage before and after power cycles
- Test with different versions of VelocityJS
Additional Tips
- When posting on the Samsung TV Forum, include:
- Detailed reproduction steps
- Version information for both Tizen TV and VelocityJS
- Any error messages or console outputs
- Sample code demonstrating the issue