forked from jitsi/jitsi-meet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rn: add youtube player for mobile app
- Loading branch information
1 parent
8758c22
commit df64dd8
Showing
21 changed files
with
923 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/** | ||
* The type of the action which signals to update the current known state of the | ||
* shared YouTube video. | ||
* | ||
* { | ||
* type: SET_SHARED_VIDEO_STATUS, | ||
* status: string, | ||
* time: string, | ||
* ownerId: string | ||
* } | ||
*/ | ||
export const SET_SHARED_VIDEO_STATUS = 'SET_SHARED_VIDEO_STATUS'; | ||
|
||
/** | ||
* The type of the action which signals to start the flow for starting or | ||
* stopping a shared YouTube video. | ||
* | ||
* { | ||
* type: TOGGLE_SHARED_VIDEO | ||
* } | ||
*/ | ||
export const TOGGLE_SHARED_VIDEO = 'TOGGLE_SHARED_VIDEO'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
// @flow | ||
|
||
import { openDialog } from '../base/dialog'; | ||
|
||
import { SET_SHARED_VIDEO_STATUS } from './actionTypes'; | ||
import { EnterVideoLinkPrompt } from './components'; | ||
|
||
/** | ||
* Updates the current known status of the shared YouTube video. | ||
* | ||
* @param {string} videoId - The youtubeId of the video to be shared. | ||
* @param {string} status - The current status of the YouTube video being shared. | ||
* @param {number} time - The current position of the YouTube video being shared. | ||
* @param {string} ownerId - The participantId of the user sharing the YouTube video. | ||
* @returns {{ | ||
* type: SET_SHARED_VIDEO_STATUS, | ||
* ownerId: string, | ||
* status: string, | ||
* time: number, | ||
* videoId: string | ||
* }} | ||
*/ | ||
export function setSharedVideoStatus(videoId: string, status: string, time: number, ownerId: string) { | ||
return { | ||
type: SET_SHARED_VIDEO_STATUS, | ||
ownerId, | ||
status, | ||
time, | ||
videoId | ||
}; | ||
} | ||
|
||
/** | ||
* Starts the flow for starting or stopping a shared YouTube video. | ||
* | ||
* @returns {{ | ||
* type: TOGGLE_SHARED_VIDEO | ||
* }} | ||
*/ | ||
export function toggleSharedVideo() { | ||
return { | ||
type: 'TOGGLE_SHARED_VIDEO' | ||
}; | ||
} | ||
|
||
/** | ||
* Displays the prompt for entering the youtube video link. | ||
* | ||
* @param {Function} onPostSubmit - The function to be invoked when a valid link is entered. | ||
* @returns {Function} | ||
*/ | ||
export function showEnterVideoLinkPrompt(onPostSubmit: ?Function) { | ||
return openDialog(EnterVideoLinkPrompt, { onPostSubmit }); | ||
} |
Oops, something went wrong.