Vue-cli simple integration RanSun SDK

Here simply record the Web SDK vue integrated ring channel operation, the introduction of local files embodiment, the recording operation is simple SDK, not the UI, do not spray!

Ready to work

A download ring channel to the local Web SDK + Demo

	git clone https://github.com/easemob/webim 

Second, find sdk, storphe, WebIMConfig, audio and video sdk EMedia, websdk-shim (look catalog) and other documents

  1. sdk, storphe, websdk-shim and other documents in the webim/sdk/dist/directory
  2. EMedia file in the webim/webrtc/dist/directory
  3. WebIMConfig file in the webim/demo/src/config/directory

Integrated operation

A build-CLI VUE
(Reference Source: https://blog.csdn.net/qq_33036599/article/details/79656597)

  1. Use the following command to install the global vue-cli
	npm install -g vue-cli 
  1. Use the command vue init webpack vue-demostructures vue project, "vue-demo" is the name of your project.
    And configure the environment need to install vue
    Here Insert Picture Description
  2. After the installation is complete, the project directory structure as shown below, the files in the src directory which is our own need to use the files.
    Here Insert Picture Description
  3. By npm run devstarting the project to test the command, as shown in the success that is running
    Here Insert Picture Description
  4. By http://localhost:8080/#/accessing the page below
    Here Insert Picture Description
    two, integrated Web SDK
  5. Find HelloWolrd.vuewill delete the contents inside
  6. In index.htmlintroducing the desired file in
    Here Insert Picture Description
  7. Create an initWeb.jsinitialization sdk, registered listener callbacks, initialization of audio and video, then export throws
    Here Insert Picture Description
  8. Field filled call button, call the method sdk landing, send and receive messages and other operations (not implemented ui, need to re-console view)
    Here Insert Picture Description

Well, first here, the method sdk can add their own, more functionality, there are problems welcomed the discussion!

Guess you like

Origin blog.csdn.net/qq_43128835/article/details/89088749