Provide `is_playing` property
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 81
- Forks
- 17
- Ø Merge
- 7 T. 1 Std.
- Gemergte PRs (30 T.)
- 2
Beschreibung
Currently there is no obvious way to determine within a callback, if the video is currently playing or not.
The existing playing property is not synchronized with the actual playback of the video as can be seen on the example page https://dash.plotly.com/dash-player
Specificall, the video can be started and stopped when clicking the checkbox but when starting the video playback with the video, the property is not changed.
This is not due to the specific example as a modficiation with printing the current state of the playing variable e.g.
@app.callback(
Output("current-time-div", "children"),
Input("player", "currentTime"),
State("player", "playing"),
)
def display_currentTime(currentTime, playing):
print(playing)
return f"Current Time: {currentTime}"
shows: The value of playing can be False while the video is in fact playing by clicking on the play button within the video.
It would be great to either have the playing property synchronized with the actual video playback or provide a new isPlaying property that reflects the actual video playing state.
The same is true for the muted property (and possibly others).
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit der Dash Player-Beispielseite und dem Callback, der die aktuellenTime- und playing-Eigenschaften des Players verwendet. Verfolge, wie der Wiedergabestatus für Callbacks verfügbar gemacht wird, und überprüfe anschließend, ob die gewählte Zustandsdarstellung Änderungen durch den Play-Button widerspiegelt, und ermittle, ob muted dieselbe Behandlung benötigt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript, python, react
- Bereich
- frontend
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100