Skip to content

Commit c58aee3

Browse files
committed
Merge pull request cocos2d#2898 from VisualSJ/develop-webview
Add webview
2 parents a84bf60 + 1e5a35a commit c58aee3

File tree

6 files changed

+391
-8
lines changed

6 files changed

+391
-8
lines changed

cocos2d/core/platform/CCEGLView.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,6 @@ cc.EGLView = cc.Class.extend(/** @lends cc.view# */{
224224
var height = view._originalDesignResolutionSize.height;
225225
if (width > 0)
226226
view.setDesignResolutionSize(width, height, view._resolutionPolicy);
227-
228227
},
229228

230229
/**

cocos2d/transitions/CCTransition.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ cc.TransitionShrinkGrow = cc.TransitionScene.extend(/** @lends cc.TransitionShri
879879
var scaleOut = cc.scaleTo(this._duration, 0.01);
880880
var scaleIn = cc.scaleTo(this._duration, 1.0);
881881

882-
this._inScene.runAction(cc.sequence(this.easeActionWithAction(scaleIn), cc.callFunc(this.finish, this));
882+
this._inScene.runAction(cc.sequence(this.easeActionWithAction(scaleIn), cc.callFunc(this.finish, this)));
883883
this._outScene.runAction(this.easeActionWithAction(scaleOut));
884884
},
885885

extensions/ccui/uiwidgets/UIVideoPlayer.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,10 @@ ccui.VideoPlayer = ccui.Widget.extend({
202202

203203
});
204204

205+
/**
206+
* The VideoPlayer support list of events
207+
* @type {{PLAYING: string, PAUSED: string, STOPPED: string, COMPLETED: string}}
208+
*/
205209
ccui.VideoPlayer.EventType = {
206210
PLAYING: "ui_video_play",
207211
PAUSED: "ui_video_pause",
@@ -215,7 +219,7 @@ ccui.VideoPlayer.EventType = {
215219
* @devicePixelRatio Whether you need to consider devicePixelRatio calculated position
216220
* @event To get the data using events
217221
*/
218-
video.polyfill = {
222+
video._polyfill = {
219223
devicePixelRatio: false,
220224
event: "canplay",
221225
canPlayType: []
@@ -224,14 +228,14 @@ ccui.VideoPlayer.EventType = {
224228
(function(){
225229
var dom = document.createElement("video");
226230
if(dom.canPlayType("video/ogg"))
227-
video.polyfill.canPlayType.push(".ogg");
231+
video._polyfill.canPlayType.push(".ogg");
228232
if(dom.canPlayType("video/mp4"))
229-
video.polyfill.canPlayType.push(".mp4");
233+
video._polyfill.canPlayType.push(".mp4");
230234
})();
231235

232236
if(cc.sys.OS_IOS === cc.sys.os){
233-
video.polyfill.devicePixelRatio = true;
234-
video.polyfill.event = "progress";
237+
video._polyfill.devicePixelRatio = true;
238+
video._polyfill.event = "progress";
235239
}
236240

237241
})(ccui.VideoPlayer);
@@ -402,4 +406,4 @@ ccui.VideoPlayer.EventType = {
402406
}
403407
};
404408

405-
})(ccui.VideoPlayer.polyfill);
409+
})(ccui.VideoPlayer._polyfill);

0 commit comments

Comments
 (0)