This app originated from a personal need for a quicker, more reliable method to share URLs from any device directly to a smart TV, bypassing the often slow and cumbersome manufacturer's apps. Designed with simplicity and efficiency in mind, it enables instant sharing of web content to smart TVs (or any device capable of setting a homepage or using bookmarks) without the hassle of dealing with a mobile app's clunky interface and unreliable keyboard input.
At its core, the app allows users to instantly share any URL to their smart TV. The TV's web browser is set to open the app's URL as its homepage, which then redirects to the most recently submitted URL. This setup streamlines the process of viewing web content on a larger screen, making it nearly instantaneous to share from phone or computer to TV.
You can view a demo of the app (latest release version) here:
- UI: https://dimak.pl/demos/tvshare/ui/
- Redirection link: https://dimak.pl/demos/tvshare/
- Quick Sharing to TV: Easily share a cooking recipe, a YouTube video, or a news article from your phone or laptop directly to your TV.
- Simplifying Presentations: Share a presentation or document URL for viewing on a conference room's smart display without needing cables or casting devices.
- Educational Content: Teachers can quickly share educational resources or websites with students in a classroom equipped with a smart TV.
Set the homepage of your smart TV's web browser to the URL of this app. Alternatively, bookmark the URL for easy access when you'd like to be redirected to the saved link.
- Use the JavaScript bookmarklet provided within the app's UI on your phone or computer to send the current page's URL directly to your smart TV.
- For more integrated experiences, Chrome browser and iOS extensions (not included in this repo) can also be used.
- Manually add a URL via the app's UI or send a URL to the app's endpoint (index.php) using a POST or GET request (with the "save" parameter containing the URL-encoded URL).
- The app allows adjusting the timeout for how long a shared URL is considered 'active' before defaulting to a preset URL.
- Users can clear the history, refresh the list of shared URLs, and adjust the number of URLs stored in history (default is 10 URLs) through the app's responsive UI.
Requirements: A web server with PHP support (tested on PHP 7.4 and newer).
- Upload the files to your server.
- Rename
config.example.jstoconfig.jsandconfig.example.phptoconfig.php(if deploying from source code, not a release package) - Update
config.phpandconfig.jswith your actual configuration values. - Ensure the
url_history.jsonfile is writable by the server (adjust file permissions as needed) otherwise PHP won't be able to save new URLs.
Unlike traditional methods that often involve cumbersome typing and app navigation, this solution provides a seamless, efficient way to share content between devices and your smart TV. It's particularly useful for users looking to enhance their home entertainment system's accessibility or simplify the process of sharing content in a professional setting.
The app's minimalist design, built with HTML, JS, CSS, and PHP, ensures compatibility across a wide range of devices while offering both light and dark mode support for an optimal viewing experience regardless of lighting conditions.
Bootstrap - The web framework used for UI components
Contributions are welcome! Feel free to fork the repository, make improvements, and submit pull requests.
This project is open-sourced under the MIT License. See the LICENSE file for more details.