Archived
分散文件结构,添加了枚举类型的一个辅助类
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace XericLibrary.Runtime.WindowsSystem
|
||||
{
|
||||
/// <summary>
|
||||
/// SMTC Transport Protocol Example Library
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// SMTC是System Media Transport Controls的缩写,
|
||||
/// 它是一组通用于所有Windows 10设备的控件,
|
||||
/// 为用户提供一致的方法来控制使用MediaPlayer进行播放的所有正在运行的应用程序的媒体播放12。
|
||||
/// </remarks>
|
||||
public static class SMTC
|
||||
{
|
||||
//void aaa()
|
||||
//{
|
||||
|
||||
// MediaPlayer mediaPlayer = new MediaPlayer();
|
||||
|
||||
// // 获取SMTC
|
||||
// SystemMediaTransportControls smtc = SystemMediaTransportControls.GetForCurrentView();
|
||||
|
||||
// // 获取当前播放的媒体项的显示属性
|
||||
// MediaItemDisplayProperties props = smtc.DisplayUpdater.MusicProperties;
|
||||
|
||||
// // 获取歌曲信息
|
||||
// string title = props.Title;
|
||||
// string artist = props.Artist;
|
||||
// string albumArtist = props.AlbumArtist;
|
||||
|
||||
//}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 983cbd90a24344b48b370ebc2d7e374a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user