/ohos5.0/foundation/multimedia/av_session/frameworks/js/napi/session/include/ |
H A D | napi_cast_control_command.h | 27 using GetterType = std::function<napi_status(napi_env, napi_value, AVCastControlCommand&)>; 34 static napi_status GetValue(napi_env env, napi_value in, AVCastControlCommand& out); 35 static napi_status SetValue(napi_env env, AVCastControlCommand& in, napi_value& out); 37 static napi_status GetNoneParam(napi_env env, napi_value in, AVCastControlCommand& out); 39 static napi_status GetRewindTime(napi_env env, napi_value in, AVCastControlCommand& out); 40 static napi_status GetSpeed(napi_env env, napi_value in, AVCastControlCommand& out); 41 static napi_status GetSeekTime(napi_env env, napi_value in, AVCastControlCommand& out); 42 static napi_status GetVolume(napi_env env, napi_value in, AVCastControlCommand& out); 43 static napi_status GetLoopMode(napi_env env, napi_value in, AVCastControlCommand& out); 48 static napi_status SetSpeed(napi_env env, AVCastControlCommand& in, napi_value& out); [all …]
|
/ohos5.0/foundation/multimedia/av_session/frameworks/common/src/ |
H A D | avcast_control_command.cpp | 22 AVCastControlCommand::AVCastControlCommand() in AVCastControlCommand() function in OHOS::AVSession::AVCastControlCommand 27 AVCastControlCommand::~AVCastControlCommand() in ~AVCastControlCommand() 31 AVCastControlCommand *AVCastControlCommand::Unmarshalling(Parcel& data) in Unmarshalling() 33 auto result = new (std::nothrow) AVCastControlCommand(); in Unmarshalling() 63 bool AVCastControlCommand::Marshalling(Parcel& parcel) const in Marshalling() 100 bool AVCastControlCommand::IsValid() const in IsValid() 105 int32_t AVCastControlCommand::SetCommand(int32_t cmd) in SetCommand() 114 int32_t AVCastControlCommand::GetCommand() const in GetCommand() 155 int32_t AVCastControlCommand::SetSeekTime(int32_t seekTime) in SetSeekTime() 173 int32_t AVCastControlCommand::SetVolume(int32_t volume) in SetVolume() [all …]
|
/ohos5.0/foundation/multimedia/av_session/frameworks/js/napi/session/src/ |
H A D | napi_cast_control_command.cpp | 24 { "play", { GetNoneParam, SetNoneParam, AVCastControlCommand::CAST_CONTROL_CMD_PLAY } }, 25 { "pause", { GetNoneParam, SetNoneParam, AVCastControlCommand::CAST_CONTROL_CMD_PAUSE } }, 26 { "stop", { GetNoneParam, SetNoneParam, AVCastControlCommand::CAST_CONTROL_CMD_STOP } }, 27 … { "playNext", { GetNoneParam, SetNoneParam, AVCastControlCommand::CAST_CONTROL_CMD_PLAY_NEXT } }, 30 { "rewind", { GetRewindTime, SetRewindTime, AVCastControlCommand::CAST_CONTROL_CMD_REWIND } }, 31 { "seek", { GetSeekTime, SetSeekTime, AVCastControlCommand::CAST_CONTROL_CMD_SEEK } }, 32 { "setVolume", { GetVolume, SetVolume, AVCastControlCommand::CAST_CONTROL_CMD_SET_VOLUME } }, 33 { "setSpeed", { GetSpeed, SetSpeed, AVCastControlCommand::CAST_CONTROL_CMD_SET_SPEED } }, 46 return AVCastControlCommand::CAST_CONTROL_CMD_INVALID; in ConvertCommand() 71 napi_status NapiCastControlCommand::GetValue(napi_env env, napi_value in, AVCastControlCommand& out) in GetValue() [all …]
|
H A D | napi_avcast_controller.cpp | 145 AVCastControlCommand castCommand_; in SendControlCommand() 786 AVCastControlCommand::CAST_CONTROL_CMD_PLAY_STATE_CHANGE); in OnPlaybackStateChange() 808 ->AddAvailableCommand(AVCastControlCommand::CAST_CONTROL_CMD_PLAY_NEXT); in OnPlayNext() 823 ->AddAvailableCommand(AVCastControlCommand::CAST_CONTROL_CMD_PLAY_PREVIOUS); in OnPlayPrevious() 968 ->RemoveAvailableCommand(AVCastControlCommand::CAST_CONTROL_CMD_PLAY_STATE_CHANGE); in OffPlaybackStateChange() 995 ->RemoveAvailableCommand(AVCastControlCommand::CAST_CONTROL_CMD_PLAY_NEXT); in OffPlayNext() 1012 ->RemoveAvailableCommand(AVCastControlCommand::CAST_CONTROL_CMD_PLAY_PREVIOUS); in OffPlayPrevious()
|
/ohos5.0/foundation/multimedia/av_session/frameworks/native/session/test/unittest/ |
H A D | avcast_controller_test.cpp | 235 AVCastControlCommand command; 253 AVCastControlCommand command; 259 AVCastControlCommand *ret = AVCastControlCommand::Unmarshalling(parcel); 275 AVCastControlCommand command; 281 AVCastControlCommand *ret = AVCastControlCommand::Unmarshalling(parcel); 297 AVCastControlCommand command; 303 AVCastControlCommand *ret = AVCastControlCommand::Unmarshalling(parcel); 319 AVCastControlCommand command; 325 AVCastControlCommand *ret = AVCastControlCommand::Unmarshalling(parcel); 347 AVCastControlCommand *ret = AVCastControlCommand::Unmarshalling(parcel); [all …]
|
/ohos5.0/foundation/multimedia/av_session/services/session/server/ |
H A D | hw_cast_stream_player.cpp | 88 case AVCastControlCommand::CAST_CONTROL_CMD_PLAY: in SendControlCommand() 91 case AVCastControlCommand::CAST_CONTROL_CMD_PAUSE: in SendControlCommand() 94 case AVCastControlCommand::CAST_CONTROL_CMD_STOP: in SendControlCommand() 97 case AVCastControlCommand::CAST_CONTROL_CMD_PLAY_NEXT: in SendControlCommand() 114 case AVCastControlCommand::CAST_CONTROL_CMD_FAST_FORWARD: in SendControlCommandWithParams() 118 case AVCastControlCommand::CAST_CONTROL_CMD_REWIND: in SendControlCommandWithParams() 122 case AVCastControlCommand::CAST_CONTROL_CMD_SEEK: in SendControlCommandWithParams() 126 case AVCastControlCommand::CAST_CONTROL_CMD_SET_VOLUME: in SendControlCommandWithParams() 131 case AVCastControlCommand::CAST_CONTROL_CMD_SET_SPEED: in SendControlCommandWithParams() 148 case AVCastControlCommand::CAST_CONTROL_CMD_TOGGLE_MUTE: in SendControlCommandWithParams() [all …]
|
H A D | avsession_item.cpp | 593 if (cmd == AVCastControlCommand::CAST_CONTROL_CMD_INVALID) { in dealValidCallback() 599 if (cmd == AVCastControlCommand::CAST_CONTROL_CMD_MAX) { in dealValidCallback() 903 AVCastControlCommand::CAST_CONTROL_CMD_SET_VOLUME); in InitializeCastCommands() 909 AVCastControlCommand::CAST_CONTROL_CMD_SET_SPEED); in InitializeCastCommands() 915 AVCastControlCommand::CAST_CONTROL_CMD_SEEK); in InitializeCastCommands() 939 return AVCastControlCommand::CAST_CONTROL_CMD_SET_LOOP_MODE; in SessionCommandToCastCommand() 941 return AVCastControlCommand::CAST_CONTROL_CMD_INVALID; in SessionCommandToCastCommand() 981 if (cmd == AVCastControlCommand::CAST_CONTROL_CMD_PLAY_STATE_CHANGE) { in AddSupportCastCommand() 988 } else if (cmd == AVCastControlCommand::CAST_CONTROL_CMD_SEEK) { in AddSupportCastCommand() 1021 } else if (cmd == AVCastControlCommand::CAST_CONTROL_CMD_SEEK) { in DeleteSupportCastCommand() [all …]
|
H A D | avcast_controller_item.cpp | 164 int32_t AVCastControllerItem::SendControlCommand(const AVCastControlCommand& cmd) in SendControlCommand() 312 validCommandsChangecallback_(AVCastControlCommand::CAST_CONTROL_CMD_MAX, cmds); in GetValidCommands() 348 std::vector<int32_t> cmds(AVCastControlCommand::CAST_CONTROL_CMD_MAX); in AddAvailableCommand() 376 std::vector<int32_t> cmds(AVCastControlCommand::CAST_CONTROL_CMD_MAX); in RemoveAvailableCommand()
|
H A D | hw_cast_stream_player.h | 36 void SendControlCommand(const AVCastControlCommand castControlCommand) override; 67 void SendControlCommandWithParams(const AVCastControlCommand castControlCommand);
|
H A D | avcast_controller_item.h | 58 int32_t SendControlCommand(const AVCastControlCommand& cmd) override;
|
/ohos5.0/foundation/multimedia/av_session/services/session/server/test/ |
H A D | hw_cast_stream_player_test.cpp | 134 AVCastControlCommand::CAST_CONTROL_CMD_INVALID, 135 AVCastControlCommand::CAST_CONTROL_CMD_PLAY, 136 AVCastControlCommand::CAST_CONTROL_CMD_PAUSE, 137 AVCastControlCommand::CAST_CONTROL_CMD_STOP, 138 AVCastControlCommand::CAST_CONTROL_CMD_PLAY_NEXT, 141 AVCastControlCommand::CAST_CONTROL_CMD_REWIND, 142 AVCastControlCommand::CAST_CONTROL_CMD_SEEK, 144 AVCastControlCommand::CAST_CONTROL_CMD_SET_SPEED, 148 AVCastControlCommand::CAST_CONTROL_CMD_MAX 160 AVCastControlCommand command; [all …]
|
H A D | hw_cast_test.cpp | 87 AVCastControlCommand cmd; 105 AVCastControlCommand cmd; 123 AVCastControlCommand cmd; 141 AVCastControlCommand cmd; 159 AVCastControlCommand cmd; 177 AVCastControlCommand cmd; 806 AVCastControlCommand cmd; 825 AVCastControlCommand cmd; 844 AVCastControlCommand cmd; 863 AVCastControlCommand cmd; [all …]
|
/ohos5.0/foundation/multimedia/av_session/interfaces/inner_api/native/session/include/ |
H A D | avcast_control_command.h | 27 class AVCastControlCommand : public Parcelable { 48 AVCastControlCommand(); 49 ~AVCastControlCommand() override; 51 static AVCastControlCommand* Unmarshalling(Parcel& data);
|
H A D | i_avcast_controller_proxy.h | 107 virtual void SendControlCommand(const AVCastControlCommand cmd) = 0;
|
H A D | avcast_controller.h | 44 virtual int32_t SendControlCommand(const AVCastControlCommand& cmd) = 0;
|
/ohos5.0/foundation/multimedia/av_session/services/session/ipc/proxy/ |
H A D | avcast_controller_proxy.cpp | 37 int32_t AVCastControllerProxy::SendControlCommand(const AVCastControlCommand& cmd) in SendControlCommand() 303 …CHECK_AND_RETURN_RET_LOG(cmd > AVCastControlCommand::CAST_CONTROL_CMD_INVALID, AVSESSION_ERROR, "i… in AddAvailableCommand() 304 …CHECK_AND_RETURN_RET_LOG(cmd < AVCastControlCommand::CAST_CONTROL_CMD_MAX, AVSESSION_ERROR, "inval… in AddAvailableCommand() 326 …CHECK_AND_RETURN_RET_LOG(cmd > AVCastControlCommand::CAST_CONTROL_CMD_INVALID, AVSESSION_ERROR, "i… in RemoveAvailableCommand() 327 …CHECK_AND_RETURN_RET_LOG(cmd < AVCastControlCommand::CAST_CONTROL_CMD_MAX, AVSESSION_ERROR, "inval… in RemoveAvailableCommand()
|
H A D | avcast_controller_proxy.h | 31 int32_t SendControlCommand(const AVCastControlCommand& cmd) override;
|
/ohos5.0/foundation/multimedia/av_session/services/session/ipc/stub/ |
H A D | avcast_controller_stub.cpp | 69 sptr<AVCastControlCommand> cmd = data.ReadParcelable<AVCastControlCommand>(); in HandleSendControlCommand()
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-Release to v4.0-beta2/ |
H A D | js-apidiff-multimedia.md | 190 |函数有变化|类名:AVCastControlCommand;<br>方法or属性:parameter?: media.PlaybackSpeed \| number;|类名:AVCastContr…
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-beta2/ |
H A D | js-apidiff-multimedia.md | 117 |新增|NA|类名:AVCastControlCommand;<br>方法or属性:command: AVCastControlCommandType;|@ohos.multimedia.avses… 118 |新增|NA|类名:AVCastControlCommand;<br>方法or属性:parameter?: media.PlaybackSpeed \| number;|@ohos.multimed… 121 |新增|NA|类名:AVCastController;<br>方法or属性:sendControlCommand(command: AVCastControlCommand, callback: A… 122 |新增|NA|类名:AVCastController;<br>方法or属性:sendControlCommand(command: AVCastControlCommand): Promise\<v…
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-avsession-kit/ |
H A D | js-apis-avsession.md | 3233 ## AVCastControlCommand<sup>10+</sup> 3324 sendControlCommand(command: AVCastControlCommand): Promise\<void> 3337 | command | [AVCastControlCommand](#avcastcontrolcommand10) | 是 | 会话的相关命令和命令相关参数。 | 3361 let avCommand: avSession.AVCastControlCommand = {command:'play'}; 3371 sendControlCommand(command: AVCastControlCommand, callback: AsyncCallback\<void>): void 3382 | command | [AVCastControlCommand](#avcastcontrolcommand10) | 是 | 会话的相关命令和命令相关参数。 | 3401 let avCommand: avSession.AVCastControlCommand = {command:'play'};
|
/ohos5.0/docs/en/release-notes/api-diff/v4.0-Release-vs-v4.0-beta2/ |
H A D | js-apidiff-multimedia.md | 190 …|Class name: AVCastControlCommand;<br>Method or attribute name: parameter?: media.PlaybackSpeed \|…
|
/ohos5.0/docs/en/release-notes/api-diff/v4.0-beta2/ |
H A D | js-apidiff-multimedia.md | 117 |Added|NA|Class name: AVCastControlCommand;<br>Method or attribute name: command: AVCastControlComm… 118 |Added|NA|Class name: AVCastControlCommand;<br>Method or attribute name: parameter?: media.Playback… 121 …troller;<br>Method or attribute name: sendControlCommand(command: AVCastControlCommand, callback: … 122 …troller;<br>Method or attribute name: sendControlCommand(command: AVCastControlCommand): Promise\<…
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-Release to v3.2-Release/ |
H A D | js-apidiff-multimedia.md | 191 |新增|NA|类名:AVCastControlCommand;<br>方法or属性:command: AVCastControlCommandType;|@ohos.multimedia.avses… 192 |新增|NA|类名:AVCastControlCommand;<br>方法or属性:parameter?: media.PlaybackSpeed \| number \| string \| Lo… 195 |新增|NA|类名:AVCastController;<br>方法or属性:sendControlCommand(command: AVCastControlCommand, callback: A… 196 |新增|NA|类名:AVCastController;<br>方法or属性:sendControlCommand(command: AVCastControlCommand): Promise\<v…
|
/ohos5.0/docs/en/application-dev/reference/apis-avsession-kit/ |
H A D | js-apis-avsession.md | 3233 ## AVCastControlCommand<sup>10+</sup> 3324 sendControlCommand(command: AVCastControlCommand): Promise\<void> 3337 | command | [AVCastControlCommand](#avcastcontrolcommand10) | Yes | Command to send.| 3361 let avCommand: avSession.AVCastControlCommand = {command:'play'}; 3371 sendControlCommand(command: AVCastControlCommand, callback: AsyncCallback\<void>): void 3382 | command | [AVCastControlCommand](#avcastcontrolcommand10) | Yes | Command to send.| 3401 let avCommand: avSession.AVCastControlCommand = {command:'play'};
|