Skip to content

zerstyu/MediaCodec_Mirroring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MediaCodec Mirroring

This is :

  • Mirroring using MediaCodec.
  • It operates in the background. So, it does not stop to interrupt.

※ interrupt ? call, message, home button and so on.

Server

    1. get Bitmap using getDrawingCache().
    1. Bitmap to Byte[]
    1. Byte[] into Encoder
    1. get Byte[] (encoded data) from Encoder
    1. Transfer Byte[] to Client

Client

    1. Receive data from Server
    1. Received data to Byte[]
    1. Byte[] into Decoder
    1. Decoded data into Surface
    1. Rendering with the Surface

However :

  • It's not implemented layout.
  • It's not encoded with the surface. So, need to RGB2YUV and NV21->NV12. Results in a low performance.

Feature

  • Application Mirroring
  • H.264 Encoding, Decoding
  • It's not used MediaExtractor.

Requirements

  • Requires minimum API 16 (Android 4.1)

Android API

Reference

Image

alt tag

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages