Skip to content

Commit

Permalink
Revert "[TIMOB-19040] :Replace MPMoviePlayerController in Ti.Media.Vi…
Browse files Browse the repository at this point in the history
…deoPlayer with AVPlayerViewController"
  • Loading branch information
eric34 committed Nov 14, 2017
1 parent 4df770e commit c949974
Show file tree
Hide file tree
Showing 10 changed files with 465 additions and 663 deletions.
91 changes: 0 additions & 91 deletions apidoc/Titanium/Media/Media.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1177,10 +1177,6 @@ properties:
type: Number
permission: read-only
- name: VIDEO_CONTROL_DEFAULT
deprecated:
since: "7.0.0"
notes: This property has been removed for iOS in Titanium SDK 7.0.0 as of the official deprecation by Apple.
removed: "7.0.0"
summary: Constant for default video controls.
description: |
Used in conjunction with the
Expand All @@ -1189,10 +1185,6 @@ properties:
type: Number
permission: read-only
- name: VIDEO_CONTROL_EMBEDDED
deprecated:
since: "7.0.0"
notes: This property has been removed for iOS in Titanium SDK 7.0.0 as of the official deprecation by Apple.
removed: "7.0.0"
summary: Constant for video controls for an embedded view.
description: |
Used in conjunction with the
Expand All @@ -1205,10 +1197,6 @@ properties:
permission: read-only
platforms: [android, iphone, ipad]
- name: VIDEO_CONTROL_FULLSCREEN
deprecated:
since: "7.0.0"
notes: This property has been removed for iOS in Titanium SDK 7.0.0 as of the official deprecation by Apple.
removed: "7.0.0"
summary: Constant for fullscreen video controls.
description: |
Used in conjunction with the
Expand Down Expand Up @@ -1278,30 +1266,17 @@ properties:
type: Number
permission: read-only
platforms: [android, iphone, ipad]
- name: VIDEO_LOAD_STATE_FAILED
summary: Indicates that the player can no longer play media items because of an error.
type: Number
permission: read-only
platforms: [iphone, ipad]
- name: VIDEO_LOAD_STATE_PLAYABLE
summary: Current media is playable.
type: Number
permission: read-only
platforms: [android, iphone, ipad]
- name: VIDEO_LOAD_STATE_PLAYTHROUGH_OK
deprecated:
since: "7.0.0"
notes: This property has been removed for iOS in Titanium SDK 7.0.0 as of the official deprecation by Apple.
removed: "7.0.0"
summary: Playback will be automatically started in this state when `autoplay` is true.
type: Number
permission: read-only
platforms: [android, iphone, ipad]
- name: VIDEO_LOAD_STATE_STALLED
deprecated:
since: "7.0.0"
notes: This property has been removed for iOS in Titanium SDK 7.0.0 as of the official deprecation by Apple.
removed: "7.0.0"
summary: Playback will be automatically paused in this state, if started.
type: Number
permission: read-only
Expand All @@ -1312,28 +1287,16 @@ properties:
permission: read-only
platforms: [android, iphone, ipad]
- name: VIDEO_MEDIA_TYPE_AUDIO
deprecated:
since: "7.0.0"
notes: This property has been removed in Titanium SDK 7.0.0 as of the official deprecation by Apple.
removed: "7.0.0"
summary: A audio type of media in the movie returned by <Titanium.Media.VideoPlayer> `mediaTypes` property.
type: Number
permission: read-only
platforms: [iphone, ipad]
- name: VIDEO_MEDIA_TYPE_NONE
deprecated:
since: "7.0.0"
notes: This property has been removed in Titanium SDK 7.0.0 as of the official deprecation by Apple.
removed: "7.0.0"
summary: An unknown type of media in the movie returned by <Titanium.Media.VideoPlayer> `mediaTypes` property.
type: Number
permission: read-only
platforms: [iphone, ipad]
- name: VIDEO_MEDIA_TYPE_VIDEO
deprecated:
since: "7.0.0"
notes: This property has been removed in Titanium SDK 7.0.0 as of the official deprecation by Apple.
removed: "7.0.0"
summary: A video type of media in the movie returned by <Titanium.Media.VideoPlayer> `mediaTypes` property.
type: Number
permission: read-only
Expand Down Expand Up @@ -1369,30 +1332,18 @@ properties:
permission: read-only
platforms: [android, iphone, ipad]
- name: VIDEO_REPEAT_MODE_NONE
deprecated:
since: "7.0.0"
notes: This property has been removed for iOS in Titanium SDK 7.0.0 as of the official deprecation by Apple.
removed: "7.0.0"
summary: Constant for disabling repeat on video playback.
type: Number
permission: read-only
platforms: [android, iphone, ipad]
since: {android: "6.2.0", iphone: "0.9.0", ipad: "0.9.0"}
- name: VIDEO_REPEAT_MODE_ONE
deprecated:
since: "7.0.0"
notes: This property has been removed for iOS in Titanium SDK 7.0.0 as of the official deprecation by Apple.
removed: "7.0.0"
summary: Constant for repeating one video (i.e., the one video will repeat constantly) during playback.
type: Number
permission: read-only
platforms: [android, iphone, ipad]
since: {android: "6.2.0", iphone: "0.9.0", ipad: "0.9.0"}
- name: VIDEO_SCALING_ASPECT_FILL
deprecated:
since: "7.0.0"
notes: This property has been removed for iOS in Titanium SDK 7.0.0 as of the official deprecation by Apple.
removed: "7.0.0"
summary: Scale video to fill the screen, clipping edges if necessary.
description: |
Video is scaled until the video fills the entire screen. Content at the edges
Expand All @@ -1402,10 +1353,6 @@ properties:
permission: read-only
platforms: [android, iphone, ipad]
- name: VIDEO_SCALING_ASPECT_FIT
deprecated:
since: "7.0.0"
notes: This property has been removed for iOS in Titanium SDK 7.0.0 as of the official deprecation by Apple.
removed: "7.0.0"
summary: Scale video to fit the screen, letterboxing if necessary.
description: |
Video is scaled until the larger dimension fits on the screen exactly. In the
Expand All @@ -1415,68 +1362,30 @@ properties:
permission: read-only

- name: VIDEO_SCALING_MODE_FILL
deprecated:
since: "7.0.0"
notes: This property has been removed for iOS in Titanium SDK 7.0.0 as of the official deprecation by Apple.
removed: "7.0.0"
summary: Video is scaled until both dimensions fit the screen exactly, stretching if necessary.
description: |
The aspect ratio of the video is not preserved.
type: Number
permission: read-only
platforms: [android, iphone, ipad]
- name: VIDEO_SCALING_NONE
deprecated:
since: "7.0.0"
notes: This property has been removed for iOS in Titanium SDK 7.0.0 as of the official deprecation by Apple.
removed: "7.0.0"
summary: Video scaling is disabled.
type: Number
permission: read-only
- name: VIDEO_SCALING_RESIZE
summary: Specifies that the video should be stretched to fill the bounds of layer.
type: String
permission: read-only
platforms: [iphone, ipad]
since: "7.0.0"
- name: VIDEO_SCALING_RESIZE_ASPECT
summary: Specifies that the player should preserve the aspect ratio of video and fit the video within the bounds of layer.
type: String
permission: read-only
platforms: [iphone, ipad]
since: "7.0.0"
- name: VIDEO_SCALING_RESIZE_ASPECT_FILL
summary: Specifies that the player should preserve the aspect ratio of video and fill the bounds of layer.
type: String
permission: read-only
platforms: [iphone, ipad]
since: "7.0.0"

- name: VIDEO_SOURCE_TYPE_FILE
deprecated:
since: "7.0.0"
notes: This property has been removed in Titanium SDK 7.0.0 as of the official deprecation by Apple.
removed: "7.0.0"
summary: Video source type is a file.
description: Related to the `sourceType` property of <Titanium.Media.VideoPlayer>.
type: Number
permission: read-only
platforms: [iphone, ipad]
- name: VIDEO_SOURCE_TYPE_STREAMING
deprecated:
since: "7.0.0"
notes: This property has been removed in Titanium SDK 7.0.0 as of the official deprecation by Apple.
removed: "7.0.0"
summary: Video source type is a remote stream.
description: Related to the `sourceType` property of <Titanium.Media.VideoPlayer>
type: Number
permission: read-only
platforms: [iphone, ipad]
- name: VIDEO_SOURCE_TYPE_UNKNOWN
deprecated:
since: "7.0.0"
notes: This property has been removed in Titanium SDK 7.0.0 as of the official deprecation by Apple.
removed: "7.0.0"
summary: Video source type is unknown.
description: Related to the `sourceType` property of <Titanium.Media.VideoPlayer>
type: Number
Expand Down
87 changes: 2 additions & 85 deletions apidoc/Titanium/Media/VideoPlayer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,6 @@ events:
platforms: [android]

- name: fullscreen
deprecated:
since: "7.0.0"
notes: This event has been removed in Titanium SDK 7.0.0 as of the official deprecation by Apple.
removed: "7.0.0"
summary: Fired when a movie changes to or from fullscreen view.
description: |
On iOS, this event is fired at the beginning of the transition to
Expand Down Expand Up @@ -378,10 +374,6 @@ events:
constants: Titanium.Media.VIDEO_PLAYBACK_STATE_*

- name: mediatypesavailable
deprecated:
since: "7.0.0"
notes: This event has been removed in Titanium SDK 7.0.0 as of the official deprecation by Apple.
removed: "7.0.0"
summary: Fired when the media types in the current movie are determined.
platforms: [iphone, ipad]
properties:
Expand Down Expand Up @@ -440,10 +432,6 @@ events:
summary: New `sourceType` value.

- name: sourcechange
deprecated:
since: "7.0.0"
notes: This event has been removed in Titanium SDK 7.0.0 as of the official deprecation by Apple.
removed: "7.0.0"
summary: |
Fired when the [sourceType](Titanium.Media.VideoPlayer.sourceType) property
changes.
Expand Down Expand Up @@ -548,9 +536,6 @@ properties:
default: true

- name: backgroundView
deprecated:
since: "7.0.0"
notes: Use <Titanium.Media.VideoPlayer.overlayView> instead.
summary: Sets the background view for customization which is always displayed behind movie content.
description: |
To create a background behind the movie content on iOS, you can specify a
Expand Down Expand Up @@ -616,10 +601,6 @@ properties:
type: Number

- name: fullscreen
deprecated:
since: "7.0.0"
notes: This method has been removed for iOS in Titanium SDK 7.0.0 as of the official deprecation by Apple.
removed: "7.0.0"
summary: |
Determines if the movie is presented in the entire screen (obscuring all other application content).
description: |
Expand All @@ -644,9 +625,6 @@ properties:
type: Number

- name: loadState
deprecated:
since: "7.0.0"
notes: On iOS, use <Titanium.Media.VideoPlayer.moviePlayerStatus> instead.
summary: Returns the network load state of the movie player.
type: Number
permission: read-only
Expand All @@ -658,10 +636,6 @@ properties:
permission: write-only

- name: mediaControlStyle
deprecated:
since: "7.0.0"
notes: On iOS, use <Titanium.Media.VideoPlayer.showsControls> instead.
removed: "7.0.0"
summary: The style of the playback controls.
description: |
Mobile web only supports <Titanium.Media.VIDEO_CONTROL_NONE> and
Expand Down Expand Up @@ -700,12 +674,6 @@ properties:
ios:
max: "3.1"

- name: moviePlayerStatus
summary: Returns the status of the movie player.
type: Number
permission: read-only
platforms: [iphone, ipad]

- name: naturalSize
summary: Returns the natural size of the movie.
description: |
Expand All @@ -717,37 +685,6 @@ properties:
platforms: [iphone, ipad]
type: MovieSize

- name: overlayView
summary: Use the overlay view to add additional custom views between the video content and the controls.
description: |
Note that the overlay view must be sized explicitly: percentage sizes do not work properly.
The following code sample creates a video player with a background image:
var videoPlayer = Ti.Media.createVideoPlayer({
height : 300,
width : 300,
overlayView : Ti.UI.createView({
backgroundImage: 'videoPlayerBG.png
width : 300,
height : 300
}),
borderRadius : 20,
borderWidth : 2,
borderColor : 'blue',
});
platforms: [iphone, ipad]
type: Titanium.UI.View

- name: pictureInPictureEnabled
summary: Whether or not the receiver allows Picture in Picture playback
platforms: [iphone, ipad]
type: Boolean
default: true
osver:
ios:
max: "9.0"

- name: playableDuration
summary: |
Currently playable duration of the movie, in milliseconds, for progressively
Expand All @@ -772,13 +709,8 @@ properties:
permission: read-only

- name: repeatMode
deprecated:
since: "7.0.0"
notes: This method has been removed for iOS in Titanium SDK 7.0.0 as of the official deprecation by Apple.
removed: "7.0.0"
summary: Determines how the movie player repeats when reaching the end of playback.
summary: Determines how the movie player repeats when reaching the end of playback.
platforms: [android, iphone, ipad]

type: Number
constants: Titanium.Media.VIDEO_REPEAT_MODE_*
default: Titanium.Media.VIDEO_REPEAT_MODE_NONE
Expand All @@ -793,23 +725,8 @@ properties:
constants: Titanium.Media.VIDEO_SCALING_*
default: <Titanium.Media.VIDEO_SCALING_ASPECT_FIT>

- name: showsControls
summary: Whether or not the receiver shows playback controls. Default is YES.
description: |
Clients can set this property to NO when they don't want to have any playback controls on top of
the visual content (e.g. for a game splash screen). This property should not be used to temporarily
change the visibility of the playback controls since it will create or destroy UI elements.
platforms: [iphone, ipad]
type: Boolean
default: true
since: "7.0.0"

- name: sourceType
deprecated:
since: "7.0.0"
notes: This method has been removed in Titanium SDK 7.0.0 as of the official deprecation by Apple.
removed: "7.0.0"
summary: The playback type of the movie.
summary: The playback type of the movie.
description: |
Specifying a playback type before playing the movie can result in faster load times.
Expand Down

0 comments on commit c949974

Please sign in to comment.