CustomPC.tech

๐ŸŽต YouTube Notification System

What Happens When You Get a Message

When a customer sends you a message in admin-chats.html:

  1. ๐Ÿ”Š BEEP! - Loud alert sound plays (2 seconds)
  2. ๐Ÿ’ป Browser Notification - Desktop popup appears
  3. ๐ŸŽต NOISESTORM STARTS! - YouTube player appears and plays music

๐ŸŽต YouTube Music Details

Song: Noisestorm - Crab Rave Start Time: 1 minute (60 seconds into the song) Looping: YES - plays continuously until you stop it Volume: Maximum (100%) Auto-play: Starts 1 second after the beep sound


๐ŸŽฎ How to Control It

Stop the Music

Click the ๐Ÿ”‡ Stop Music button in the floating player

Player Location

What Happens When You Stop


๐Ÿ”„ When It Plays

Always Plays For:

Never Plays For:


๐ŸŽจ Visual Design

The YouTube player appears as a floating box with:


๐Ÿงช Testing

Test the Notification

  1. Click ๐Ÿ”” Test Sound button in admin-chats.html
  2. Youโ€™ll hear the beep
  3. YouTube player should appear after 1 second
  4. Noisestorm starts playing from 1:00
  5. Music loops continuously

Test the Stop Button

  1. Wait for notification to trigger
  2. Click ๐Ÿ”‡ Stop Music button
  3. Music stops
  4. Player disappears

๐Ÿ”ง Technical Details

YouTube Video ID

LDU_Txk06tM (Noisestorm - Crab Rave)

Player Settings

{
    autoplay: 1,
    start: 60,        // Start at 1 minute
    loop: 1,          // Enable looping
    playlist: 'LDU_Txk06tM', // Required for loop
    controls: 1,      // Show controls
    modestbranding: 1 // Minimal YouTube branding
}

Volume

Looping Logic


๐ŸŽฏ Why This Works

Impossible to Miss

Not Annoying

Professional


๐Ÿ†˜ Troubleshooting

Music Doesnโ€™t Play

Problem: YouTube player doesnโ€™t appear

Solutions:

  1. Check browser allows autoplay
  2. Click anywhere on page first
  3. Check YouTube isnโ€™t blocked
  4. Try the test button

Music Wonโ€™t Stop

Problem: Stop button doesnโ€™t work

Solutions:

  1. Refresh the page
  2. Click stop button again
  3. Pause video manually in player
  4. Close the browser tab

Wrong Song Playing

Problem: Different video plays

Solution:


๐ŸŽต Change the Song (Optional)

Want a different song? Edit admin-chats.html:

  1. Find: videoId: 'LDU_Txk06tM'
  2. Replace with your YouTube video ID
  3. Update playlist: to match
  4. Adjust start: time if needed

Example for different song:

videoId: 'YOUR_VIDEO_ID',
start: 30,  // Start at 30 seconds
playlist: 'YOUR_VIDEO_ID'

โœ… Summary

What You Get:

When It Plays:

How to Stop:


Youโ€™ll never miss a customer message with Noisestorm blasting! ๐ŸŽ‰๐Ÿฆ€