I have written a Java implementation of the most basic socket network communication, this is similar to the previous one, just porting the client code to the phone, and then get the native IP method slightly different.Let's take a look at the use of Android studio in this article.3 basic steps to develop Android using Android
the password is correct, the IP address, MAC address, and module name are sent to the source address (unicast: Port 48899).
After receiving the IP address and MAC address returned by the module, send back a "+ok" immediately after receiving the module and enter the connection status.
After entering the connection state, the module can receive the network at instruction normally. For example: Set network protocol parameters: at+netp=tcp,client,30000,x.x.x.x set STA network parameters: AT
sides, you still need to go through the datagram package. You just need the IP address and port of the datagram package.
22. However, sipdroid can directly extract h264/h263 data from the generated video data in mediarecord. The data has been encoded accordingly.
23 how to watch the video:
Mvideoframe. setvideouri (URI. parse ("rtsp: //" + javaser. Engine (mcontext). getremoteaddr () + "/" +
Receiver. Engine (mcontext). getremotevideo () + "/sipdroi
it to yuv420p formatmemcpy(pFrameYUV->data[0], in, y_length); //YpFrameYUV->pts = count;for (int i = 0; i Encode Avframe dataAvcodec_send_frame (Pcodecctx, PFRAMEYUV);Get the data obtained after encodingAvcodec_receive_packet (Pcodecctx, ENC_PKT);Release AvframeAv_frame_free (PFRAMEYUV);Configure the encoded data, set the playback time, etc.enc_pkt.stream_index = video_st->index;AVRational time_base = ofmt_ctx->streams[0]->time_base;//{ 1, 1000 };enc_pkt.pts = count * (video_st->time_base.den)
The Android platform offers four types of data storage: Shared Preferences, file storage, SQLite storage, and networked storage. which
1 Shared Preferences A lightweight key-value storage mechanism dedicated to storing key-value pairs of data, and can only store basic data types (boolean, int, long, float, and string), which are typically used to store application configuration information.
2 file storage operates on files through FileInputStream an
With the arrival of 3G, the bandwidth is higher and the traffic fee is lower, and multimedia applications such as mobile phone and TV will surely develop greatly. I will sum up my previous experience, I will discuss with you how to create a VoD solution for mobile phones, and finally provide a preliminary client implementation result. Welcome to the discussion.
First, let's talk about the architecture. For ease of management and expansion, bandwidth r
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.