Comments (9)
Proposed API extension:
interface TimelineMarker {
/**
* Optional CSS classes that are applied to the marker and can be used to differentiate
* different types of markers by their style (e.g. different color of chapter markers and
* ad break markers).
* The CSS classes are also propagated to a connected `SeekBarLabel`.
*
* Multiple classes can be added to allow grouping of markers into types (e.g. chapter markers,
* ad break markers) by a shared class and still identify and style each marker with distinct
* classes (e.g. `['marker-type-chapter', 'chapter-number-1']`).
*/
cssClasses?: string[];
/**
* Optional duration that makes the marker mark an interval instead of a single moment
* on the `SeekBar` timeline.
*/
duration?: number;
}
class UIManager {
/**
* Returns the list of all added markers in undefined order.
*/
getTimelineMarkers(): TimelineMarker[];
/**
* Adds a marker to the timeline. Does not check for duplicates/overlaps at the `time`.
*/
addTimelineMarker(timelineMarker: TimelineMarker): void;
/**
* Removes a marker from the timeline (by reference) and returns `true` if the marker has
* been part of the timeline and successfully removed, or `false` if the marker could not
* be found and thus not removed.
*/
removeTimelineMarker(timelineMarker: TimelineMarker): boolean;
}
from bitmovin-player-ui.
Open questions:
- Do we want to support these markers on live streams as well? (the markers would have to be animated and move across the timeline as the playhead progresses/changes)
- Do we want to allow customization of the
SeekBarLabel
? (this label currently displays the time, an optional title text, and a thumbnail if available)- Deactivate the label per marker?
- Allow a custom image instead of the thumbnail?
- Allow custom content instead of the default content?
from bitmovin-player-ui.
Notes from architectural meeting 2018-06-19
- We don't support markers on live streams right now
- Add
cssClasses
property toTimelineMarker
, the same classes would be propagated to the label - A
content()
callback which returns a DOM element could be added in the future
from bitmovin-player-ui.
API extension updated: #103 (comment)
from bitmovin-player-ui.
Renamed method names to include Timeline
for more consistent naming that matches the object type's name, e.g. getMarkers
-> getTimelineMarkers
.
from bitmovin-player-ui.
Released in 2.16.0
from bitmovin-player-ui.
Just a minor issue; is there any place where these API calls are documented? I tried to use the search functionality for version 7 and version 8, but no search results appeared. It shouldn’t be too difficult to figure it out from the code, but I was about to open an issue as I didn’t think this functionality was implemented.
from bitmovin-player-ui.
You were searching the player API docs which only contains player API, no UI API. The main documentation of the UI is this repository with the readme, changelog, source code and issues.
from bitmovin-player-ui.
Ah, okay. I’ve had a bit of a struggle distinguishing the boundaries of the two, but I think I’m starting to get it.
from bitmovin-player-ui.
Related Issues (20)
- Chromecast cookies HOT 1
- Settings Speed UI css
- seekbar on safari in livestream is visible
- SOURCE_HLS_STREAM_ERROR with Safari Native Player HOT 1
- How to make autoplay keep fullscreen mode?
- npm ERR! Build failed with error code: 1 while running npm install HOT 2
- Full screen button on player for Android App
- Bitmovin encoding distorts colors HOT 1
- Livestream stutters at higher playback speed HOT 1
- Overlapping Subtitle Queues break Subtitles in Safari HOT 1
- getMaxTimeShift value is negative non-zero for Safari HLS live streams HOT 1
- Feature Request: Use Document Picture-in-Picture Web API HOT 4
- pausedTimeshiftUpdater is not cleared HOT 2
- Accessing UIManager when replacing the built-in UI through location HOT 3
- I want to update the version of player HOT 1
- bleacherreport.com - impossible to go to exit fullscreen HOT 9
- when the UI autohides with the SettingsPanel open, one touch is need to make the visible SettingsPanel interactive again HOT 2
- seekbar markers overflowing player in some UI configurations HOT 3
- overlapping issue with seekbar thumbnails HOT 1
- error ReferenceError: self is not defined HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitmovin-player-ui.