Giter Club home page Giter Club logo

screen's Introduction

VMScreenCast

使用 Cling 实现了 DMS DMC 功能的投屏应用

#简介

本项目使用 4thline/cling 库实现投屏功能,其中实现了DMSDMC功能, 测试是通过智能电视和盒子设备,包括手机端安装 AirPin 软件进行测试

#实现功能

  • 浏览本地资源投屏播放
  • 请求网络资源,投屏播放网络视频
  • 控制投屏设备,静音,拖动,播放,暂停等
  • 根据投屏设备播放状态,同步更新本地设备播放状态,包括进度音量等

#遇到的问题及解决

  • 首先是在刚开始用另一台手机安装 AirPin 测试的,测试设置音量视频的拖动进度不可用投屏设备无效, 后来在真正的智能电视和盒子上测试有效,这个应该是因为手机设备本身不支持导致
  • 后来在只能电视和盒子上测试时发现BaseSubscriptionCallback这个回调部分支持的并不全, 比如在 AirPin 上测试回调会有当前播放进度,当前音量和静音状态,这个在电视和盒子上是都不会回调的, 所以这里为了兼容实现,这里做了调整,改为手动去开定时器去获取当前播放进度和声音状态
  • 现在又遇到一个新的问题,就是在小米盒子上,获取到的声音永远是 0,这个暂时还没找到解决方案

#参考&感谢

screen's People

Contributors

zfsn2015 avatar dongdongge avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.