Skip to content

Commit

Permalink
Better video playback (#67)
Browse files Browse the repository at this point in the history
* Add support to play inline;

* Easy changes on PostComposer;
  • Loading branch information
stef-coenen authored Jan 23, 2024
1 parent 8efc648 commit 73ee9b3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
24 changes: 14 additions & 10 deletions packages/feed-app/src/components/SocialFeed/PostComposer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ const PostComposer = ({
channel && setChannel(channel);
setCustomAcl(acl);
}}
excludeMore={true}
ref={selectRef}
/>
<ActionButton
Expand Down Expand Up @@ -319,7 +320,7 @@ export const ChannelOrAclSelector = React.forwardRef(
e.target.value = getDefaultChannel();
} else if (e.target.value === 'custom') {
setIsCustomAclOpen(true);
e.target.value = getPublicChannel();
// e.target.value = getPublicChannel();
} else {
onChange(
channels.find((chnl) =>
Expand All @@ -346,15 +347,18 @@ export const ChannelOrAclSelector = React.forwardRef(
ref={ref}
disabled={disabled}
>
{channels.map((channel) => (
<option
value={channel.fileMetadata.appData.uniqueId}
key={channel.fileMetadata.appData.uniqueId}
>
{channel.fileMetadata.appData.content.name}
</option>
))}
{!excludeMore && !excludeCustom ? (
<optgroup label={t('Channels')}>
{channels.map((channel) => (
<option
value={channel.fileMetadata.appData.uniqueId}
key={channel.fileMetadata.appData.uniqueId}
>
{channel.fileMetadata.appData.content.name}
</option>
))}
</optgroup>

{!excludeMore || !excludeCustom ? (
<optgroup label={t('Advanced')}>
{!excludeMore ? (
<option value={'more'} key={'more'}>
Expand Down
1 change: 1 addition & 0 deletions packages/ui-lib/src/components/OdinVideo/OdinVideo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export const OdinVideo = (videoProps: OdinVideoProps) => {
data-globaltransitid={globalTransitId}
data-filekey={fileKey}
data-playback={playback}
playsInline={true}
>
{isInView && playback !== undefined ? (
playback === 'encrypted-mse' ? (
Expand Down

0 comments on commit 73ee9b3

Please sign in to comment.