Know your weapons Ⅱ

  本次内容主要讲述使用UWP相关技术可以实现的软件上的一些功能,这里以Netease-Cloud Music(下称Cloud Music)为例讲述,这款音乐软件我个人一直在用,毕竟人们生活离不开音乐,说起来稍微顺手一些。

  1.Cloud Music的音频播放功能----

    作为一个主流音乐播放软件,这可以说是个最基本的功能了,直接上图:

    

    

    这里可以使用Audio,video,and camera 中的技术实现:

    https://docs.microsoft.com/en-us/windows/uwp/audio-video-camera/

    从第二张图里可以看到Cloud Music同样可以实现视频播放的功能,使用的同样是Audio,video,and camera 节点下的一些技术。

  

  2.Cloud Music的音乐分享功能----

    网络社交已成大部分人主要的交流和展现自我的方式之后“分享”就变得尤为重要,一个好的音乐软件必然也不会缺少这一环:

    

     诸如此类的数据分享功能可以通过App-to-app communitcation中的相关技术实现:

    https://docs.microsoft.com/en-us/windows/uwp/app-to-app/

    应用程序中支持Share contract(共享协议),可以在应用程序之间快速的共享数据——App-to-app communitcation中的Share data节点

    当用户调用共享时,系统显示可能的目标应用程序列表。为了出现在列表中,您的应用需要声明它支持Share contract。这让系统知道您的应用程序可用于接收内容——App-to-app communitcation中的Receive data节点

 

  3.Cloud Music支持本地音乐的扫描,播放和上传----

    我一开始觉得这个功能其实有些鸡肋,毕竟现在从来都是从音乐商店下歌来听没多少人需要扫描本地音乐这一步了,不过一些因为地区问题或者版权问题无法在Cloud Music上获得的一些音乐,从某些默默无闻无私奉献的网站上下载到本地之后这个功能还是很有价值的:

    

    

    这个功能可以通过Audio,video,and camera 下的Import media from a device节点中的功能实现:

    https://docs.microsoft.com/en-us/windows/uwp/audio-video-camera/import-media-from-a-device

    该技术可实现从设备导入媒体,包括搜索可用媒体源,导入视频,音频和照片等文件,并从源设备中删除导入的文件。

  

  4.Cloud Music的每日推荐!----

    这个功能我个人是很喜欢的(虽然我听的曲子有点偏),不仅是每日推荐,它推荐歌单等内容也会根据你过去的播放历史通过分析来想你推荐相同风格的音乐(有些相似音乐或许也是你曾经听过或下载过的音乐):(因为用手机听音乐偏多,下面的展示用手机截图代替)

        

    以上功能可以通过Machine Learning中的技术实现:

    https://docs.microsoft.com/en-us/windows/uwp/machine-learning/

    机器学习(ML)允许计算机使用现有数据来预测预期的结果和行为。通过处理先前收集的数据,ML算法建立的模型可以在输入新输入时预测正确的输出。让我来介绍机器学习这个技术我的能力还是非常不够的,但是感觉这个很高大上啊,所以就想着一定要提一下。机器学习确实给我们们的生活带来了极大的便利,也给马云爸爸送去了好多钱。

  

  5.Cloud Music的账户和联系人----

    这个我感觉没什么多说的,现在基本上所有的软件都需要用户创建独立的账户添加联系人:

    

    

    以上功能可以通过Contacts, My People, and calendar 中的相关技术实现:

     https://docs.microsoft.com/en-us/windows/uwp/contacts-and-calendar/

 

  其实我还想写一个听歌识曲的功能但是我在UWP中没有找到相关技术节点,本以为是在Devices, sensors, and power中的某一项但是还是找不到匹配的内容。后再我在某度上搜索后发现:

  

  所以以上就是我这次分享的全部内容,谢谢观看!

 

转载于:https://www.cnblogs.com/D-ONE/p/8654571.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Write java code: Copy the files, small_weapons.txt, and large_weapons.txt from the assignment folder on Blackboard and save them to your folder. For testing purposes, you should use the small file. Use the large file when you think the application works correctly. To see what is in the files use a text editor. Nilesh is currently enjoying the action RPG game Torchlight 2 which is an awesome game and totally blows Auction House Simulator 3, oh sorry, that should be Diablo 3, out of the water. He has got a file containing info on some of the unique weapons in the game. The transaction file contains the following information: Weapon Name (string) Weapon Type (string) Damage (int) Weapon Speed (double) … To tell if one weapon is better than another you need to know the Damage Per Second (DPS) the weapon does, since weapons have a different attack speed. DPS is calculated by taking the damage value and dividing it by the attack speed.a) You will write a program that will allow Nilesh to load the file and display the weapon info and DPS of every weapon in the input file. When the user chooses to open a weapon file, they are required to type in the filename. It will then read the 4 values about a particular weapon and then display the 4 values to the console window on one line neatly padded along with the DPS of the weapon. This is repeated until the end of the file. b) Modify your code from a) so that the weapon information written to the console window is also written to a text file. The user should be able to specify the name of the file. Add a header to the beginning of the file which has column headers for each column. At the end of the text file display the total number of weapons in the file. c) Document your code appropriately and add your name and id number as comments at the top of your code. Please also submit this text file you have created. Enter the file you want to search end with .txt: large_weapons.txt 1 Blackfang Bludgeon Great Hammer 489 1.44 339.58333333333337 2 Bones 2 Boneshredder Great Axe 256 0.84 304.76190476190476 3 Comet's Tail Great Sword 872 1.2 726.6666666666667 4 Decapitator Great Sword 188 1.08 174.07407407407408 5 Demolisher Great Hammer 887 1.32 671.9696969696969
05-27

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值