Tagged articles
5 articles
Page 1 of 1
Watermelon Video Tech Team
Watermelon Video Tech Team
Dec 14, 2023 · Mobile Development

Why Does Android’s RenderThread Crash on TextureView.getBitmap? A Deep Dive and Fix

This article investigates the Android 5‑6 RenderThread native crash caused by a missing EGL surface when TextureView.getBitmap is called before ThreadedRender initialization, analyzes the root cause through code inspection and runtime logs, and presents a bytecode‑instrumentation fix that dramatically reduces the crash rate.

AndroidCrashAnalysisHooking
0 likes · 21 min read
Why Does Android’s RenderThread Crash on TextureView.getBitmap? A Deep Dive and Fix
NetEase Cloud Music Tech Team
NetEase Cloud Music Tech Team
Dec 9, 2020 · Mobile Development

Seamless Video Playback Across Activities in NetEase Cloud Music: MediaPlayer Rebinding and Mini‑Window Solutions

NetEase Cloud Music’s 8.0 redesign enables seamless video playback across Activities by rebinding MediaPlayer instances to new TextureViews via AIDL, using a process‑pooled player architecture, while also offering simpler alternatives such as animated fake page switches, seek‑based reinitialization, and application‑context view reuse.

AIDLActivityAndroid
0 likes · 13 min read
Seamless Video Playback Across Activities in NetEase Cloud Music: MediaPlayer Rebinding and Mini‑Window Solutions
Qizhuo Club
Qizhuo Club
Mar 16, 2018 · Mobile Development

How to Decode and Play Video with MediaCodec on Android Using TextureView

This guide walks through using Android's MediaCodec with a TextureView to extract, decode, and render video frames, covering setup of TextureView, MediaExtractor, handling input and output buffers, synchronizing playback with PTS/DTS, and adding audio playback via AudioTrack and Sonic library.

AndroidAudioTrackMediaCodec
0 likes · 14 min read
How to Decode and Play Video with MediaCodec on Android Using TextureView
Tencent Music Tech Team
Tencent Music Tech Team
Jan 26, 2018 · Mobile Development

Comparative Study and Implementation of Small‑Window Video Playback on Android

The article compares Android small‑window video playback techniques—SurfaceView, GLSurfaceView and TextureView—detailing their animation limitations, providing source‑code examples for embedded and floating implementations, and showing that TextureView combined with a singleton player offers the smoothest, most reliable small‑window experience.

AndroidPicture-in-PictureSurfaceView
0 likes · 14 min read
Comparative Study and Implementation of Small‑Window Video Playback on Android
Tencent Music Tech Team
Tencent Music Tech Team
Dec 29, 2017 · Mobile Development

Analysis of SurfaceView, GLSurfaceView, and TextureView for Picture-in-Picture Video Playback on Android

The article compares Android’s SurfaceView, GLSurfaceView, and TextureView for picture‑in‑picture video playback, explaining each view’s rendering model, the hole‑punch limitations of SurfaceView, Android N’s synchronous updates, and TextureView’s full transformation support at higher power cost, to guide developers in choosing the optimal solution.

AndroidMobile DevelopmentPicture-in-Picture
0 likes · 17 min read
Analysis of SurfaceView, GLSurfaceView, and TextureView for Picture-in-Picture Video Playback on Android