Closed
Bug 948362
Opened 11 years ago
Closed 10 years ago
[Gaia][Gallery] gallery application: handle data transfer
Categories
(Firefox OS Graveyard :: Gaia::Gallery, defect, P1)
Tracking
(Not tracked)
RESOLVED
FIXED
1.4 S1 (14feb)
People
(Reporter: johnhu, Assigned: johnhu)
References
Details
(Whiteboard: [FT:RIL] sharing video/audio/image [fxos:media])
Attachments
(4 files)
+++ This bug was initially created as a clone of Bug #903253 +++ During the image sharing via NFC, data transfer needs to be handle.
Assignee | ||
Comment 1•11 years ago
|
||
This is a cloned bug for gallery app. We don't need to depend on bug 903253
No longer depends on: 903253
Assignee | ||
Updated•11 years ago
|
Summary: [Gaia] Video/image application: handle data transfer → [Gaia][Gallery] image application: handle data transfer
Assignee | ||
Updated•11 years ago
|
blocking-b2g: --- → 1.4?
Assignee | ||
Updated•11 years ago
|
Summary: [Gaia][Gallery] image application: handle data transfer → [Gaia][Gallery] gallery application: handle data transfer
Assignee | ||
Comment 2•11 years ago
|
||
According to bug 933093, what we need to do is to put the following code at the correct place: window.navigator.mozNfc.onpeerfound = function(nfcPeer) { // Negotiates WiFi or BT connection, presenting UI nfcPeer.sendFile(blob); }; The correct place means where the app is under single file sharable context.
Comment 3•10 years ago
|
||
Bug 952217 is a blocker for this bug.
Comment 4•10 years ago
|
||
Does gallery have nfc-manager permissions? If so, why does it need it? 952217 only hides a manager interface from the app, but the app level usage should not be changing, and should not block. The interface in question is: * Users of this API should have valid permissions 'nfc-manager' * and 'nfc-write' */ DOMRequest checkP2PRegistration(DOMString manifestUrl);
Updated•10 years ago
|
Whiteboard: [FT:RIL] sharing video/audio/image
Comment 6•10 years ago
|
||
No. I'm not working on this at the moment. Do you want to take it?
Comment 7•10 years ago
|
||
Actually I'm not a developer. Just trying to see if we can have a estimated time of landing. Let me initiate the schedule discussion offline.
Assignee | ||
Updated•10 years ago
|
Updated•10 years ago
|
Priority: -- → P1
Target Milestone: --- → 1.3 C3/1.4 S3(31jan)
Assignee | ||
Comment 8•10 years ago
|
||
As offline discussion with Hema, I am taking over this bug.
Assignee: nobody → johu
Flags: needinfo?(dmarcos)
Assignee | ||
Comment 9•10 years ago
|
||
only upload this patch but not set review because this patch is tested in real workable device.
Comment 10•10 years ago
|
||
Hi John, Find the patch for sharing Gallery Image/Video files. Necessary functions and handlers added. Implementation Details: 1. Add/Remove the nfcpeerready_handler 2. Get the Current file from the opened Index 3. Check the file info either Video or Image 4. Get the Blob image of the File 5. Get the NFC peer connectivity 6. Send the File content 7. Handle the response of the transmission.
Assignee | ||
Comment 11•10 years ago
|
||
Comment on attachment 8364154 [details] [review] patch to share file through nfc 1. add "onpeerready" callback when the video is in player view 2. remove "onpeerready" callback when the video is not in player view To test this patch, we need to have the patch of the following bugs: bug 963471 (add this.doFileTransfer.bind(this) to nfc_handover_manager.js), bug 964672 (remove the doPair call in doFileTransfer), and bug 962310 (gecko).
Attachment #8364154 -
Flags: review?(dmarcos)
Assignee | ||
Comment 12•10 years ago
|
||
Assignee | ||
Comment 13•10 years ago
|
||
Updated•10 years ago
|
Attachment #8364154 -
Flags: review?(dmarcos) → review+
Updated•10 years ago
|
Whiteboard: [FT:RIL] sharing video/audio/image → [FT:RIL] sharing video/audio/image [fxos:media]
Target Milestone: 1.3 C3/1.4 S3(31jan) → 1.4 S1 (14feb)
Assignee | ||
Comment 14•10 years ago
|
||
merged to master: https://github.com/mozilla-b2g/gaia/commit/e6b5fc463f060b90615440c789378c11942e728c
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
blocking-b2g: 1.4? → ---
You need to log in
before you can comment on or make changes to this bug.
Description
•