| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
The Vega Seek Bar Sample App demonstrates how to implement advanced seek bar functionality for TV apps with comprehensive examples and TV-optimized interactions.
Key features
Note: While this app contains recommendations, there are always different approaches to building components, screens, or using libraries. This guide serves as a starting point for what needs to be done, but we encourage you to explore and adopt best practices that suit your specific project requirements.
Before you launch the sample app, make sure that you have installed the Vega Developer Tools and NodeJS 18-20.
After you download the source code from GitHub, you can build the Vega Seek Bar Sample App from the command line to generate VPKG files. The VPKG files run on the Vega Virtual Device and Vega OS Fire TV Stick.
You can also use Vega Studio with Visual Studio Code to build the app.
At the command prompt, navigate to the Vega Seek Bar Sample App source code directory.
To install the app dependencies, run the following command.
npm install
To build the app to generate .vpkg files, run the following command.
npm run build:app
At the command prompt, in the build folder, verify that you generated the VPKG files for your device's architecture.
To start the Vega Virtual Device, at the command prompt, run the following command.
vega virtual-device start
Go to the directory where you placed the VPKG files.
To install and launch the app on the Vega Virtual Device, run the following command, depending on your device architecture.
On Mac M-series based devices.
vega run-app build/aarch64-release/vegaseekbarapp_aarch64.vpkg
On x86_64 based devices.
vega run-app build/x86_64-release/vegaseekbarapp_x86_64.vpkg
Turn on your Vega OS Fire TV Stick.
To install and launch the app on your Vega OS Fire TV Stick, run the following command.
vega run-app build/armv7-release/vegaseekbarapp_armv7.vpkg
The app includes comprehensive seek bar examples accessible from the home screen. Each example corresponds to a complete implementation in the src/screens folder, providing ready-to-use code snippets that you can integrate into your own apps.
Basic usage—Simple SeekBar with essential navigation and styling, demonstrating fundamental implementation with custom thumb icons and TV-optimized focus management.
Markers—SeekBar with custom tick marks and positioning, showing how to add visual markers and arrow indicators for precise positioning.
Break Markers & Segments—Advanced marker system with break points, segment coloring, and smooth animations for content with ad breaks or chapters.
Seeking Limits—SeekBar with restricted upper and lower limits to restrict user navigation within specific time ranges.
Long Press—Progressive speed acceleration on button hold using D-pad buttons with configurable acceleration intervals and multipliers.
Fast Forward / Rewind—Skip controls with visual feedback labels implementing fast forward and rewind functionality with speed indicators.
Thumbnail Images—Video preview images during seek interactions with custom labels and formatting for enhanced user experience.
Custom Disabling Configuration—Granular control over interaction types and states with selective enabling/disabling of controls based on focus state.
Live TV—Dynamic limits for live streaming content with real-time updates and live point indicators.
Advanced Usage—Comprehensive example showcasing all SeekBar features including thumbnails, markers, animations, and complete event handling.
If you're facing unexpected issues while trying to build and run the app (for example, the build is failing randomly, the app is not starting, the app is crashing randomly), try the following solutions:
To remove the node_modules folder, the package-lock.json file and other files related to your previous builds, run the following command.
npm run clean
To clear the cache while you are working in debug mode, run the following command.
npm run start -- --reset-cache
All screenshots, images, and icons in the ./docs/images/, ./src/assets/ directories were created internally by Amazon and are included under the same license as this project.
See LICENSE file.
Welcome to the first release of the Vega Seek Bar Sample App! This sample app provides you with everything needed to implement professional-grade seek bar functionality in Fire TV apps.
Core Features
Example Library
| Back | FazBrowse Home | New Git URL |