Skip to content

支付宝兼容矩阵 · 媒体

媒体

chooseImage

mapped

选择图片。

支付宝目标方法

chooseImage

策略说明

  • 微信:直连 `wx.chooseImage`
  • 支付宝:返回值 `apFilePaths` 映射到 `tempFilePaths`

chooseMedia

unsupported

选择图片或视频。

支付宝目标方法

chooseMedia

策略说明

  • 微信:直连 `wx.chooseMedia`
  • 支付宝:无同等 API,调用时按 unsupported 报错

chooseVideo

mapped

选择视频。

支付宝目标方法

chooseVideo

策略说明

  • 微信:直连 `wx.chooseVideo`
  • 支付宝:直连 `my.chooseVideo`

compressImage

native

支付宝目标方法

compressImage

策略说明

  • 微信:直连 `wx.compressImage`
  • 支付宝:直连 `my.compressImage`

compressVideo

unsupported

压缩视频文件。

支付宝目标方法

compressVideo

策略说明

  • 微信:直连 `wx.compressVideo`
  • 支付宝:无同等 API,调用时按 unsupported 报错

createAudioContext

unsupported

创建音频上下文。

支付宝目标方法

createAudioContext

策略说明

  • 微信:直连 `wx.createAudioContext`
  • 支付宝:无同等 API,调用时按 unsupported 报错

createCameraContext

unsupported

创建相机上下文对象。

支付宝目标方法

createCameraContext

策略说明

  • 微信:直连 `wx.createCameraContext`
  • 支付宝:无同等 API,调用时按 unsupported 报错

createInnerAudioContext

native

支付宝目标方法

createInnerAudioContext

策略说明

  • 微信:直连 `wx.createInnerAudioContext`
  • 支付宝:直连 `my.createInnerAudioContext`

createLivePlayerContext

unsupported

创建直播播放器上下文。

支付宝目标方法

createLivePlayerContext

策略说明

  • 微信:直连 `wx.createLivePlayerContext`
  • 支付宝:无同等 API,调用时按 unsupported 报错

createLivePusherContext

unsupported

创建直播推流上下文。

支付宝目标方法

createLivePusherContext

策略说明

  • 微信:直连 `wx.createLivePusherContext`
  • 支付宝:无同等 API,调用时按 unsupported 报错

createMapContext

native

支付宝目标方法

createMapContext

策略说明

  • 微信:直连 `wx.createMapContext`
  • 支付宝:直连 `my.createMapContext`

createMediaAudioPlayer

unsupported

创建媒体音频播放器。

支付宝目标方法

createMediaAudioPlayer

策略说明

  • 微信:直连 `wx.createMediaAudioPlayer`
  • 支付宝:无同等 API,调用时按 unsupported 报错

createMediaContainer

unsupported

创建媒体容器实例。

支付宝目标方法

createMediaContainer

策略说明

  • 微信:直连 `wx.createMediaContainer`
  • 支付宝:无同等 API,调用时按 unsupported 报错

createMediaRecorder

unsupported

创建媒体录制器。

支付宝目标方法

createMediaRecorder

策略说明

  • 微信:直连 `wx.createMediaRecorder`
  • 支付宝:无同等 API,调用时按 unsupported 报错

createVideoContext

native

支付宝目标方法

createVideoContext

策略说明

  • 微信:直连 `wx.createVideoContext`
  • 支付宝:直连 `my.createVideoContext`

createVideoDecoder

unsupported

创建视频解码器。

支付宝目标方法

createVideoDecoder

策略说明

  • 微信:直连 `wx.createVideoDecoder`
  • 支付宝:无同等 API,调用时按 unsupported 报错

createWebAudioContext

unsupported

创建 WebAudio 上下文。

支付宝目标方法

createWebAudioContext

策略说明

  • 微信:直连 `wx.createWebAudioContext`
  • 支付宝:无同等 API,调用时按 unsupported 报错

cropImage

unsupported

裁剪图片。

支付宝目标方法

cropImage

策略说明

  • 微信:直连 `wx.cropImage`
  • 支付宝:无同等 API,调用时按 unsupported 报错

editImage

unsupported

编辑图片。

支付宝目标方法

editImage

策略说明

  • 微信:直连 `wx.editImage`
  • 支付宝:无同等 API,调用时按 unsupported 报错

getAvailableAudioSources

native

支付宝目标方法

getAvailableAudioSources

策略说明

  • 微信:直连 `wx.getAvailableAudioSources`
  • 支付宝:直连 `my.getAvailableAudioSources`

getBackgroundAudioManager

native

支付宝目标方法

getBackgroundAudioManager

策略说明

  • 微信:直连 `wx.getBackgroundAudioManager`
  • 支付宝:直连 `my.getBackgroundAudioManager`

getBackgroundAudioPlayerState

unsupported

获取后台音频播放状态。

支付宝目标方法

getBackgroundAudioPlayerState

策略说明

  • 微信:直连 `wx.getBackgroundAudioPlayerState`
  • 支付宝:无同等 API,调用时按 unsupported 报错

getImageInfo

native

支付宝目标方法

getImageInfo

策略说明

  • 微信:直连 `wx.getImageInfo`
  • 支付宝:直连 `my.getImageInfo`

getRecorderManager

native

支付宝目标方法

getRecorderManager

策略说明

  • 微信:直连 `wx.getRecorderManager`
  • 支付宝:直连 `my.getRecorderManager`

getVideoInfo

mapped

获取视频详细信息。

支付宝目标方法

getVideoInfo

策略说明

  • 微信:直连 `wx.getVideoInfo`
  • 支付宝:直连 `my.getVideoInfo`

offAudioInterruptionBegin

native

支付宝目标方法

offAudioInterruptionBegin

策略说明

  • 微信:直连 `wx.offAudioInterruptionBegin`
  • 支付宝:直连 `my.offAudioInterruptionBegin`

offAudioInterruptionEnd

native

支付宝目标方法

offAudioInterruptionEnd

策略说明

  • 微信:直连 `wx.offAudioInterruptionEnd`
  • 支付宝:直连 `my.offAudioInterruptionEnd`

offVoIPVideoMembersChanged

unsupported

支付宝目标方法

offVoIPVideoMembersChanged

策略说明

  • 微信:直连 `wx.offVoIPVideoMembersChanged`
  • 支付宝:未提供 my.offVoIPVideoMembersChanged,调用时将返回 not supported

onAudioInterruptionBegin

native

支付宝目标方法

onAudioInterruptionBegin

策略说明

  • 微信:直连 `wx.onAudioInterruptionBegin`
  • 支付宝:直连 `my.onAudioInterruptionBegin`

onAudioInterruptionEnd

native

支付宝目标方法

onAudioInterruptionEnd

策略说明

  • 微信:直连 `wx.onAudioInterruptionEnd`
  • 支付宝:直连 `my.onAudioInterruptionEnd`

onBackgroundAudioPause

unsupported

支付宝目标方法

onBackgroundAudioPause

策略说明

  • 微信:直连 `wx.onBackgroundAudioPause`
  • 支付宝:未提供 my.onBackgroundAudioPause,调用时将返回 not supported

onBackgroundAudioPlay

unsupported

支付宝目标方法

onBackgroundAudioPlay

策略说明

  • 微信:直连 `wx.onBackgroundAudioPlay`
  • 支付宝:未提供 my.onBackgroundAudioPlay,调用时将返回 not supported

onBackgroundAudioStop

unsupported

支付宝目标方法

onBackgroundAudioStop

策略说明

  • 微信:直连 `wx.onBackgroundAudioStop`
  • 支付宝:未提供 my.onBackgroundAudioStop,调用时将返回 not supported

onVoIPVideoMembersChanged

unsupported

支付宝目标方法

onVoIPVideoMembersChanged

策略说明

  • 微信:直连 `wx.onVoIPVideoMembersChanged`
  • 支付宝:未提供 my.onVoIPVideoMembersChanged,调用时将返回 not supported

pauseBackgroundAudio

unsupported

暂停后台音频。

支付宝目标方法

pauseBackgroundAudio

策略说明

  • 微信:直连 `wx.pauseBackgroundAudio`
  • 支付宝:无同等 API,调用时按 unsupported 报错

pauseVoice

unsupported

暂停播放语音。

支付宝目标方法

pauseVoice

策略说明

  • 微信:直连 `wx.pauseVoice`
  • 支付宝:无同等 API,调用时按 unsupported 报错

playBackgroundAudio

unsupported

播放后台音频。

支付宝目标方法

playBackgroundAudio

策略说明

  • 微信:直连 `wx.playBackgroundAudio`
  • 支付宝:无同等 API,调用时按 unsupported 报错

playVoice

unsupported

播放语音。

支付宝目标方法

playVoice

策略说明

  • 微信:直连 `wx.playVoice`
  • 支付宝:无同等 API,调用时按 unsupported 报错

previewImage

native

支付宝目标方法

previewImage

策略说明

  • 微信:直连 `wx.previewImage`
  • 支付宝:直连 `my.previewImage`

previewMedia

unsupported

预览图片和视频。

支付宝目标方法

previewMedia

策略说明

  • 微信:直连 `wx.previewMedia`
  • 支付宝:无同等 API,调用时按 unsupported 报错

saveImageToPhotosAlbum

native

支付宝目标方法

saveImageToPhotosAlbum

策略说明

  • 微信:直连 `wx.saveImageToPhotosAlbum`
  • 支付宝:直连 `my.saveImageToPhotosAlbum`

saveVideoToPhotosAlbum

mapped

保存视频到系统相册。

支付宝目标方法

saveVideoToPhotosAlbum

策略说明

  • 微信:直连 `wx.saveVideoToPhotosAlbum`
  • 支付宝:直连 `my.saveVideoToPhotosAlbum`

seekBackgroundAudio

unsupported

调整后台音频播放进度。

支付宝目标方法

seekBackgroundAudio

策略说明

  • 微信:直连 `wx.seekBackgroundAudio`
  • 支付宝:无同等 API,调用时按 unsupported 报错

setInnerAudioOption

unsupported

设置内部音频选项。

支付宝目标方法

setInnerAudioOption

策略说明

  • 微信:直连 `wx.setInnerAudioOption`
  • 支付宝:无同等 API,调用时按 unsupported 报错

stopBackgroundAudio

unsupported

停止后台音频。

支付宝目标方法

stopBackgroundAudio

策略说明

  • 微信:直连 `wx.stopBackgroundAudio`
  • 支付宝:无同等 API,调用时按 unsupported 报错

stopVoice

unsupported

停止播放语音。

支付宝目标方法

stopVoice

策略说明

  • 微信:直连 `wx.stopVoice`
  • 支付宝:无同等 API,调用时按 unsupported 报错

subscribeVoIPVideoMembers

unsupported

订阅 VoIP 视频成员变化。

支付宝目标方法

subscribeVoIPVideoMembers

策略说明

  • 微信:直连 `wx.subscribeVoIPVideoMembers`
  • 支付宝:无同等 API,调用时按 unsupported 报错

Released under the MIT License.