Giter VIP home page Giter VIP logo

video-player's People

Contributors

cwillems avatar dependabot-preview[bot] avatar hdinger avatar janrenz avatar jgraichen avatar malcm avatar mmkonrad avatar mrserth avatar richardebeling avatar sebastiankliem avatar soldag avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

video-player's Issues

Enhancement: Initial player loading info / state

Player loading takes some time in older browsers (firefox < 52, IE, depends on machine speed, up to 8 seconds). It would be nice to see a "video player loading..." text or perhaps loading poster image first with "Loading..." inside.

check if screen orientation in AnalyticsManager is correctly read on iOS devices

Safari on iOS may have another name than window.screen.orientation.type --> check
This is needed as every analytics event reads the screen orientation and the player may be unusable if this part causes JS errors on mobile Safari.
Also, _handleScreenOrientationChange()in AnalyticsManager may need to be refactored then.

MacOS Safari doest not support screen orientation, so it cannot be read or changes tracked

Poster image doesn't show / Controls with wrong color in MS Edge (latest)

When opening a page with the player in Microsoft Edge, the browser show the poster image for just moment - then it disappears and is replaced by black (see screenshot).

screenshot_edge_no_poster

Additionally, Edge displays (at least some of) the control icons in black instead of white - also visible on the screenshot above.

Analytics: Expose current slide number

The analytics events include the following slide data at the moment:

currentSlide: {
  startPosition: 17,
  thumbnail: "/files/c4dc3d0f-8454-4b45-a602-1c6b04653c44/thumbnails/2100?format=jpg"
}

But the most important information is missing: slide_number

Broken styles in Firefox/IE

This is caused because FF/IE do not fully support shadow doms. Thus the styling rules are not encapsulated.

One example is the time box:
bildschirmfoto_2017-08-22_um_00 45 34

Handle incomplete Stream Configs

Sometimes we have HD Stream available only for one of the two videos. The player should be able to handle this:

[{\"hd\":null,\"sd\":\"https://player.vimeo.com/external/241185268.sd.mp4?s=49c371dd04cac9471ab45be9c564bbc37eb06af8\\u0026profile_id=165\\u0026oauth2_token_id=60919992\",\"poster\":\"https://i.vimeocdn.com/video/664695340_1920x1080.jpg?r=pad\"},{\"hd\":\"https://player.vimeo.com/external/241185139.hd.mp4?s=b1104529713f67b201052969c803ce54a9d3d110\\u0026profile_id=174\\u0026oauth2_token_id=60919992\",\"sd\":\"https://player.vimeo.com/external/241185139.sd.mp4?s=ac2fbafe6bc7f8d1f783a124f7e06d6ce894fffe\\u0026profile_id=165\\u0026oauth2_token_id=60919992\",\"poster\":\"https://i.vimeocdn.com/video/664695143_1920x1080.jpg?r=pad\",\"muted\":true}]

Show controlbar over the video

When entering the video with the mouse the controlbar should be visible (maybe semi transparent). It should be overlaying the video at the bottom. When leaving the controlbar should vanish.

Fix screen orientation in analytics-manager

The screen orientation property is not available for IE 11 on Windows 7 and older versions of Edge, which breaks the player. Implement feature detection or handle the property for those browser in a suitable way.

For now, a hotfix has been applied to bypass the issue.

Migrate away from bower

Bower is dying[1][2][3] (the latest blog entry is more than half a year old and does not discuss new bower features, whereas the latest feature-related blog entry is more than a year old). When using bower, I get the following message about it being deprecated:

npm WARN deprecated [email protected]: ..psst! While Bower is maintained, we recommend yarn and webpack for new front-end projects! Please read our blog for more.

We should explore alternatives for using bower like the ones mentioned in the message above.

Caption won't disappear after end time of cue has passed

When i play a video with caption, and the last caption ends at e.g. 00:00:30 while the video is longer, the caption won't disappear after 30 secs but last until the video ends.

I assume that this also happens, if you have a break between two captions, e.g.

1
00:00:00 --> 00:00:10
Foo

2
00:00:20 --> 00:00:30
Bar

"Foo" will remain visible until "Bar" starts at 20 secs.

Player disfunctional in Opera Browser

In the current and previous version of Opera (Windows and OS X), the player doesn't work at all (not rendered).

Console shows a JavaScript errror:

Uncaught TypeError: Failed to construct 'HTMLElement': 
Please use the 'new' operator, this DOM object constructor cannot be called as a function.

Include couch mode

Couch mode is a feature of tele-task.de. It should be included within this project, too.

videoPreload:false not working with HLS

HLS Streams always gets preloaded, maybe implement a state that only shows the poster and [implements the player / loads the video] only if play/player clicked, even with HLS.

Bounding box of slider arrows should also act as slider button

Currently, the clickable slider area for dual stream consists of the two seperate arrow shapes and the video divider line. This is not very user friendly. I would excpect the bounding box of both slider arrows (combined!) to act as clickable slider area (see drawing).

clickable_slider_area

Refactor resizer control

At the moment the resize control is implemented via Drag'n'Drop. This causes some unwanted side effects like a ghost image and many special rules for certain browsers.
Because of that it should be rewritten with native events like mousemove, mouseenter and mouseleave.

Semantics of fallback switch

When i watch a video with dual stream, and have a single stream fallback available, the button shows the icon for dual stream while being in dual stream mode (and the single stream icon when in single stream mode).
screenshot_dual_stream
I would expect the button to show, what it will do if i click it... @jprberlin your opinion?

Update repo name to video-player

In order to comply with the polymer specification and thus allow publishing a live demo to GitHub pages, the name of this repository needs to be updated to match the custom elements name.

Therefore, I request to change the repo name to openHPI/video-player. I will take care of the required name changes in the code (such as package.json with the corresponding links, etc.).

Afterwards, we might publish an interactive demo, such as I prepared with my fork:
https://mrserth.github.io/video-player/

Video-player does not collapse the space for interactive subtitles when they are disabled

Once I enable interactive subtitles, the video player keeps to reserve the space for them.
For all videos, if they have subtitles or not. The behaviour also does not change when the interactive subtitles are turned off again.
Browsers: Definitely Safari, maybe others as well.
Steps to reproduce the behaviour:

  1. go to a video in e.g. the imdb2017 openHPI course and show interactive subtitles
  2. go to a video in e.g. the linux2018 openHPI course => where otherwise the interactive subtitles would be, there is a big black "hole"
  3. go back to the imdb2017 video and hide the interactive subtitles
  4. go back to the linux2018 video => the hole is still there

Chrome/Mac: dragging slider arrows shows (+) mouse tip

Currently, when dragging one of the slider arrows to change the video ratio in dual stream mode, the browser shows a (+) at the mouse pointer (like when copying files), as if i was about to drag the arrow image out of the browser window (e.g. to drop it on the desktop).

This applies at least to Chrome (latest) on Mac OS X (latest).

Change State from Outside

It would be nice if we could manipulate the video player state from outside, either by an api or events. There is research use case relying on it. ;)

Actions: play, pause, seek, subtitles, transcript, speed, quality, resizer, stream-layout etc.

Allow indicating auto-generated subtitles

Auto-generated (e.g. translated) subtitles should be indicated as such in the language dropdowns. Default indicator could be an asterisk (e.g zh*), overwriting the auto-subtitle style via CSS should be possible.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.