m.youtube can not display Author : Fred Hsu Date : 2011/08/31
Problem Statement Can not display video on m.youtube.com
Trace the video player flow (1) Android provides a VideoView widget to play a video. You can add this widget to layout xml. <VideoView … /> Or create this widget dynamically. mVideoView = new VideoView(); need import android.widget.VideoView
Trace the video player flow (2) Check video path… VideoView. setVideoURI(Uri uri) method. setVideoURI creates a MediaPlayer object and send uri to setDataSource method. setDataSource will check a local file or try server side first.
Trace the video player flow (3) Java MediaPlayer Jni android_media_MediaPlayer Framework MediaPlayer Framework MediaPlayerService Video Player MediaPlayer.setDataSource android_media_MediaPlayer_setDataSource MediaPlayer::setDataSource IPC Flow : MediaPlayerService::Client::setDataSource PVPlayer StagefrightPlayer Web base url Local content
Find out root cause We don’t support opencore PVPlayer for the web base url ( http::// and rtsp:// ) Parse web base url and create the right video player.
Q & A

More Related Content

PDF
Welovejs AngularJS
PPT
PDF
YouTube APIs presentation at Facultad de Ciencias, Universidad Nacional Autón...
PDF
Building Video Applications with YouTube APIs
PPTX
10.3 Android Video
PDF
Basic/Advanced Text-Chat on vidyo.io
PDF
How To Scrape YouTube Data For Smart Business Strategies.pdf
PDF
안드로이드 MediaPlayer & VideoView
Welovejs AngularJS
YouTube APIs presentation at Facultad de Ciencias, Universidad Nacional Autón...
Building Video Applications with YouTube APIs
10.3 Android Video
Basic/Advanced Text-Chat on vidyo.io
How To Scrape YouTube Data For Smart Business Strategies.pdf
안드로이드 MediaPlayer & VideoView

Similar to M.youtube can not display (20)

PDF
Mobile Hybrid Applications dan Android Web View Widget
PDF
Mobile Spaces
PDF
IBM Connections Activity Stream APIs - Lab Dec 2012
PDF
WebRTC Standards & Implementation Q&A - All about browser interoperability
KEY
HTML5 Video Player - HTML5 Dev Conf 2012
PPT
YouTube for Developers
PDF
HTML5 Multimedia: where we are, where we're going
PPTX
Java media framework
PDF
Add Custom Model and ORM to Node.js
PPTX
Lap around Visual Studio 2013
PPT
Jsr135 sup
PPTX
17 camera, media, and audio in windows phone 8.1
ODP
Web Standards for AR workshop at ISMAR13
PDF
The unconventional devices for the Android video streaming
PPTX
Video Content Management
PPT
Introduction To Webrtc
PDF
HTML5 multimedia - where we are, where we're going
PDF
yapi.js introduction (mopcon 2016 version)
PPTX
Exoplayer 2
PDF
The Glass Class - Tutorial 2 - Mirror API
Mobile Hybrid Applications dan Android Web View Widget
Mobile Spaces
IBM Connections Activity Stream APIs - Lab Dec 2012
WebRTC Standards & Implementation Q&A - All about browser interoperability
HTML5 Video Player - HTML5 Dev Conf 2012
YouTube for Developers
HTML5 Multimedia: where we are, where we're going
Java media framework
Add Custom Model and ORM to Node.js
Lap around Visual Studio 2013
Jsr135 sup
17 camera, media, and audio in windows phone 8.1
Web Standards for AR workshop at ISMAR13
The unconventional devices for the Android video streaming
Video Content Management
Introduction To Webrtc
HTML5 multimedia - where we are, where we're going
yapi.js introduction (mopcon 2016 version)
Exoplayer 2
The Glass Class - Tutorial 2 - Mirror API
Ad

Recently uploaded (20)

PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
DP Operators-handbook-extract for the Mautical Institute
PDF
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
PPTX
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
PPTX
O2C Customer Invoices to Receipt V15A.pptx
PDF
Architecture types and enterprise applications.pdf
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PPT
Geologic Time for studying geology for geologist
PDF
A contest of sentiment analysis: k-nearest neighbor versus neural network
PDF
A novel scalable deep ensemble learning framework for big data classification...
PDF
Hindi spoken digit analysis for native and non-native speakers
PDF
Assigned Numbers - 2025 - Bluetooth® Document
DOCX
search engine optimization ppt fir known well about this
PPTX
Tartificialntelligence_presentation.pptx
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PPTX
Final SEM Unit 1 for mit wpu at pune .pptx
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PDF
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
PDF
sustainability-14-14877-v2.pddhzftheheeeee
Group 1 Presentation -Planning and Decision Making .pptx
DP Operators-handbook-extract for the Mautical Institute
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
O2C Customer Invoices to Receipt V15A.pptx
Architecture types and enterprise applications.pdf
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
Geologic Time for studying geology for geologist
A contest of sentiment analysis: k-nearest neighbor versus neural network
A novel scalable deep ensemble learning framework for big data classification...
Hindi spoken digit analysis for native and non-native speakers
Assigned Numbers - 2025 - Bluetooth® Document
search engine optimization ppt fir known well about this
Tartificialntelligence_presentation.pptx
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Final SEM Unit 1 for mit wpu at pune .pptx
Taming the Chaos: How to Turn Unstructured Data into Decisions
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
sustainability-14-14877-v2.pddhzftheheeeee
Ad

M.youtube can not display

  • 1. m.youtube can not display Author : Fred Hsu Date : 2011/08/31
  • 2. Problem Statement Can not display video on m.youtube.com
  • 3. Trace the video player flow (1) Android provides a VideoView widget to play a video. You can add this widget to layout xml. <VideoView … /> Or create this widget dynamically. mVideoView = new VideoView(); need import android.widget.VideoView
  • 4. Trace the video player flow (2) Check video path… VideoView. setVideoURI(Uri uri) method. setVideoURI creates a MediaPlayer object and send uri to setDataSource method. setDataSource will check a local file or try server side first.
  • 5. Trace the video player flow (3) Java MediaPlayer Jni android_media_MediaPlayer Framework MediaPlayer Framework MediaPlayerService Video Player MediaPlayer.setDataSource android_media_MediaPlayer_setDataSource MediaPlayer::setDataSource IPC Flow : MediaPlayerService::Client::setDataSource PVPlayer StagefrightPlayer Web base url Local content
  • 6. Find out root cause We don’t support opencore PVPlayer for the web base url ( http::// and rtsp:// ) Parse web base url and create the right video player.