Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Music-Player

Empfohlene Antworten

Veröffentlicht

Hallo!

Gibt es eine Möglichkeit einen Music-Player zu scripten, so dass der besucher z.b. die musik an/ausschalten kann, und zwischn verschiedenen Titeln springen kann? Hab schon in Google gesucht, aber nur Flash-Lösungen gefunden. Geht das auch mit Java-Script oder PHP ?

hmm...

du kannst mit php machen:

es gibt ja den html befehl für Background musik, frag mich aber bitte nich wie der genau lautet (selfhtml.teamone.de)

mit php kannst du dann in den Befehl den track "einbauen".

Pseudocode:


Array: Tracks{

Die perfekte Welle.mp3

Grind gehört zu Core.mp3

Goatcrist.mp3

schnappi.mp3

}


counter = 0

play = 1;


wenn play = 1 dann Ausgabe: "bgsound" & array[counter]

Je nachdem welcher button gedrückt wird passiert:

// next track

counter +1

// prev track

counter -1

// play

play = 1

// stop

play = 0

dann musst du die seite neu laden, damit der code übernommen wird.

Ggf. musst du "counter" und "play" über n formular mit Submit an sich selbst übergeben... bei genauerem denken wäre es so sogar einfacher ;)

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.