Closed
Bug 1003711
Opened 10 years ago
Closed 10 years ago
[RTSP] Build Darwin Streaming Server on B2G emulator
Categories
(Firefox OS Graveyard :: RTSP, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
2.0 S6 (18july)
People
(Reporter: ethan, Assigned: ethan)
References
Details
(Whiteboard: [p=5])
Attachments
(4 files, 1 obsolete file)
The purpose of this bug is to support automated tests for RTSP feature (meta bug 998899). AFAIK, automated tests that require connectivity to the Internet are not practical due to instability and frequent timeout. Thus we intend to build an RTSP server in the B2G emulator so that we can test RTSP functionality without connecting to a server outside the target. Darwin Streaming Server (DSS) is an open source server technology that allows us to send streaming media to clients using the industry standard RTP and RTSP protocols. It provides a high level of customizability and runs on a variety of platforms allowing us to manipulate the code to fit our needs. This bug aims at building DSS on the B2G emulator.
Assignee | ||
Comment 1•10 years ago
|
||
Vicamo had ported DSS into our B2G emulator build system. I will follow up his previous work. https://github.com/vicamo/darwin-android
Assignee | ||
Comment 2•10 years ago
|
||
*** Work Notes *** Vicamo's darwin-android repository can be successfully built in B2G emulator-ICS. The LOCAL_MODULE_TAGS is optional, right now we have to specify the phony target name "all-darwin-targets" defined in darwin-android's Android.mk to build it. Commands: $ cd B2G_emulator/external $ git clone https://github.com/vicamo/darwin-android.git $ cd .. $ ./build.sh all-darwin-targets The libraries and executables are installed in these directories: out/target/product/generic/system/lib/StreamingServerModules/* out/target/product/generic/system/bin/* out/target/product/generic/root/sbin/DarwinStreamingServer
Assignee | ||
Comment 3•10 years ago
|
||
*** Work Notes *** Darwin Streaming Server can be run successfully (verified on Unagi and Emulator-ICS). Suppose we already cloned and built DarwinStreamingServer by the commands in comment 2. Perform the following steps to make DSS work on B2G. Step 0. Modify two paths in the main configuration file of DSS $ cd B2G_emulator/out/target/product/generic/system/etc/streaming Edit "streamingserver.xml": <PREF NAME="error_logfile_dir">/mnt/sdcard</PREF> <PREF NAME="movie_folder">/mnt/sdcard</PREF> Step 1. Remount the /system partition on the device read-write $ adb remount Step 2. Push the main executable of DSS $ cd B2G_emulator/out/target/product/generic/root/sbin $ adb push DarwinStreamingServer /system/b2g Step 3. Push the configuration file of DSS $ adb mkdir /etc/streaming $ cd B2G_emulator/out/target/product/generic/system/etc/streaming $ adb push streamingserver.xml /etc/streaming Step 4. Push a media file to the target $ cd B2G_emulator/external/darwin-android $ adb push sample_h264_100kbit.mp4 /mnt/sdcard Step 5. Start DarwinStreamingServer $ adb shell /system/b2g/DarwinStreamingServer & Now the DarwinStreamingServer is running on B2G. We can run the emulator, open the browser and enter the following RTSP link to validate the server works. rtsp://127.0.0.1/sample_h264_100kbit.mp4
Assignee | ||
Comment 4•10 years ago
|
||
Playing an RTSP media from a DarwinStreamingServer on the target.
Assignee | ||
Updated•10 years ago
|
Whiteboard: [p=5]
Target Milestone: --- → 2.0 S3 (6june)
Assignee | ||
Updated•10 years ago
|
Target Milestone: 2.0 S3 (6june) → 2.0 S4 (20june)
Assignee | ||
Comment 5•10 years ago
|
||
Hi Vicamo, can you help to review this?
Attachment #8439057 -
Flags: review?(vyang)
Assignee | ||
Comment 6•10 years ago
|
||
Comment on attachment 8439057 [details] [review] Part 1 - Github pull request for b2g-manifest Cancel the review because a build error is brought in by darwinstreamingserver repo. Need to fix that first.
Attachment #8439057 -
Flags: review?(vyang)
Updated•10 years ago
|
Target Milestone: 2.0 S4 (20june) → 2.0 S5 (4july)
Assignee | ||
Updated•10 years ago
|
Attachment #8439057 -
Flags: review?(vyang)
Assignee | ||
Comment 7•10 years ago
|
||
The result of Try server: https://tbpl.mozilla.org/?tree=Try&rev=5d6197e67b11
Updated•10 years ago
|
Attachment #8439057 -
Flags: review?(vyang) → review+
Assignee | ||
Updated•10 years ago
|
Attachment #8439057 -
Attachment description: Github pull request for b2g-manifest → Part 1 - Github pull request for b2g-manifest
Assignee | ||
Comment 8•10 years ago
|
||
Attachment #8450864 -
Flags: review?(vyang)
Comment 9•10 years ago
|
||
(In reply to Ethan Tseng [:ethan] from comment #8) > Created attachment 8450864 [details] [review] > Part 2 - Github pull request for darwinstreamingserver Need a patch to init.rc and a startup helper script as well.
Assignee | ||
Comment 10•10 years ago
|
||
A shell script to setup the configuration and media files for DarwinStreamingServer.
Attachment #8452184 -
Flags: review?(vyang)
Assignee | ||
Comment 11•10 years ago
|
||
Add dss and dss-setup to init.rc.
Attachment #8452197 -
Flags: review?(vyang)
Assignee | ||
Comment 12•10 years ago
|
||
(In reply to Vicamo Yang [:vicamo][:vyang] from comment #9) > (In reply to Ethan Tseng [:ethan] from comment #8) > > Created attachment 8450864 [details] [review] > > Part 2 - Github pull request for darwinstreamingserver > Need a patch to init.rc and a startup helper script as well. Hi Vicamo, The startup helper script and a patch to init.rc were attached as PRs. Could you help to review them as well?
Comment 13•10 years ago
|
||
Comment on attachment 8452184 [details] [review] Part 3 - Github pull request for device_generic_goldfish A pull request can contain as many git commits as you need. You don't send a pull request for each mutually dependent commit. Please 1) rebase your part 4 commit on to part 3 or amend them into one, 2) force push to your bug-1003711-part4 branch, 3) abandon pull request for part 3 branch.
Attachment #8452184 -
Flags: review?(vyang)
Updated•10 years ago
|
Attachment #8452197 -
Flags: review?(vyang)
Updated•10 years ago
|
Attachment #8450864 -
Flags: review?(vyang) → review+
Assignee | ||
Updated•10 years ago
|
Attachment #8452184 -
Attachment is obsolete: true
Assignee | ||
Comment 14•10 years ago
|
||
Comment on attachment 8452197 [details] [review] Part 3 - Github pull request for device_generic_goldfish Vicamo, Thanks for your advice. Part 3 and 4 were merged as comment 13 proposed.
Attachment #8452197 -
Attachment description: Part 4 - Github pull request for device_generic_goldfish → Part 3 - Github pull request for device_generic_goldfish
Attachment #8452197 -
Flags: review?(vyang)
Updated•10 years ago
|
Attachment #8452197 -
Flags: review?(vyang) → review+
Comment 15•10 years ago
|
||
https://github.com/mozilla-b2g/b2g-manifest/commit/cd303742a356444de0c898f401f991b7e650d497 https://github.com/mozilla-b2g/device_generic_goldfish/commit/0d5c43228006bae775c4cb57a6d3908484d41718 https://github.com/mozilla-b2g/darwinstreamingserver/commit/cf85968c7f85e0ec36e72c87ceb4837a943b8af6
Comment 16•10 years ago
|
||
https://hg.mozilla.org/integration/b2g-inbound/rev/7e3f39a926a5 https://hg.mozilla.org/mozilla-central/rev/d4810a052928
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
Target Milestone: 2.0 S5 (4july) → 2.0 S6 (18july)
You need to log in
before you can comment on or make changes to this bug.
Description
•