DPlayer simple usage

DPlayer is an HTML 5 video player that supports pop-up. Support bilibilibili video and danmaku, real-time video (HTTP Live Streaming, M3U8 format) and FLV format.   usage HTML <div id="player1" class="dplayer"></div> <!-- ... --> <script src="dist/DPlayer.min.js"></script> option var dp = new DPlayer( ...

Posted by lostprophetpunk on Thu, 19 Dec 2019 16:05:59 +0100

Android gets current location information through GPS or NetWork

demo download address: https://download.csdn.net/download/sinat_35349353/10706484 Just completed a project (intranet project) that needs to obtain location information through GPS, so it can still judge that there is a network connection when acquiring providers according to LocationManager. The provider obtained by debug is [ ...

Posted by t_galan on Wed, 18 Dec 2019 17:25:47 +0100

restframework Component Details

Introduction to restfulrestful is an interface specification in which front-end and back-end interfaces are developed to improve team development efficiency, especially for front-end and back-end separation, according to which front-end and back-end development modules are not affected by each other2. Routing from rest_framework.routers import ...

Posted by wintallo on Wed, 18 Dec 2019 03:15:03 +0100

Automatic filling of verification code with style of applet

I. business scenario: for example, if the verification code is obtained on ios mobile phone, it will be displayed on the keyboard, and then clicked, it will be automatically filled in the input box; at this time, the input box is a good one, and it will be automatically filled in, but now it is required that the 6 digits of the verification cod ...

Posted by Benny Johnson on Tue, 17 Dec 2019 19:25:41 +0100

Use of wechat applet Canvas

This issue introduces how Canvas draws pictures, including how to draw high-definition pictures, use network pictures / local pictures, date conversion (lunar and solar calendar / week conversion), picture adaptation mobile phone model, etc. Layout introduction There are four parts here. The picture above shows the QR Co ...

Posted by patrick99e99 on Mon, 16 Dec 2019 17:02:07 +0100

Text offset of MLEmojiLabel and TTTAttributedLabel

When making a view of floating layer rolling chat, MLEmojiLabel and TTTAttributedLabel are used as three-party open-source files. The problems encountered are: 1. According to the demo of MLEmojiLabel, add emojiLabel to the content view of tableView, and find that emojiLabel will always be about 5pt lower. 2. With the increase ...

Posted by doodmon on Fri, 13 Dec 2019 19:25:01 +0100

Practice of using cmake to compile ffmpeg in Android studio

This example uses the combined libffmpeg library. Please refer to the previous practice The practice of compiling ffmpeg into a single library on android platform Catalog Configuration environment New hello project Configuration environment Operating system: ubuntu 16.05 Note: the compilation of ffmpeg library uses android ...

Posted by paulytrick on Thu, 12 Dec 2019 20:43:02 +0100

Shader Tour 2: realization of four palace frame

The original intention of writing this paper is for self reflection record. In case of improper expression, please criticize and correct First paste out the shader code. This code is to achieve the camera to take pictures of the realization of the four palaces. Different channels 0 1 2 3 were passed in. Then cut the UV s into ...

Posted by rid243 on Thu, 12 Dec 2019 18:35:56 +0100

Analysis of VHDL finite state machine design example

Preface: Finite state machine design technology is an important part of using data system design, and it is also an important way to realize high efficiency, high reliability and speed control logic system. In a broad sense, as long as the circuit of trigger is involved, the size of circuit without path can be reduced to state ...

Posted by wezalmighty on Wed, 11 Dec 2019 22:20:54 +0100

Document display scheme arrangement in Android App

I. Word, Excel, PPT display 1. Microsoft Office open Api interface If the document content is not very confidential or just needs to preview the document, you can consider using Microsoft's public Api interface. Microsoft Office public Api address: https://view.officeapps.live.com/op/view.aspx? The implementation on Android is as follows: ...

Posted by CoffeeOD on Wed, 11 Dec 2019 16:51:02 +0100