Skip to content

Video block (first iteration) #855

@pinarol

Description

@pinarol

Make a basic video block that can upload & insert media.

Some technical subtasks

  • Extract MediaUpload component from image block ( similar to what web has )
  • Extract MediaUploadProgress component from image block ( to be used by video block also )
  • Enhance MediaPlaceholder component to support different media types ( similar to what web has )
  • Add video block
  • Add a sample video block to Example app content

Example App work

  • Integrate react-native-video library to example apps

    • Android
    • iOS
  • Update example apps due to bridge changes and make it compile

    • Android
    • iOS
  • Update example apps to mock media upload behavior

    • Android
    • iOS
  • Update example apps to mock media upload failed behavior

    • Android
    • iOS (added listening to long press gesture to mock failure of upload)
  • Update Example apps to mock video selection of WordPress media library ( just pass a valid video url when that option is selected )

    • Android
    • iOS

WPiOS and WPAndroid work

  • Integrate react-native-video library

    • WPAndroid
    • WPiOS
  • Update apps due to bridge changes and make it compile (new filter parameter)

    • WPAndroid
    • WPiOS
  • Use the new filter parameter passed through bridge to filter down media shown to user from Device

    • WPAndroid
    • WPiOS
  • Use the new filter parameter passed through bridge to filter down media shown to user from WordPress Media library

    • WPAndroid
    • WPiOS
  • Use the new filter parameter passed through bridge to decide what type of media to capture if user selects 'take media'

    • WPAndroid
    • WPiOS
  • After the upload is completed request the video's VideoPress URL from remote (by using the videopressGUID) and pass the VideoPress URL to the media upload update event. This is a url in this format: https://pinpin.blog/wp-content/uploads/2019/04/sample_video.mov

    • WPAndroid
    • WPiOS

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions