Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 1.32 KB

UPGRADE.md

File metadata and controls

35 lines (23 loc) · 1.32 KB

From 1.0 to 2.0

  • V2 Introduced final keywords for classes that are not covered by semver guarantee. Users should not be impacted except if you inherit those classes. An upgrade to ^2.0 should be no-pain.

From 0.9 to 1.0

  • VideoInfo::getVideoBitRate(): int -> Use VideoInfo::getVideoStreams()->getFirst()->getBitRate() instead.
  • VideoInfo::getAudioBitRate(): int -> Use VideoInfo::getAudioStreams()->getFirst()->getBitRate() instead.
  • VideoInfo::getVideoCodecName(): ?string -> Use VideoInfo::getVideoStreams()->getFirst()->getCodecName() instead.
  • VideoInfo::getAudioCodecName(): ?string -> Use VideoInfo::getAudioStreams()->getFirst()->getCodecName() instead.

From 0.8 to 0.9

  • VideoInfoInterface::getBitrate() renamed to VideoInfoInterface::getVideoBitrate()

From 0.7 to 0.8

  • Soluble\MediaTools\Video\Exception\UnsetParamReaderException renamed into UnsetParamException.
  • Soluble\MediaTools\Video\Exception\InvalidReaderParamException renamed into InvalidParamException.

From <= 0.6 to 0.7

A lot of renaming after code review.

Search and replace

  • ConversionService to VideoConverter.
  • ConversionParams to VideoConvertParams.
  • InfoService to VideoInfoReader.
  • Info to VideoInfo.
  • ThumbService to VideoThumbGenerator.
  • DetectionService to VideoAnalyzer.