請先看『使用說明』
BCM70012/BCM70015 Module under Linux
From LEXWiKi
(Difference between revisions)
(→You can download the Linux driver form) |
|||
(11 intermediate revisions not shown.) | |||
Line 1: | Line 1: | ||
+ | [[Category:AllowPages]] | ||
== You can download the Linux driver form == | == You can download the Linux driver form == | ||
- | + | Driver : | |
+ | |||
+ | <Google Drive> [https://drive.google.com/file/d/1Ni-ydLQjJs-2yyEdYKprYX0-nSRk9xz5/view?usp=sharing Crystalhd] | ||
+ | |||
+ | <FTP> [ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/BCM70012_70015_Linux/crystalhd.tar.gz Crystalhd] | ||
== The Sample code source you can download form == | == The Sample code source you can download form == | ||
- | Source file: [ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/BCM70012_70015_Linux/BCM70012_70015_Demo_Linux_Src.rar BCM70012_70015_Demo_Linux_Src.rar] | ||
- | + | <Google Drive> | |
- | + | Source file: [https://drive.google.com/file/d/1BrQ_UlNaKlGtEel9GNVGswwBeFE7xddm/view?usp=sharing BCM70012_70015_Demo_Src] | |
- | [ | + | |
- | + | Binary file: [https://drive.google.com/file/d/1UEF9YHiBN3TdninNISl-c4eFlTh-ftiO/view?usp=sharing BCM70012_70015_Demo_Bin] | |
- | 2.The button used to play the video. | ||
- | + | <FTP> | |
+ | |||
+ | Source file: [ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/BCM70012_70015_Linux/BCM70012_70015_Demo_Src.tar.gz BCM70012_70015_Demo_Src] | ||
+ | |||
+ | Binary file: [ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/BCM70012_70015_Linux/BCM70012_70015_Demo_Bin.tar.gz BCM70012_70015_Demo_Bin] | ||
+ | |||
+ | == How to use the DEMO application == | ||
+ | [[Image:bcmpic1.jpg]]<br /> | ||
+ | |||
+ | [[Image:BCM2.jpg]]<br /> | ||
- | + | [[Image:BCM3.jpg]]<br /> | |
- | 5.Full screen. | ||
- | + | 1.The button used to open the video file. | |
- | + | 2.The button used to stop the video. | |
- | + | 3.After press the OpenFile button,you can choose the video file in this dialog. | |
- | + | 4.After choose the video file , the video will play. | |
- | 10.Show the words. | ||
Line 35: | Line 44: | ||
===Play video=== | ===Play video=== | ||
- | void | + | void BCM70012_70015_Demo_play (const char *uri) |
{ | { | ||
+ | BCM70012_70015_Demo_stop (); | ||
pipeline = gst_pipeline_new ("gst-player"); | pipeline = gst_pipeline_new ("gst-player"); | ||
Line 56: | Line 66: | ||
===Stop video=== | ===Stop video=== | ||
- | void | + | void BCM70012_70015_Demo_stop (void) |
{ | { | ||
if (pipeline) | if (pipeline) |
Current revision
Contents |
You can download the Linux driver form
Driver :
<Google Drive> Crystalhd
<FTP> Crystalhd
The Sample code source you can download form
<Google Drive>
Source file: BCM70012_70015_Demo_Src
Binary file: BCM70012_70015_Demo_Bin
<FTP>
Source file: BCM70012_70015_Demo_Src
Binary file: BCM70012_70015_Demo_Bin
How to use the DEMO application
1.The button used to open the video file.
2.The button used to stop the video.
3.After press the OpenFile button,you can choose the video file in this dialog.
4.After choose the video file , the video will play.
Sample code Introduction
Play video
void BCM70012_70015_Demo_play (const char *uri) { BCM70012_70015_Demo_stop (); pipeline = gst_pipeline_new ("gst-player"); bin = gst_element_factory_make ("playbin", "bin"); gst_bin_add (GST_BIN (pipeline), bin); { GstBus *bus; bus = gst_pipeline_get_bus (GST_PIPELINE (pipeline)); gst_bus_add_watch (bus, bus_cb, NULL); gst_object_unref (bus); } g_object_set (G_OBJECT (bin), "uri", uri, NULL); gst_element_set_state (pipeline, GST_STATE_PLAYING); }
Stop video
void BCM70012_70015_Demo_stop (void) { if (pipeline) { gst_element_set_state (pipeline, GST_STATE_NULL); gst_object_unref (GST_OBJECT (pipeline)); pipeline = NULL; } }