-
-
Notifications
You must be signed in to change notification settings - Fork 4
Allow recording and saving audio #1836
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 36 commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
d872aad
move MediaUri into a media folder
hahn-kev d38032d
add a no-op save file implementation
hahn-kev 1306f96
setup typegen
hahn-kev f2b5a96
ensure blobs are correctly transformed into JSStreamReferences
hahn-kev a40a59b
change save to not expect a media uri, and type IJsStreamReference
hahn-kev 19829d6
handle saving files locally when using FwData
hahn-kev c86d7e2
update the local media path cache with newly created files
hahn-kev 166f96b
store recordings as a file with a generated name
hahn-kev e1932d7
prevent reporting an infinite duration which can crash the browser du…
hahn-kev 05098cd
generate a filename based on the time and guess the extension by mime…
hahn-kev 1b24ab2
save files locally using harmony resources
hahn-kev d3078ec
show an error for files which are too big
hahn-kev 1a76966
handle file saving and upload to lexbox
hahn-kev cb45b25
expose a media files gql endpoint
hahn-kev 49b2cd5
attempt to upload pending media files on sync
hahn-kev ae32663
update harmony
hahn-kev bcac0b5
fix ambiguity
hahn-kev 0125051
fix crash searching when an entry has a null lexeme form
hahn-kev 195122c
protect against overwriting a file which already exists, delete a cre…
hahn-kev 61e6ef9
correct error in file size
hahn-kev 731b28b
make style consistent
hahn-kev b868963
handle file not found better in FwData
hahn-kev dd90c61
write media tests base
hahn-kev 40352b0
implement media tests for Fwdata and harmony, and handle file path is…
hahn-kev 26d2bc4
properly handle duplicate filenames by returning a message that the f…
hahn-kev 79af587
remove unused parameter
hahn-kev fb5671f
change MediaAdapter to work off full file paths
hahn-kev 3807cb7
record workaround reason
hahn-kev 6fa062b
use `is true` to avoid issues with different return types in the future
hahn-kev ccd4d39
fix failing test
hahn-kev 3186449
fix lint issue
hahn-kev 149971f
disable warning about custom element props
hahn-kev 107c849
remove unused var
hahn-kev 463b81d
fix test failure due to getting uri before the file existed, ensure m…
hahn-kev 0e4a5eb
create SafeLength extension method for streams as CanSeek does not in…
hahn-kev de7fa0d
enable custom elements for storybook
hahn-kev 8cdaff0
setup permission manager for android blazor web client
hahn-kev 99df7d8
add origin of permission code
hahn-kev ca99d72
setup permission requests on windows maui
hahn-kev afa919d
Merge branch 'develop' into save-audio
hahn-kev a82cf76
remove unused variable
hahn-kev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
34 changes: 34 additions & 0 deletions
34
backend/FwLite/FwDataMiniLcmBridge.Tests/MiniLcmTests/MediaTests.cs
This file contains hidden or 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,34 @@ | ||
using FwDataMiniLcmBridge.Api; | ||
using FwDataMiniLcmBridge.Tests.Fixtures; | ||
|
||
namespace FwDataMiniLcmBridge.Tests.MiniLcmTests; | ||
|
||
[Collection(ProjectLoaderFixture.Name)] | ||
public class MediaTests : MediaTestsBase | ||
{ | ||
private readonly ProjectLoaderFixture _fixture; | ||
|
||
public MediaTests(ProjectLoaderFixture fixture) | ||
{ | ||
_fixture = fixture; | ||
} | ||
|
||
protected override Task<IMiniLcmApi> NewApi() | ||
{ | ||
return Task.FromResult<IMiniLcmApi>(_fixture.NewProjectApi("media-test", "en", "en")); | ||
} | ||
|
||
public override async Task InitializeAsync() | ||
{ | ||
await base.InitializeAsync(); | ||
var projectFolder = ((FwDataMiniLcmApi)Api).Cache.LangProject.LinkedFilesRootDir; | ||
Directory.CreateDirectory(projectFolder); | ||
} | ||
|
||
public override async Task DisposeAsync() | ||
{ | ||
var projectFolder = ((FwDataMiniLcmApi)Api).Cache.ProjectId.ProjectFolder; | ||
if (Directory.Exists(projectFolder)) Directory.Delete(projectFolder, true); | ||
await base.DisposeAsync(); | ||
} | ||
} |
This file contains hidden or 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
1 change: 1 addition & 0 deletions
1
backend/FwLite/FwDataMiniLcmBridge/Api/UpdateProxy/UpdateDictionaryProxy.cs
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.