Closed
Bug 906869
Opened 11 years ago
Closed 10 years ago
In-browser YouTube shows black blank screen on playback when the YouTube application is not installed or disabled on the device
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 936851
People
(Reporter: krudnitski, Unassigned)
Details
STR on my Nexus 4
- disable the youtube app
- go to the youtube site (and served the mobile version)
- click on a youtube video / tap on the video (whatever is popular that day)
- the whole screen goes black
You can exit out of there with the back button.
I thought that we supported in-app youtube playback?
Occurs on GA as well as Nightly.
Comment 1•11 years ago
|
||
When YouTube is disabled, the application/vnd.youtube content-type is still what we get and it's not handled properly.
I/ActivityManager( 517): START u0 {act=org.mozilla.gecko.PLAY_VIDEO dat=vnd.youtube:Z1s-6-yKzB4?vndapp=youtube_mobile&vndclient=mv-google&vndel=watch&vnddnc=1 flg=0x4000000 cmp=org.mozilla.fennec/org.mozilla.gecko.VideoPlayer} from pid 7154
E/VideoPlayer( 7154): exception
E/VideoPlayer( 7154): android.os.NetworkOnMainThreadException
E/VideoPlayer( 7154): at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1133)
E/VideoPlayer( 7154): at java.net.InetAddress.lookupHostByName(InetAddress.java:385)
E/VideoPlayer( 7154): at java.net.InetAddress.getAllByNameImpl(InetAddress.java:236)
E/VideoPlayer( 7154): at java.net.InetAddress.getAllByName(InetAddress.java:214)
E/VideoPlayer( 7154): at libcore.net.http.HttpConnection.<init>(HttpConnection.java:70)
E/VideoPlayer( 7154): at libcore.net.http.HttpConnection.<init>(HttpConnection.java:50)
E/VideoPlayer( 7154): at libcore.net.http.HttpConnection$Address.connect(HttpConnection.java:340)
E/VideoPlayer( 7154): at libcore.net.http.HttpConnectionPool.get(HttpConnectionPool.java:87)
E/VideoPlayer( 7154): at libcore.net.http.HttpConnection.connect(HttpConnection.java:128)
E/VideoPlayer( 7154): at libcore.net.http.HttpEngine.openSocketConnection(HttpEngine.java:316)
E/VideoPlayer( 7154): at libcore.net.http.HttpEngine.connect(HttpEngine.java:311)
E/VideoPlayer( 7154): at libcore.net.http.HttpEngine.sendSocketRequest(HttpEngine.java:290)
E/VideoPlayer( 7154): at libcore.net.http.HttpEngine.sendRequest(HttpEngine.java:240)
E/VideoPlayer( 7154): at libcore.net.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:282)
E/VideoPlayer( 7154): at libcore.net.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:177)
E/VideoPlayer( 7154): at org.mozilla.gecko.VideoPlayer.getSpecFromYouTubeVideoID(VideoPlayer.java:58)
E/VideoPlayer( 7154): at org.mozilla.gecko.VideoPlayer.onCreate(VideoPlayer.java:42)
Comment 2•11 years ago
|
||
Chris ported over VideoPlayer from XUL with https://hg.mozilla.org/mozilla-central/rev/8f93de36b3bc but perhaps something changed over time
Updated•11 years ago
|
tracking-fennec: ? → -
Comment 3•11 years ago
|
||
We never really intended to support that VideoPlayer, hence why it is minus. Still should be a good mentor bug and a nice-to-have.
Whiteboard: mentor=blassey
Updated•11 years ago
|
Whiteboard: mentor=blassey → [good-first-bug][lang=java][mentor=blassey]
Comment 4•11 years ago
|
||
HI Brad.
I am a newbiee to it and interested to solve this bug. Please guide me.
Comment 5•11 years ago
|
||
Brad is on vacation, but I know he said that YouTube had changed their spec recently. I think you could start by adding some debugging code around here: http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/VideoPlayer.java#39
i.e. Import the android.util.Log class and add a line like Log.i("GeckoVideoPlayer", "onCreate: " + data);
See what URL we are passing to the VideoPlayer, and add a bunch of logging in the getSpecFromYouTubeVideoID function as well. Hopefully you can track down where things are moving off track.
Comment 6•11 years ago
|
||
Thanks.
I will look into it
Comment 7•11 years ago
|
||
Hey Wesley,
when can I catch up with you on irc? :)
Comment 8•11 years ago
|
||
(In reply to Sanchit Garg from comment #7)
> Hey Wesley,
> when can I catch up with you on irc? :)
West coast working hours tend to be best
Updated•11 years ago
|
Whiteboard: [good-first-bug][lang=java][mentor=blassey] → [good first bug][lang=java][mentor=blassey]
Is this bug still up for grabs? I'm looking for a first bug to work on, and I'd like to take it :)
Updated•11 years ago
|
Assignee: nobody → josh
Comment 12•11 years ago
|
||
From #947598: You can work around this bug by changing to default Android browser's UA string (by using the Phony extension for example). This makes in-browser playback work.
Comment 13•11 years ago
|
||
(In reply to Markus Unterwaditzer from comment #12)
> From #947598: You can work around this bug by changing to default Android
> browser's UA string (by using the Phony extension for example). This makes
> in-browser playback work.
I have tried this. It does make the video play (with certains UA strings only) but there are still important layout problems. It will not go fullscreen and about a quarter of the video is off-screen. Also, after a few tries only the sound works.
Comment 15•11 years ago
|
||
Can you elaborate on "hanging to default Android browser's UA string"
Flags: needinfo?(markus)
Comment 16•11 years ago
|
||
(In reply to rmcguigan from comment #15)
> Can you elaborate on "hanging to default Android browser's UA string"
Not sure hoe i could elaborate. There are addons out there which allow you to change the user agent of Firefox, and using them to change the user agent to the one the stock browser uses allows you to play the video.
Flags: needinfo?(markus)
Comment 18•10 years ago
|
||
I also have the same problem on a GS4 with CM 10.2.0. In the desktop version of Youtube the playback works. Using other browsers (Opera, the built in one) also works. Tested with the current release and beta version (14.05.2014). The Youtube app is not installed.
Updated•10 years ago
|
Summary: in-browser youtube shows black blank screen → In-browser YouTube shows black blank screen on playback when the YouTube application is not installed or disabled on the device
Assignee | ||
Updated•10 years ago
|
Mentor: blassey.bugs
Whiteboard: [good first bug][lang=java][mentor=blassey] → [good first bug][lang=java]
Updated•10 years ago
|
Mentor: blassey.bugs
Updated•10 years ago
|
Mentor: blassey.bugs, wjohnston
Comment 21•10 years ago
|
||
Bug 936851 has some direction for moving forward.
Assignee: josh → nobody
Mentor: blassey.bugs, wjohnston
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Whiteboard: [good first bug][lang=java]
Comment 22•10 years ago
|
||
This issue does NOT only occur on the Kindle Fire HDX.
Comment 23•10 years ago
|
||
(In reply to Markus Unterwaditzer from comment #22)
> This issue does NOT only occur on the Kindle Fire HDX.
Yes, I understand the confusion. We're applying a general fix over in the other bug that's all.
Updated•9 years ago
|
tracking-fennec: - → ---
Flags: needinfo?(josh)
Assignee | ||
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•