Emby Server Setup Guide
EmbyTok provides a TikTok-style vertical video browsing experience for your Emby or Jellyfin media server. This guide walks you through the complete setup process.Prerequisites
- Emby or Jellyfin server running on your network
- Server URL and port (e.g.,
http://192.168.1.100:8096) - Valid user account with access to video libraries
- Server configured to allow CORS requests from your EmbyTok instance
EmbyTok uses the same authentication API for both Emby and Jellyfin servers. The steps in this guide apply to both platforms.
Step 1: Access the Login Page
Open EmbyTok
Navigate to your EmbyTok instance in a web browser. You’ll see the login screen with multiple server type options.
Step 2: Configure Server Connection
Enter Server Address
In the Server Address field, enter your Emby server URL:The URL will be automatically normalized and trailing slashes removed.
Enter Credentials
- Username: Your Emby username (required)
- Password: Your Emby password (optional for some setups)
Authentication Flow
EmbyTok uses the Emby authentication API to establish a secure connection. Here’s what happens behind the scenes:Authentication Request
When you click Connect, EmbyTok sends a POST request to:EmbyClient.ts:7-16:
Authentication Response
On success, the server returns authentication data that EmbyTok stores locally:localStorage for future sessions.
Step 3: Select a Library
After successful authentication, you’ll see your media libraries.View Available Libraries
EmbyTok fetches all available libraries using You’ll see libraries like “Movies”, “TV Shows”, “Home Videos”, etc.
EmbyClient.ts:48-55:Step 4: Browse Videos
Once you’ve selected a library, you can browse videos in multiple modes:Feed Types
Latest Videos (Default)- Sorted by date added (newest first)
- Fetches videos using the following parameters from
EmbyClient.ts:92-108:
- Shuffled playback for discovery
- Uses
SortBy: 'Random'parameter
- Shows videos you’ve liked
- Uses Emby playlists named
Tok-{LibraryName}to store favorites
Video Filtering
EmbyTok automatically filters videos by orientation fromEmbyClient.ts:57-72:
Step 5: Using Favorites
EmbyTok implements a favorites system using Emby playlists.Like a Video
Tap the heart icon while watching a video. The video is added to a playlist named
Tok-{LibraryName}.View Favorites
Switch to the Favorites feed type from the menu to see all your liked videos in reverse chronological order.
Playlist Management
The favorites system fromEmbyClient.ts:143-206 works as follows:
-
Automatic Playlist Creation: When you favorite your first video in a library, EmbyTok creates a playlist:
-
Adding Favorites:
-
Removing Favorites:
Favorites are stored on your Emby server as playlists, so they sync across all your devices using EmbyTok.
Video Playback
EmbyTok uses direct stream URLs for optimal performance:Thumbnails and Images
Video thumbnails are fetched fromEmbyClient.ts:137-140:
Troubleshooting
Connection Failed
Check server URL format
Check server URL format
Ensure your URL includes the protocol:
- ✅
http://192.168.1.100:8096 - ❌
192.168.1.100:8096
Verify CORS settings
Verify CORS settings
Add your EmbyTok domain to Emby’s CORS allowed origins:
- Open Emby Server Dashboard
- Navigate to Network settings
- Add your EmbyTok URL to allowed origins
Test server accessibility
Test server accessibility
Open
http://your-server:8096/Users/AuthenticateByName in your browser. You should see a 405 Method Not Allowed error (expected for GET requests), confirming the endpoint is accessible.No Videos Appear
- Check video dimensions: EmbyTok filters videos by aspect ratio. In vertical mode, only videos with height ≥ width × 0.8 are shown
- Verify library contents: Ensure your selected library contains videos, not just TV shows or movies without video files
- Check user permissions: Verify your user account has access to the selected library
Favorites Not Saving
- Check user permissions: Your account needs permission to create playlists
- Verify playlist creation: Check your Emby server for playlists named
Tok-{LibraryName} - Clear browser storage: Try clearing
localStorageand re-authenticating
Next Steps
- Learn about video browsing features including orientation filters
- Set up network deployment to access EmbyTok from multiple devices
- Explore media library management for organizing your content