preparing to ship
This commit is contained in:
@@ -10,14 +10,14 @@ export default function VideoPlayer({data, src}) {
|
|||||||
|
|
||||||
const crossPostSrc = src;
|
const crossPostSrc = src;
|
||||||
|
|
||||||
let url; // contains video source, routed accordingly by logic below
|
let url; // contains video source, routed accordingly by logic below
|
||||||
|
|
||||||
if (crossPostSrc) {
|
if (crossPostSrc) {
|
||||||
url = crossPostSrc;
|
url = crossPostSrc; // ... for crossposts
|
||||||
} else if (data.url) {
|
} else if (data.url) {
|
||||||
url = data.url;
|
url = data.url; // ... for local posts, where the url
|
||||||
} else {
|
} else { // can be accessed at data.url
|
||||||
url = null;
|
url = null; // otherwise, is null
|
||||||
}
|
}
|
||||||
|
|
||||||
useEffect(() => { // checks the endpoint where audio may be found
|
useEffect(() => { // checks the endpoint where audio may be found
|
||||||
|
|||||||
Reference in New Issue
Block a user