emp-player-test

EMP Player SDK

Usage no npm install needed!

<script type="module">
  import empPlayerTest from 'https://cdn.skypack.dev/emp-player-test';
</script>

README

Upgrade guide

Download the latest SDK release package: ericsson-player-1.56.0.zip Download the latest analytics dev package: emp-analytics-dev.js Download the latest analytics testing package: emp-analytics-testing.min.js Download the latest analytics release package: emp-analytics-latest.min.js Download the latest versioned analytics release package: emp-analytics-1.56.min.js The following files should be replaced:

  • emp-player.min.js
  • css folder content
  • swf folder content
  • video-js folder content
  • shaka-player.compiled.js
  • emp-player.swf
  • plugins folder content

Release notes

1.56.0

New features and Enhancements

EMP-8877 Player: enforce timeshift restrictions set by the backend EMP-6303 Player: pause button is replaced by stop button if timeshift is disabled EMP-8887 Player: if timeshift is disabled by the backend, the user is cannot enable it

Bug fixes

EMP-9035 Player: FF, RW and SEEK functionalities on dynamic live EMP-9041 Player: fixed flash fallback in Safari EMP-8858 Player: fixed some controls that were not working when startTime > 0 EMP-8859 Player: fixed flash tech bug regarding startTime and bookmarks EMP-9048 Player: removed NPObject video.js error EMP-9043 Player: trackDuration is not a function console error removed EMP-9082 Player: removed console error in safari shaka (evaluating program.programId when loading live)

1.55.0

New features and Enhancements

EMP-8698 Player: Refactoring session management for chromecast session with multi-senders

Bug fixes

EMP-7550 Player: if an exception occurs when loading tech, check next tech instead of giving up EMP-8204 Player: ProgramService is properly cleaned up after media playback EMP-8925 Player: The playback does not stop if the program is "black out:ed" in Flash EMP-8819 Chromecast: onStop event in the receiver now completely stops playback session

1.54.0

New features and Enhancements

EMP-8618 Player: chromecast sender now sends image, title and subtitle EMP-6024 Player: sending startTime as flashvar EMP-8626 Player: disconnect from the receiver app and stop it from running if idle for 5 minutes EMP-7327 Player: startTime option should be handled by the techs EMP-6024 Player: implement a startPlayer(int position) API in flash-player EMP-8618 Player: html5 sender: send metadata when casting asset: title, subtitle and image EMP-8630 Player: If timeShift is disabled, the user should not be able to pause the live stream EMP-8751 CC: Support for multi audio and subs with multi period streams (Ads) with Chromecast

Bug fixes

EMP-8625 CC: Sender should not send pause and play after video has ended. EMP-8689 Player: instead of picture freeze, now playback stops when license expires EMP-8624 Player: fixed endless loop of tracksupdated notifications EMP-8689 Player: The playback does not stopp for black-out program - error message is shown but the playback continues EMP-8624 CC: Chromecast go into a endless loop of tracksupdated. EMP-8699 CC: Look over message names for Chromecast EMP-8752 CC: Remove too many duration-changed message broadcast from CC receiver

1.53.0

New features and Enhancements

EMP-8557 Player: Handle MovieMediaMetadata on chromecast receiver that enables custom thumbnail for media EMP-8126 Player: Play VoD with multi audio using HLS/Fairplay media in the HTML5 player

Bug fixes

EMP-8445 Player: Fairplay error - invalid media rights after the playback has finished EMP-8438 Analytics: Safari - Double analytics pb.PlayerReady/Started EMP-8568 Player: High prio clips bugfix after upgrading Shaka EMP-7460 Player: Shaka tech canplay event triggered twice EMP-8591 Player: Chromecast sender does not switch from live to vod timeline

1.52.0

Bug fixes

EMP-7899 Casting takes long time to start and it plays on sender before casting EMP-7987 setAbsoluteTime(Date) method added to the HTML5 player EMP-8330 Recoverable error when playing several assets on chromecast EMP-8271 Cannot read property 'vdata1482315557759' of null EMP-8009 When casting, subtitle off always highlighted in sender subs menu EMP-8388 Null check missing for start time - causing problems for playback EMP-8389 Start over button missing in the ref player in Shaka EMP-8254 IE/EDGE Loading spinner (shaka tech) stays after scrubbing

New features and Enhancements

EMP-8389 MDN integration EMP-7873 HTML5 HLS Fairplay playback for VOD

Limitations

  • MDN integration is not supported for Flash playing media with subs

1.50.0

Bug fixes

  • EMP-7916 Better support for text tracks on shaka and chromecast techs
  • EMP-7691 Big 'play' button in the center of the player is now disabled before the asset is loaded
  • EMP-7980 Default timeshifDisabled value is now 'true'
  • EMP-8008 Heartbeats are no longer being sent to analytics after stopCasting
  • EMP-8034 Some analytics' issues on IE11 solved

1.49.1

Bug fixes

  • EMP-7975 Triggering SEEKED event in some cases that it is not coming from the flash player

Limitations

  • Contract restrictions do not apply to HLS Unencrypted media because the native player does not enforce the restrictions

1.49.0

New features and Enhancements

  • EMP-7713 Analytics plugin removed and replaced by standalone EMPAnalytics component
  • EMP-6643 Analytics are being sent on browser close (if ongoing playback)
  • EMP-7311 Send tech version (Flash, Shaka, Chromecast) in Playback.PlayReady analytics
  • EMP-7784 Removed query string from analytics media locator
  • EMP-7746 Contract restrictions: disable fast forward
  • EMP-7805 Playback.StartCasting event was added
  • EMP-7748 Contract restrictions: enforce playback minimum bitrate
  • EMP-7747 Contract restrictions: fast rewind and fast forward
  • EMP-7745 Contract restrictions: enforce maximum resolution (height)
  • EMP-7744 Contract restrictions: enforce maximum bitrate
  • EMP-5884 Playback.BufferingEnded analytics event added

Bug fixes

  • EMP-7780 Removed multiple analytics events when scrubbing
  • EMP-7781 Autoplay is now set correctly in Playback.Created event
  • EMP-7786 Heartbeat analytics event is now Playback.Heartbeat
  • EMP-7787 Pending analytics events are not being kept more than 3 seconds anymore
  • EMP-7806 Playback.HandshakeStarted event now includes assetId and programId
  • EMP-7809 Playback.Completed event now always present when the stream ends
  • EMP-7810 Multiple asset loads do not send redundant analytics events anymore
  • EMP-7807 Unix time offset replaced by relative offset on analytics' live streams
  • EMP-7782 Playback.BitrateChanged now sends correct bitrate

1.48.0

Bug fixes

  • EMP-7545 Update volume when joining chromecast session
  • EMP-7595 Fix audio tracks switching on chromecast player taking 30 sec
  • EMP-7721 Showing an error message on the player when an exception is raised on asset load

Documentation

  • Adding tutorial on ad-markers styling in the timeline

1.47.0

  • EMP-7462 Player: adding 'auto' to techOrder modes that explicitly loads all available techs (e.g. options.techOrder = 'auto')
  • EMP-7448 Player: disable fast forward/rewind during ad playback
  • EMP-7445 Reference: loading html5 player even if preference api call fails
  • EMP-7469 Reference: updating env login combo box with cookie environment variable
  • EMP-7276 Reference: persistent log in session in reference player
  • EMP-7335 Player: chromecast session autio join with updated audio and subtitle tracks
  • EMP-7317 Player: move chromecast playback logic out of the chromecast ui button -> it can be easily customized now
  • EMP-5538 Player: receiving VOLUME_CHANGE event from the receiver
  • EMP-6470 Player: play ads when scrubbing forward
  • EMP-6468 Player: display a timeline with the duration of the main asset
  • EMP-6469 Player: option to display ad markers in the timeline
  • EMP-7105 Player: adding swf with vast proxy callback

1.46.0

  • EMP-7130 Player: fix "program method not defined" for EmpShaka playback technology
  • EMP-7254 Player: remove DASH.js from HTML5 player
  • EMP-7159 Player: restart button not working when chromecast displaying
  • EMP-6889 Flash: disable debug logging option

1.45.0

  • EMP-7162 Shaka: Installed missing polyfill causing error on Safari
  • EMP-7157 Flash: Fixed an issue where the user wasn't notified if an error occured during flash playback
  • EMP-7160 Reference: Analytics improvements for reference player
  • EMP-6585 Reference: Removed dash references from reference player
  • EMP-7131 Reference: Improved bitrate reporting
  • EMP-6997 Analytics: Fixed an issue causing reports from a single session to be divided under many
  • EMP-7114 Chromecast: No longer cast new media
  • EMP-5800 Player: Added simple startTime support

1.44.1

  • EMP-6781 Player: add a PROGRAM_CHANGED event
  • EMP-5136 Player: add a getProgram() method that returns the current program playing in a live stream

1.44.0

  • EMP-7005 Flash: Fixed an issue when re-loading an asset the play button woudn't re-appear
  • EMP-6999 Reference: Fixed an issue with certain options not responding to updates
  • EMP-7000 Shaka: Fixed an issue causing subtitle duplication on replay
  • EMP-6913 Shaka: Fixed an issue that could cause 404s after playing a livestream for a long time
  • EMP-6920 Shaka: Updated to 2.0.0
  • EMP-6842 Shaka: Fixed a playback issue with Edge and IE on DRM protected content. Re-enabled them.
  • EMP-6893 Shaka: Clock sync URI is now set in shaka preventing live stream issues
  • EMP-6648 Chromecast: Fixed live state and timeshifting when casting to chromecast
  • EMP-6832 Shaka: Fixed an issue causing an exception when replaying a video
  • EMP-6971 Player: timesShiftEnabled is now readable from the player
  • EMP-6508 Reference: Player is now loaded immediatly after login
  • EMP-6887 Reference: SW_SECURE_CRYPTO robustness level is now exposed
  • EMP-6892 Reference: Users are now logged out when the session expires. Instead of polling for expiration.

1.43.0

New features and Enhancements

  • EMP-6778 Flash: Flash library was upgraded to 2.10
  • EMP-6780 Flash: Allow changing Flash subtitles font type and background opacity
  • EMP-6661 Fallback to flash when shaka receives an error with category 3
  • EMP-5536 Chromecast: Chromecast: Set and change volume of receiver according to guidelines
  • EMP-6831 Force Flash playback on IE11 / Edge (temporary)

Bug fixes

  • EMP-6636 IE11 / Windows7 fallback to Flash
  • EMP-6583 Chromecast: do not autoplay if option is not checked
  • EMP-6466 Chromecast: Fix subtitles font size
  • EMP-5727 Chromecast: Prevent too many concurrent switch stream calls coming into the Receiver's onload method
  • EMP-6640 Load triggers playback in Safari even though the Autoplay is not chosen
  • EMP-6743 Analytics: Flash sending incorrect bitrate value
  • EMP-6824 Shaka is showing a default text track when no tracks are available

1.42.3

Bug fixes

  • EMP-6505 Fixed an issue that caused entitlement expiration check to check on the old program

1.42.2

Bug fixes

  • Fixed an issue where index.html was looking for the uncompressed javascript source

1.42.1

New features and Enhancements

  • EMP-6671 Updated Shaka player library

Bug fixes

  • EMP-6505 Fixed an issue when the entitlement expiration date was invalid

1.42.0

New features and Enhancements

  • EMP-5541 Chromecast: Support for remote control, (pause/play etc.)
  • EMP-5535 Chromecast: Support for scrubbing VOD
  • EMP-5544 Chromecast: Implemented analytics
  • EMP-5545 Chromecast: The app is closed after a certain time when idle to prevent screenburn
  • EMP-6504 EntitlementEngine base class is now exposed
  • EMP-6621 Dash live returns a UTC time
  • EMP-6505 Implemented license expiration for live streams

Bug fixes

  • EMP-6292 Chromecast: Controls for CC are not available when casting
  • EMP-6293 Chromecast: Different audio track is used when casting
  • EMP-6583 Chromecast: Shouldn't autoplay
  • EMP-6584 Chromecast: Timeline is not displayed when loading a new VOD asset
  • EMP-6590 Chromecast: Button throws Cannot read property 'length' of undefined
  • EMP-6617 Chromecast: Duration not displayed when loading a new VOD asset
  • EMP-6380 Analytics: SessionId seems to mix up
  • EMP-6591 Analytics: Error event not sending attributes
  • EMP-6654 Analytics: HandshakeStarted is missing AssetId & ProgramId
  • EMP-6555 Seekbar is now hidden when video ends
  • EMP-6487 Can not play an asset in Safari on Auto
  • EMP-6242 Error related to touch in windows and windows phone
  • EMP-5138 Remove _ from player internal event names to keep it consistent
  • EMP-6338 The reference player does not display the correct technology used
  • EMP-6574 Wrong exposure URL in reference app when logging out and in
  • EMP-6479 Wrong player error displayed

1.41.1

New features and Enhancements

  • EMP-6598 Security: fix a possible XSS attack in swf player
  • EMP-6072 Add an option to display current time instead of a countdown
  • EMP-6570 Use wallclock time to seek into a live stream when using Dash

Bug fixes

  • EMP-6509 Chromecast: live playback is not working
  • EMP-6427 Replay button was missing when playing Dash
  • EMP-6290 Chromecast: playback was starting from the begining of the asset instead of keeping current position
  • EMP-6382 Fullscreen issue with Firefox
  • EMP-6441 Chromecast: loader icon remains on screen
  • EMP-6383 Subtitle menu multiplies at replay
  • EMP-6501 Chromecast: playback does not end and stays in buffering

1.41.0

New features and Enhancements

  • EMP-6160 Shaka player improvements
  • EMP-6209 Analytics: Playback.Created add player version
  • EMP-6210 Analytics: No need to send Playback.PlayerReady directly after ScrubbedTo
  • EMP-6211 Analytics: Stop heartbeats after completed event

Bug fixes

  • EMP-6337 Spinner icon remains on video when clicking "LIVE" button twice
  • EMP-5070 DASH playback does not shut down after video is finished
  • EMP-6387 Fallback to Flash doesn't seen to work in Firefox

Limitations

  • Autoplay is disabled on mobile web: iOS (for all devices, including iPad) and android has disabled autoplay in versions 4.1+