mautilus / sdk

MAUTILUS SmartTV SDK
BSD 3-Clause "New" or "Revised" License
99 stars 43 forks source link

Player.reset() issue. #26

Closed jorgitoml closed 6 years ago

jorgitoml commented 8 years ago

In the new release, you changed thie Player.reset() method from: function() { this.url = null; this.duration = 0; this.currentTime = 0; this.currentState = this.STATE_IDLE; this.speed = 1; this.width = this.config.width; this.height = this.config.height; this.trigger('reset'); }, To: function() { this.url = null; this.duration = 0; this.currentTime = 0; this.currentState = this.STATE_IDLE; this.speed = 1; this.width = this.config.width; this.height = this.config.height; this.drmType = ''; this.customData = null; this.trigger('reset'); },

The Player.reset() method is always called before play an URL (see Player.setUrl() method), so if the stream is DRMed the customData will be always NULL and no information will be sent to the DRM server...and the stream will not play.

Please, delete this lines in the method: this.drmType = ''; this.customData = null;

Also I've modified the core to allow set a custom DRM server url...I can share it with you if you want.

Regards.

jorgitoml commented 8 years ago

I've also noticed that on Samsung Orsay devices, when you try to play a DRMed stream for the very first time (the TV doesn't have the DRM license stored), the stream doesn't play but the player asks for the licence and stores it. The following times, the player doesn't ask for the license but the stream plays without problem until the stored licence expires.

Any clue to solve this?

jorgitoml commented 8 years ago

One more thing. In LG Netcast devices this.DRMAGENT = document.getElementById("drmAgent"); Is allways null...so I can't play playready DRM contents. Can you tell me how to fix it? Regards.

EDIT Solved changing: this.DRMAGENT = document.getElementById("drmAgent"); with: this.$el = $('<object type="application/oipfDrmAgent" id="drmAgent" width="0" height="0"></object>').appendTo('body'); this.DRMAGENT = this.$el[0];

radimbuchtela commented 7 years ago

jorgitoml - Many thanks for your useful feedbacks. It will be included in next release version where interface for DRM video playing is slightly reworked.

Regards, Radim

jorgitoml commented 7 years ago

You are welcome.