Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/MQL9011/MRDLNA
纯OC实现的iOS DLNA 投屏功能, 支持各大主流电视盒子(小米,华为,乐视,移动魔百盒等), 可以播放,暂停,快进退,调音量,退出.
https://github.com/MQL9011/MRDLNA
Last synced: about 2 months ago
JSON representation
纯OC实现的iOS DLNA 投屏功能, 支持各大主流电视盒子(小米,华为,乐视,移动魔百盒等), 可以播放,暂停,快进退,调音量,退出.
- Host: GitHub
- URL: https://github.com/MQL9011/MRDLNA
- Owner: MQL9011
- License: mit
- Created: 2018-05-04T06:20:18.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-02-25T07:39:25.000Z (almost 3 years ago)
- Last Synced: 2024-10-28T11:51:16.087Z (3 months ago)
- Language: Objective-C
- Homepage:
- Size: 197 KB
- Stars: 599
- Watchers: 19
- Forks: 153
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - MRDLNA - 纯OC实现的iOS DLNA 投屏功能, 支持各大主流电视盒子(小米,华为,乐视,移动魔百盒等), 可以播放,暂停,快进退,调音量,退出. (OOM-Leaks-Crash / Player)
README
# MRDLNA
![](https://img.shields.io/badge/project-iOS-blue.svg)
![](https://img.shields.io/badge/install-CocoaPods-orange.svg)
![](https://img.shields.io/badge/LANG-ObjC-brightgreen.svg)
# Dependencies- iOS DLNA Function
- iOS DLNA 投屏功能, 支持各大主流电视盒子(小米,华为,乐视,移动魔百盒等), 可以播放,暂停,快进退,调音量,退出.# Usage
```
pod 'MRDLNA'
```- Search Devices
```
- (void)searchDLNAResult:(NSArray *)devicesArray{
NSLog(@"Find devices");
//self.deviceArr = devicesArray;
//[self.dlnaTable reloadData];
}- (void)dlnaStartPlay{
NSLog(@"DLNA Success Start Play");
}```
- Play Control
```
@property(nonatomic,strong) MRDLNA *dlnaManager;#pragma mark -Play Control
/**
Quit
*/
- (IBAction)closeAction:(id)sender {
[self.dlnaManager endDLNA];
}/**
Play/Pause
*/
- (IBAction)playOrPause:(id)sender {
if (_isPlaying) {
[self.dlnaManager dlnaPause];
}else{
[self.dlnaManager dlnaPlay];
}
_isPlaying = !_isPlaying;
}/**
SeekChange
*/
- (IBAction)seekChanged:(UISlider *)sender{
NSInteger sec = sender.value * 60 * 60;
NSLog(@"播放进度条======>: %zd",sec);
[self.dlnaManager seekChanged:sec];
}/**
VolumeChange
*/
- (IBAction)volumeChange:(UISlider *)sender {
NSString *vol = [NSString stringWithFormat:@"%.f",sender.value * 100];
NSLog(@"音量========>: %@",vol);
[self.dlnaManager volumeChanged:vol];
}/**
PlayNextMovie
*/
- (IBAction)playNext:(id)sender {
NSString *testVideo = @"http://wvideo.spriteapp.cn/video/2016/0328/56f8ec01d9bfe_wpd.mp4";
[self.dlnaManager playTheURL:testVideo];
}
```# For more information please see demo
## License
WTFPL – Do What the Fuck You Want to Public License