зеркало из https://github.com/mozilla/pluotsorbet.git
Implement nGetContentType native
This commit is contained in:
Родитель
82e154228d
Коммит
4a7fa31dc2
|
@ -396,6 +396,10 @@ Player.prototype.getMediaFormat = function() {
|
|||
return this.mediaFormat;
|
||||
};
|
||||
|
||||
Player.prototype.getContentType = function() {
|
||||
return this.contentType;
|
||||
};
|
||||
|
||||
Player.prototype.isVideoControlSupported = function() {
|
||||
if (this.mediaFormat !== "UNKNOWN") {
|
||||
switch (this.mediaFormat) {
|
||||
|
@ -507,6 +511,10 @@ Native.create("com/sun/mmedia/PlayerImpl.nGetMediaFormat.(I)Ljava/lang/String;",
|
|||
return player.mediaFormat;
|
||||
});
|
||||
|
||||
Native.create("com/sun/mmedia/DirectPlayer.nGetContentType.(I)Ljava/lang/String;", function(handle) {
|
||||
return PlayerCache[handle].getContentType();
|
||||
});
|
||||
|
||||
Native.create("com/sun/mmedia/PlayerImpl.nIsHandledByDevice.(I)Z", function(handle) {
|
||||
console.warn("com/sun/mmedia/PlayerImpl.nIsHandledByDevice.(I)Z not implemented");
|
||||
return false;
|
||||
|
|
Загрузка…
Ссылка в новой задаче