videoplay 0.2.0
videoplay: ^0.2.0 copied to clipboard
Embed video players in your webpage, and control them in Dart.
Change History for videoplay.dart #
0.2.0 #
Overview Added HTML 5 video support and a common entry point for embedding a video. There was a major backwards compatibility change over the 0.1 line where the way YouTube videos are embedded has changed, though the changes needed to use the new architecture are fairly limited.
Details:
- The user has two ways to use the library, either directly referencing the video providers, or using the provider repository. The YouTube provider isn't imported by default anymore.
embedYouTubeVideoPlayeris no more. Users of the library must switch to either the provider depot, or the direct loading. The front page README.md explains how to do this. This is because of the move to a standardized approach to video provider setup.- Added centralized embedding.
- Added the
videoprovider.dartfile to contain classes and typedefs required to support a single embedding source.VideoPlayerProvider- providers have a singleton instance of this class that describes the provider. This allows for users of the library to make a query to see what video providers are supported on the browser.VideoProviderAttributes- created by the provider to allow custom extensions to the options the user can set.VideoProviderException- parent for the exceptions thrown by providers.- The typedef
EmbedVideoPlayerhas new arguments, and moved into thevideoprovider.dartfile. This isn't backwards incompatible, because this was only library visible.
- Added
embed.dartto be the central repository for video providers.embedVideo- embed a video into the page.getSupportedVideoProviders- find the providers that are registered.getVideoProviderByName- find providers by their String name.registerVideoProvider- (internal) add a provider to the registry.
- Changed the multiple-videos example to use the new centralized embedding infrastructure.
- Fixed up the documentation to reflect the new usage.
- Added the
- Added HTML 5 video support.
0.1.1 #
Overview Updates to the documentation and examples, along with a few bug fixes.
Details:
- Bug fixes:
- YouTube player does not shut down its event log on
destroy(). - YouTube player does not set
errorfield on error state. - Actually minified the swfobject.js file.
- YouTube player does not shut down its event log on
- Backwards incompatible change Changed the
errorfield on theVideoPlayerto now be 2 fields,errorTextanderrorCode, to match theVideoPlayerEventclass, and to start to allow some limited localization capabilities. - Markdown files created for documentation.
- Cleaned up the front page documentation.
- Split the examples into
video-selectandmultiple-videos, and made the examples easier to read and use. - Planning on adding HTML 5. A few parts of the examples and documentation have preparation for this, but support won't be added until at least version 0.2.0.
- Added notes on where the API may change in the future.
- Added this changelog file.