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.

Steuerung des Windows Media Players mit JavaScript

Empfohlene Antworten

Veröffentlicht

Hallo zusammen,

ich möchte gern ein im

<object></object>
Tag eingebettetes Videofile per JavaScript steuern. Das ganze setzt halt auf ActiveX auf. Ich hab auch schon heraus bekommen, den Player per JS zu starten, stoppen und zu pausieren. Doch etwas viel wichtigeres muss ich noch machen. Und zwar will ich eine Art sichtbaren Bereich des Videos definieren. Hier mal ein Beispiel: Das Video dauert 5 min. Ich möchte dem Anwender jetzt aber nur Minute 1 bis Minute 2 zur Verfügung stellen. Es gibt zwar die Parameter
selectionStart
und
selectionEnd

, doch leider konnte ich damit keine Erfolge erzielen.

Kann mir jemand weiterhelfen? So langsam verzweifel ich mehr und mehr... :(

Danke für eure Hilfe,

Christian

naja im endeffekt müsste es so ausschauen

function mp_start(n) {

   if (mp_nn()) {

      this.obj.SetSelectionStart(n);

   } else if (mp_ie()) {

      this.obj.SelectionStart = n;

   }

}

function mp_ende(n) {

   if (mp_nn()) {

      if (this.origEnde == 0) {

         this.origEnde = this.obj.GetSelectionEnd();

      }

      this.obj.SetSelectionEnd(n);

   } else if (mp_ie()) {

      if (this.origEnde == 0) {

         this.origEnde = this.obj.SelectionEnd;

      }

      this.obj.SelectionEnd = n;

   }

}

musst es allerding noch ein wenig anpassen aber die funktion müsste laufen

lg

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.