Playing a video from the photo roll exhibits odd behaviour if a video is currently loaded in the media player

Bug #1401563 reported by Brendan Donegan
32
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
Undecided
Canonical Phone Foundations
Media Hub
Invalid
High
Unassigned
camera-app
Invalid
High
Unassigned
camera-app (Ubuntu)
Invalid
High
Unassigned
media-hub (Ubuntu)
Invalid
High
Unassigned
qtubuntu-media (Ubuntu)
Fix Released
Undecided
Jim Hodapp
qtubuntu-media (Ubuntu RTM)
Won't Fix
Undecided
Jim Hodapp

Bug Description

Prerequisites:

There must be two videos loaded on the phone, at least one which must have been taken with the phones camera and stored in the photo roll

Steps to reproduce:

1. Navigate to the Videos scope
2. Tap on a video
3. Tap on the Play button
4. Let the video play for some time and then open the camera application
5. Swipe left to get to the photo roll and swipe to any video in the photo roll
6. Tap on the play button

Expected result:

The video from the photo roll plays properly in the media player

Actual result:

The video is corrupted in some way - usually the video that was already loaded is shown as a still but with the sound of the video from the photo roll. Sometimes the correct video will be played but in the wrong aspect ratio.

current build number: 176
device name: krillin
channel: ubuntu-touch/ubuntu-rtm/14.09-proposed
last update: 2014-12-11 14:44:52
version version: 176
version ubuntu: 20141211
version device: 20141209-cae2b5f
version custom: 20141119-442-21-160

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in camera-app (Ubuntu):
status: New → Confirmed
Changed in camera-app:
importance: Undecided → High
Changed in camera-app (Ubuntu):
importance: Undecided → High
Revision history for this message
Arthur Mello (artmello) wrote :

This QML application also triggers the behavior mentioned on this bug.

Steps to reproduce:
1. Play some video from the Video Scope
2. Start the attached app (i.e. qmlscene video_play_test.qml ----desktop_file_hint=/usr/share/applications/<some_file>.desktop)
3. Tap on some of the videos file names listed by the app (it will list videos recorded by the camera-app)

Expected result: The video selected plays properly in the media player

Actual result: The video is corrupted, usually the video that was already loaded is shown as a still but with the sound of the selected video.

Basically what we found during the tests is that if an application calls Qt.openUrlExternally("video://sample.mp4") after a video is playing from Video Scope, the bug does not reproduce. But if we use a VideoOutput with Camera source (the case for the attached app and for camera-app) the issue happens.

Revision history for this message
Arthur Mello (artmello) wrote :

logcat when the issue happens

Changed in camera-app:
status: New → Confirmed
Revision history for this message
Bill Filler (bfiller) wrote :

Based on the logs and the sample, this appears to be an issue with either mediahub or video backend somewhere.

Changed in media-hub:
importance: Undecided → High
Changed in media-hub (Ubuntu):
importance: Undecided → High
Changed in camera-app:
status: Confirmed → Invalid
Changed in camera-app (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Jim Hodapp (jhodapp) wrote :

The issue definitely lives deeper than media-hub, but I'm not exactly sure which lower component quite yet so I'll leave media-hub on the affected list for now. This same issue shows up if you unlock the welcome screen while a video is loaded and the mediaplayer-app is in the foreground when locked. Once the issue is solved for one of these cases, it should be solved for all of them.

Jim Hodapp (jhodapp)
Changed in media-hub:
status: New → Triaged
Changed in media-hub (Ubuntu):
status: New → Confirmed
Changed in canonical-devices-system-image:
assignee: nobody → Canonical Phone Foundations (canonical-phonedations-team)
Jim Hodapp (jhodapp)
no longer affects: libhybris
Changed in media-hub (Ubuntu):
status: Confirmed → Invalid
Changed in media-hub:
status: Triaged → Invalid
Changed in canonical-devices-system-image:
status: New → Confirmed
Changed in qtubuntu-media (Ubuntu):
assignee: nobody → Jim Hodapp (jhodapp)
Changed in qtubuntu-media (Ubuntu RTM):
assignee: nobody → Jim Hodapp (jhodapp)
Changed in qtubuntu-media (Ubuntu):
status: New → In Progress
Changed in qtubuntu-media (Ubuntu RTM):
status: New → Triaged
Jim Hodapp (jhodapp)
Changed in qtubuntu-media (Ubuntu):
status: In Progress → Fix Committed
Changed in canonical-devices-system-image:
status: Confirmed → Fix Committed
Changed in qtubuntu-media (Ubuntu RTM):
status: Triaged → Won't Fix
Jim Hodapp (jhodapp)
Changed in qtubuntu-media (Ubuntu):
status: Fix Committed → Fix Released
Changed in canonical-devices-system-image:
status: Fix Committed → Fix Released
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Fixed,. The video is playing nearly properly see bug https://bugs.launchpad.net/ubuntu/+source/qtubuntu-media/+bug/1504586 for the remaining issue with the wrong orientation.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.