Skip to content

Breaking change to hasBroadcastOrigin() implementation

Latest
Compare
Choose a tag to compare
@dhurrell dhurrell released this 03 Jan 11:17
· 13 commits to master since this release

Previous releases offered a method on the Historian object, hasBroadcastOrigin(), returning true or false. This relied on an entry in the URL hash fragment that looked like &*history=broadcast, which you would have needed to add to your application's URL yourself for the method ever to return true. The result of hasBroadcastOrigin() was also used internally to affect the result of calling isBroadcastSourceSupported() on the HbbTV broadcast source implementation, and to offer different exit implementations for certain devices.

This release removes the hasBroadcastOrigin() method from Historian, moving it up to the Application level instead and changing all callers within TAL. Behind the scenes it now relies on a URL query parameter, broadcast=true, which is less likely to be dropped (e.g. during HTTP 302 redirects) by troublesome devices.

This is a breaking change if you ever called hasBroadcastOrigin() explicitly on the Historian object, or you were appending &*history=broadcast to the URL hash fragment. You will now need to call hasBroadcastOrigin() on Application, and pass a query parameter broadcast=true instead.

Example:
http://myawesometvapp.com/?broadcast=true