Commit Graph

777 Commits

Author SHA1 Message Date
manuroe 39e2aee7df Merge remote-tracking branch 'origin/yostyle/voice_broadcast_playing' into yostyle/voice_broadcast_playing 2022-10-20 17:51:46 +02:00
yostyle c67abf7415 Fixes after rebase from develop 2022-10-20 17:51:02 +02:00
yostyle af9019cdba Merge branch 'develop' into yostyle/voice_broadcast_playing 2022-10-20 17:45:41 +02:00
manuroe 1e1b8e4d76 VB: Fix playLive after pause 2022-10-20 17:24:46 +02:00
yostyle 0b77d674ce Display live voice broadcast 2022-10-20 16:48:20 +02:00
manuroe f954975fe2 VB: Remove a done TODO 2022-10-20 16:10:29 +02:00
ismailgulek d62640c56d Fix infinite layout loops on timeline (#6942)
* Remove `forceZeroSageAreaInsets` from `VectorHostingController`

* Fix layout issues when adding hosting views into the content view

* Use the new api when adding views into the content

* Add changelog
2022-10-20 15:55:07 +03:00
manuroe 34a49f966a VB: Own code review 2022-10-20 13:39:27 +02:00
manuroe 64d4a91463 VB: Support live playback
from the beginning or with go live
2022-10-20 12:25:40 +02:00
manuroe cc39c8511e VB: Started live playback 2022-10-20 11:33:17 +02:00
manuroe 4da33a5259 VB: Introduce VoiceBroadcastState for the UI 2022-10-20 10:37:35 +02:00
Velin92 4c5dfb97f9 Merge pull request #6938 from vector-im/mauroromito/6935_wysiwyg_placeholder
Rich Text Composer Placeholder Text
2022-10-20 10:04:33 +02:00
manuroe cf75f9bded Merge remote-tracking branch 'origin/yostyle/voice_broadcast_playing' into yostyle/voice_broadcast_playing 2022-10-20 09:48:50 +02:00
manuroe f21b3d8ba9 VB: Manage playback completion properly
Make VoiceManager audioPlayerDidFinishPlaying called when the last item of the playlist has been played
2022-10-20 09:38:14 +02:00
yostyle 690059c4e4 Remove matrixsdk import 2022-10-20 09:18:32 +02:00
yostyle 3cad530e50 Add voice broadcast error view 2022-10-20 02:36:27 +02:00
yostyle ba11761d79 Fixes after rebase on develop
Update voice broadcast playback UI
2022-10-20 02:01:01 +02:00
manuroe 58f9feaae1 VB: Support multi chunks playback 2022-10-20 01:45:57 +02:00
manuroe 56bec55080 VB: Make the view model aware of every chunk new coming
this reactive approach will help to cache and reorder them by sequence
2022-10-20 01:45:57 +02:00
manuroe 79ca7b8dc0 Expose better broadcast details to the view
Starting from the sender name but we can add more things. This is up to the design expectation
2022-10-20 01:45:57 +02:00
manuroe e2f41f45f1 VB: Improve playback states 2022-10-20 01:45:57 +02:00
manuroe c51287a490 VB: Playback starts to work but only the first chunk if it is ogg 2022-10-20 01:45:57 +02:00
manuroe 664004eec5 VB: Move view logic to the view model 2022-10-20 01:45:57 +02:00
manuroe 5d198d0d3a Renamed back to VoiceBroadcastPlaybackCoordinator
The logic will be moved to the view model. This file will just serve the SwiftUI view
2022-10-20 01:45:57 +02:00
manuroe eb71a8f34a Rename some existing voice broadcast files to VoiceBroadcastPlayback
Record will happen in separate files
2022-10-20 01:45:57 +02:00
manuroe d7fe686429 Simplify TimelineVoiceBroadcastDetails struct 2022-10-20 01:45:57 +02:00
manuroe 2bce98f1c7 Removed VoiceBroadcastProtocol
We do not need to abstract it
2022-10-20 01:45:57 +02:00
manuroe 9be993e532 Rename TimelineVoiceBroadcastCoordinator to controller
It has nothing todo with a coordinator. Start to follow the same naming as VoiceMessage.

Remove SwiftUI VoiceBroadcastChunk to make it build
2022-10-20 01:45:57 +02:00
yostyle 1c171b61f4 Check user id to prevent fake ckunk 2022-10-20 01:45:57 +02:00
yostyle c0afefb4c8 Add chunks in TimelineVoiceBroadcastDetails 2022-10-20 01:45:57 +02:00
yostyle edca596f49 Add some comments 2022-10-20 01:45:57 +02:00
yostyle 90acfe9a43 Init voice broadcast playing service 2022-10-20 01:45:57 +02:00
Giom Foret 68f2b1cdef Display info dialogs when we prevent the user from starting a new voice broadcast
- Update the existing implementation used to start/stop a voice broadcast in order to handle the different cases where voice broadcast is denied
- Add the optional Voice broadcast action to the new wysiwyg composer
2022-10-20 00:38:42 +02:00
manuroe 0104cda91a VB: Support multi chunks playback 2022-10-19 23:09:48 +02:00
manuroe d2ccee0b50 VB: Make the view model aware of every chunk new coming
this reactive approach will help to cache and reorder them by sequence
2022-10-19 17:28:08 +02:00
Mauro Romito f895c17ed2 added a simple test 2022-10-19 16:40:07 +02:00
manuroe ec5a4cb7ad Expose better broadcast details to the view
Starting from the sender name but we can add more things. This is up to the design expectation
2022-10-19 15:32:03 +02:00
Mauro Romito 2182882ddd added placeholder to the viewModel 2022-10-19 15:08:12 +02:00
manuroe 548520ee63 VB: Improve playback states 2022-10-19 15:01:43 +02:00
manuroe 373309cce5 VB: Playback starts to work but only the first chunk if it is ogg 2022-10-19 14:23:09 +02:00
manuroe ec08a54c60 VB: Move view logic to the view model 2022-10-19 13:00:35 +02:00
manuroe 26d8de7bfe Renamed back to VoiceBroadcastPlaybackCoordinator
The logic will be moved to the view model. This file will just serve the SwiftUI view
2022-10-19 10:20:38 +02:00
manuroe 833e5654d0 Rename some existing voice broadcast files to VoiceBroadcastPlayback
Record will happen in separate files
2022-10-19 10:13:07 +02:00
manuroe 2420274a50 Simplify TimelineVoiceBroadcastDetails struct 2022-10-19 09:42:00 +02:00
manuroe 3a21d4acd5 Removed VoiceBroadcastProtocol
We do not need to abstract it
2022-10-19 09:38:36 +02:00
manuroe 439d64917e Rename TimelineVoiceBroadcastCoordinator to controller
It has nothing todo with a coordinator. Start to follow the same naming as VoiceMessage.

Remove SwiftUI VoiceBroadcastChunk to make it build
2022-10-19 09:34:58 +02:00
yostyle c01c3a7752 Check user id to prevent fake ckunk 2022-10-19 09:09:57 +02:00
yostyle 7ebb57fa4d Add chunks in TimelineVoiceBroadcastDetails 2022-10-18 23:36:21 +02:00
yostyle a168f7f28a Add some comments 2022-10-18 17:32:40 +02:00
yostyle 71eb742bef Init voice broadcast playing service 2022-10-18 16:36:02 +02:00