# Breaking changes ## 10.0.0 breaking changes - [Deprecates passing config objects to `videoSrc` prop](#deprecates-passing-config-objects-to-videosrc-prop) - [Deprecates passing config objects to `videoCaptions` prop](#deprecates-passing-config-objects-to-videocaptions-prop) - [Removes `shouldSuppressPlaybackInterruptedErrors` prop](#removes-shouldsuppressplaybackinterruptederrors-prop) ### Deprecates passing config objects to `videoSrc` prop The `videoSrc` prop still supports URL strings, but no longer accepts config objects or arrays of config objects for video sources. Instead, sources like this must now be defined as `` elements. Migration for a single source config object is fairly straightforward; the `src` and `type` properties on the config objects map directly to the attributes that need to be set on the `` elements: ```diff + )} /> ``` For an array of source config objects, simply wrap your `` elements in a fragment: ```diff + + + + )} /> ``` ### Deprecates passing config objects to `videoCaptions` prop The `videoCaptions` prop also no longer accepts config objects for caption tracks. Instead, caption tracks must be defined as `` elements. Like with the changes to `videoSrc` above, all of the properties on the caption track config objects should map directly to attributes on the `` elements: ```diff + + + + )} /> ``` ### Removes `shouldSuppressPlaybackInterruptedErrors` prop The `shouldSuppressPlaybackInterruptedErrors` prop is being removed, as it is not really needed anymore. This prop defaulted to `true` and was not commonly used, so will likely not impact many people. You can simply remove the prop and things will continue functioning as normal. ```diff ```