Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

actions.native.js 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. // @flow
  2. import { openDialog } from '../base/dialog';
  3. import ConnectionStatusComponent
  4. from '../video-menu/components/native/ConnectionStatusComponent';
  5. import RemoteVideoMenu from '../video-menu/components/native/RemoteVideoMenu';
  6. import { SET_VOLUME } from './actionTypes';
  7. import {
  8. ContextMenuLobbyParticipantReject
  9. } from './components/native';
  10. export * from './actions.any';
  11. /**
  12. * Displays the context menu for the selected lobby participant.
  13. *
  14. * @param {Object} participant - The selected lobby participant.
  15. * @returns {Function}
  16. */
  17. export function showContextMenuReject(participant: Object) {
  18. return openDialog(ContextMenuLobbyParticipantReject, { participant });
  19. }
  20. /**
  21. * Displays the connection status for the local meeting participant.
  22. *
  23. * @param {string} participantID - The selected meeting participant id.
  24. * @returns {Function}
  25. */
  26. export function showConnectionStatus(participantID: String) {
  27. return openDialog(ConnectionStatusComponent, { participantID });
  28. }
  29. /**
  30. * Displays the context menu for the selected meeting participant.
  31. *
  32. * @param {Object} participant - The selected meeting participant.
  33. * @returns {Function}
  34. */
  35. export function showContextMenuDetails(participant: Object) {
  36. return openDialog(RemoteVideoMenu, { participant });
  37. }
  38. /**
  39. * Sets the volume.
  40. *
  41. * @param {string} participantId - The participant ID associated with the audio.
  42. * @param {string} volume - The volume level.
  43. * @returns {{
  44. * type: SET_VOLUME,
  45. * participantId: string,
  46. * volume: number
  47. * }}
  48. */
  49. export function setVolume(participantId: string, volume: number) {
  50. return {
  51. type: SET_VOLUME,
  52. participantId,
  53. volume
  54. };
  55. }