TapTo for Windows - How to launch media: Difference between revisions

From TapTo Wiki

Launch videos with Tapto (Windows)
 
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE:How to use TapTo to launch media files on Windows}}
{{DISPLAYTITLE:How to use TapTo to launch media files on Windows}}


== Start Videos with .bat files on Tapto Windows (Beta) with VLC Media Player. ==
== Start media files with TapTo on Windows ==
<nowiki>*</nowiki>''the app is currently in Beta and subject to change''


=== Requirements: ===
=== Requirements: ===
- Make sure you have VLC Media Player installed
# '''VLC Media Player for windows''' installed.
# '''TapTo for Windows''' installed.
# '''Video files''' stored in your desired location.
# '''Tapto.life app''' installed on iOS or Android.


- Tapto for windows installed
=== Notes: ===
 
* This tutorial is designed to launch a video using VLC Media Player. While other media players may work, they might require different commands.
- Video files in desired location
* Every video file requires its own .bat file. To keep things organized, consider placing your .bat files and corresponding videos in the same folder.
 
* If you move your video files after creating the .bat files, the .bat files will no longer work. Keep this in mind before proceeding.
- Tapto.life app installed on iOS or Android
 
==== Notes: ====
This tutorial is written to launch a video with VLC Media Player, other players might work too but may use a different command
 
Keep in mind that every video file will have its own .bat file so it’s recommended to organize them properly.
 
Moving your video files to a different location after creating the bat files will result in non-working bat files so keep this in mind before you make any .bat files.


== Tutorial: ==
== Tutorial: ==
Open notepad (or a similar text editor)
Copy the location of the VLC Media player executable ''(the default location on x64 windows systems is: C:\Program Files (x86)\VideoLAN\VLC)''
Paste the location to notepad and add vlc.exe at the end of the path, it should look similar to this:
'''C:\Program Files (x86)\VideoLAN\VLC\vlc.exe'''
Now add a “ to the beginning and the end of the path followed by the spacebar like this :
'''“C:\Program Files (x86)\VideoLAN\VLC\vlc.exe”'''
Copy and paste the location of your video file and add the filename (and its extension) and like before add the “ to the beginning and the end of the path.
your .bat file should now look similar to this:
'''"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" "E:\Videos\movie.mkv"'''
Now add a start command, fullscreen command and exit command to the paths like this:
'''start "" "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" "E:\Videos\movie.mkv" --fullscreen'''
'''exit'''
Now save the file you’ve created in notepad and change the extension to .bat
you should end up with something like this :
'''Movie.bat'''
Try starting your bat file to check if everything works as desired.


Please make sure it’s not Movie.bat.txt because that won’t work.
==== Step 1: Create a .bat File ====


# '''Open a text editor''' (like Notepad).
# '''Locate the VLC Media Player Executable''':
#* The default path on x64 Windows systems is: <code>C:\Program Files (x86)\VideoLAN\VLC</code>
#* Copy this path to Notepad and add <code>vlc.exe</code> at the end, so it looks like this: <code>C:\Program Files (x86)\VideoLAN\VLC\vlc.exe</code>
# '''Add Quotes to the Path''':
#* Place quotation marks (<code>"</code>) at the beginning and end of the path, then add a space afterward. It should look like this: <code>"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe"</code>
# '''Insert the Video File Path''':
#* Copy the location of your video file, including the file name and extension.
#* Place quotation marks (<code>"</code>) around the video file path. Your .bat file should now look like this: <code>"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" "E:\Videos\movie.mkv"</code>
# '''Add Additional Commands''':
#* To start VLC in fullscreen mode and close it automatically after playback, modify the command like this:  <code>start "" "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" "E:\Videos\movie.mkv" --fullscreen</code> <code>exit</code>
# '''Save the File''':
#* Save the file in Notepad with a <code>.bat</code> extension. For example: <code>Movie.bat</code>
#* Ensure the file isn’t saved as <code>Movie.bat.txt</code>, as this won’t work.


Before you can flash the path to the bat file to your nfc card we need to add the location of the bat file to the .ini file of tapto in order to allow tapto to launch this file.
==== Step 2: Configure TapTo to Launch the .bat File ====


Open the tapto.ini file and under '''[launchers]''' add allow_file = PATHTOBAT It should look similar to this:
# '''Open the TapTo Configuration File''':
#* Locate and open the <code>tapto.ini</code> file.
# '''Add the .bat File Path''':
#* Under the <code>[launchers]</code> section, add the following line: <code>allow_file = G:\Tapto\Movies\Movie.bat</code>
#* Replace the path with the location of your actual .bat file.


'''allow_file = G:\Tapto\Movies\Movie.bat'''
==== Step 3: Flash the Path to Your NFC Card ====


Now open your tapto.life app and flash the the path to your bat file as a text string:
# '''Open the Tapto.life App'''.
# '''Flash the Path''':
#* Flash the path to your .bat file as a text string. For example: <code>G:\Tapto\Movies\Movie.bat</code>


'''G:\Tapto\Movies\Movie.bat'''
Your NFC card is now configured to start your movie!


Your NFC card is now ready to start your movie !
{{DEFAULTSORT:How to use TapTo to launch media files on Windows}}

Latest revision as of 19:02, 28 August 2024


Start media files with TapTo on Windows

*the app is currently in Beta and subject to change

Requirements:

  1. VLC Media Player for windows installed.
  2. TapTo for Windows installed.
  3. Video files stored in your desired location.
  4. Tapto.life app installed on iOS or Android.

Notes:

  • This tutorial is designed to launch a video using VLC Media Player. While other media players may work, they might require different commands.
  • Every video file requires its own .bat file. To keep things organized, consider placing your .bat files and corresponding videos in the same folder.
  • If you move your video files after creating the .bat files, the .bat files will no longer work. Keep this in mind before proceeding.

Tutorial:

Step 1: Create a .bat File

  1. Open a text editor (like Notepad).
  2. Locate the VLC Media Player Executable:
    • The default path on x64 Windows systems is: C:\Program Files (x86)\VideoLAN\VLC
    • Copy this path to Notepad and add vlc.exe at the end, so it looks like this: C:\Program Files (x86)\VideoLAN\VLC\vlc.exe
  3. Add Quotes to the Path:
    • Place quotation marks (") at the beginning and end of the path, then add a space afterward. It should look like this: "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe"
  4. Insert the Video File Path:
    • Copy the location of your video file, including the file name and extension.
    • Place quotation marks (") around the video file path. Your .bat file should now look like this: "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" "E:\Videos\movie.mkv"
  5. Add Additional Commands:
    • To start VLC in fullscreen mode and close it automatically after playback, modify the command like this: start "" "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" "E:\Videos\movie.mkv" --fullscreen exit
  6. Save the File:
    • Save the file in Notepad with a .bat extension. For example: Movie.bat
    • Ensure the file isn’t saved as Movie.bat.txt, as this won’t work.

Step 2: Configure TapTo to Launch the .bat File

  1. Open the TapTo Configuration File:
    • Locate and open the tapto.ini file.
  2. Add the .bat File Path:
    • Under the [launchers] section, add the following line: allow_file = G:\Tapto\Movies\Movie.bat
    • Replace the path with the location of your actual .bat file.

Step 3: Flash the Path to Your NFC Card

  1. Open the Tapto.life App.
  2. Flash the Path:
    • Flash the path to your .bat file as a text string. For example: G:\Tapto\Movies\Movie.bat

Your NFC card is now configured to start your movie!