Question
I'm developing a Tizen application for Smart TV that will:
- Display HTML pages generated on my server
- Retrieve and show media content (images and videos)
- Include these key features:
- Periodically check for content updates (show cached content when offline)
- Cache videos, images, and HTML pages in TV storage
- Execute JavaScript from server-side HTML pages (for animations)
- Save cached versions of pages for viewing previous states
My questions:
- Should I use Native (C++) or Web (HTML/JS/CSS) application type? Considering we might add more interactive functionality later, are there any API restrictions for Web apps compared to Native?
- Any advice or best practices for implementing this type of application?
Answer
Problem Understanding
The developer needs to create a Tizen TV application that primarily displays server-generated HTML content with caching capabilities, while considering future interactive features.
Solution Methods
-
Application Type Recommendation:
- For this use case, a Web application is sufficient and recommended
- Tizen TV primarily uses Web technologies (HTML/JS/CSS) as its main development environment
- Native Client (NaCl) exists but is different from true native development
- Web applications have full access to TV-specific APIs
-
Implementation Resources:
- Use the Tizen TV Web API references for detailed documentation
- Follow Tizen Web application development guides marked for TV
- Review Samsung Smart TV API references for additional functionality
-
Development Advice:
- Start with the Web application approach
- Implement proper caching mechanisms for offline functionality
- Test JavaScript execution carefully as it runs in a sandboxed environment
Additional Tips
- For specific implementation questions, consider posting on the Samsung TV Forum where experienced developers can share practical insights
- When adding interactive features later, ensure they comply with TV remote control navigation patterns