Skip to content

Latest commit

 

History

History
86 lines (52 loc) · 2.24 KB

CHANGELOG..md

File metadata and controls

86 lines (52 loc) · 2.24 KB

3.0.0

  • Upgrade Angular version: upgrade angular version to v8.

2.1.1

Bug Fix

  • remove height 0 with init: fix problem with itit height and width.

2.1.0

Feature

  • Add [videoUrl]: can set url with youtube url that is similar with [videoId] can set string or string[], and can change video with this [input];
  • Server side render support: Now when support server side render with player, and we can set option with thumbnail by below options.
type THUMBNAIL_TYPE =
  | '0.jpg'
  | '1.jpg'
  | '2.jpg'
  | '3.jpg'
  | 'default.jpg'
  | 'hqdefault.jpg'
  | 'mqdefault.jpg'
  | 'sddefault.jpg'
  | 'maxresdefault.jpg';

Bug Fix

  • Resize problem with non container init height: fix problem with resize when resize occur and the height out of bound problem.

Know Problem

  • Server side render: When set container with width:100% and has height, because server doesn't know the 100% acturl is what, so we only can use the height to caculate the width, but when the ration * height is more than width, the init view will see the error init view size.

2.0.0

Feature

  • Add [videoId]: add videoId to set player video with string or string[], and can change video with this [input];
  • Implement all youtube api options: Now when children elements length is equal zero, stop drag event.
  • Optimizate with event: Bind youtube api event only when element output event has actual binding with method.

Break Change

  • NgxY2PlayerOptions: remove videoId, using [input] [vidoeId].

1.4.1

  • Change peerDependencies to more than 6.0.0: Change peerDependencies to more than 6.0.0

1.4.0

Refactory Project

  • refactory code with rxjs and more maintainable

1.3.0

Change Resize detect with resize-observer-polyfill

  • Change Resize detect with [resize-observer-polyfill]
  • Fix Resize problem with window.
  • Add Example with custom player.

1.2.0

Change package tool to NgPackgr

  • Using ng g lib to generate lib
  • Upgrade to Angular 6+ and Rxjs6+

1.1.0

Auto resize with container

  • Make player can resize with conatiner

1.0.0

First Release

  • An youtube player for Angular with YT API