devileo / dlgplayer Goto Github PK
View Code? Open in Web Editor NEWA media player for iOS based on FFmpeg 4.0
License: GNU Lesser General Public License v3.0
A media player for iOS based on FFmpeg 4.0
License: GNU Lesser General Public License v3.0
Hello! I have a question, i want to get each frame to change uiimage to do something, how can i do?
Can you leave a contact information? or add my QQ:654303855 thanks!
does player support https streams?
When I try to integrate multiple DLGPlayer instances in a single UIViewController, always I get a purple screen and the last instance has a black screen... How we can solve this?
I don't know
how to encoding?
please helm me
does this player support loop/repeat mode? or are you planning to add this function?
not a bug but a request, can you add the functionality to record or save any streamed media?
ex: playing rtsp stream on the player and you press a button to record the current media into a mp4 (any other format) on the app?
DLGPlayer can not auto select the url of the highest resolution stream when the bandwidth reaches 2048000 as the following stream url:
http://cntv.hls.cdn.myqcloud.com/asp/hls/main/0303000a/3/default/4ec8c6c1bdd941b0b11280769b036e8b/main.m3u8?maxbr=2048&minbr=400
m3u8 content:
#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=204800, RESOLUTION=320x180
/asp/hls/200/0303000a/3/default/4ec8c6c1bdd941b0b11280769b036e8b/200.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=460800, RESOLUTION=480x270
/asp/hls/450/0303000a/3/default/4ec8c6c1bdd941b0b11280769b036e8b/450.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=870400, RESOLUTION=640x360
/asp/hls/850/0303000a/3/default/4ec8c6c1bdd941b0b11280769b036e8b/850.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=2048000, RESOLUTION=1280x720
/asp/hls/2000/0303000a/3/default/4ec8c6c1bdd941b0b11280769b036e8b/2000.m3u8
Wrong video orientation when playing video file captured using iOS devices. Is there anyway to fix it? Thanks.
When calling .play() nothing happens visually (but I can hear the audio of a stream). When calling .play again with a delay of about 1 - 2 seconds the stream gets displayed.
My only guessI would be that it might have something to do with the buffer not triggering the playback after it's fully loaded.
Sorry, not really an issue but a question. Does this support multiple channel streaming (RTSP) playing simultaneously?
hi i was testing the video player, didn't have any problem adding it to my view , but when I dismiss the view I added the close method , view is dismissed but audio still plays in background!
Lock iPhone screen while playing a video and it stopped playing again when you come back from lock screen.
Currently, compiling the demo will create about 421 warnings like this:
Block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior
This is not issue but request to save rtmp stream while streaming on player.
Can we support that ?
Everything works well but the image quality of the rendered frame is not high.
Obviously I can found some zigzag effects.
How can I improve it?
My video server does not provide thumbnails, so I want to get the video thumbnails when the video is opened , how to achieve? Thank you very much.
I added the DLGPlayer into my project hierarchy.
I followed the instructions for ffmpeg ios build.
I set the header and library paths to the resulting location from the ffmpeg ios build ../include
and ../lib
.
I linked binaries with library getting all the *.a from ffmpeg under ../lib
.
I end up with /Users/user/Programming/iOS/app/externals/DLGPlayer/codec/DLGPlayerDecoder.m:16:9: 'libavformat/avformat.h' file not found
.
My only guess could be perhaps I didn't properly import the library or link ffmpeg properly.
there are some streams that come with different audios and subtitles is it possible to add this functionality to the player?
stream to test :
https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8
for example if a m3u8 does not work there is not a playback error handling to know that the media won't play.
It will delay about 5 seconds when I compare with other software, How do we optimize it
您好,我是今日头条互娱研发上海HR Sunny,有幸看到您的palyer相关项目分享,希望有机会和您认识,不知道是否方便加个微信沟通,我的微信是fengzhigu-s,期待您的回复。
Video source in full screen, how to make it full screen display?
If I let it full screen display, part of the video content can not be fully displayed
I'm following every step here https://github.com/DeviLeo/DLGPlayer/blob/master/How_to_build_ffmpeg_with_openssl.md Finally, running "build-ffmpeg-openssl.sh", the script will stop after a few seconds saying "Error: openssl not found"
I found out that openssl is not in the list of external libraries of ffmpeg, but I couldn't find a way to set it. Maybe you know how to do that. Setting the path with CFLAGS and LDFLAGS seems to be not enough anymore.
repeat mode does not work properly with ts streams.
您好。播放mkv格式的本地视频,内存暴涨,然后崩溃。这个能解决吗?播放高码率的ts本地视频时,播放卡顿严重。
Situation:
Use VLC to stream playlist to WowzaStreamingEngine.
Detail:
When the audio frame's position reach the end of the first video, the second video has started playing (the video frames of the second video has been read and rendering).
At this point, the position of audio frame(1st video) is later than the position of video frame(2nd video), then DLGPlayer will ignore the audio frame and continue playing until the position of the video frame reach the same position of the audio frame.
Code:
// DLGPlayer.m
- (void)readAudioFrame:(float *)data frames:(UInt32)frames channels:(UInt32)channels {
...
const double dt = _mediaPosition - frame.position;
if (dt < -0.1) { // audio is faster than video, silence
...
break;
}
...
}
支持h265的视频吗
I'm try to paly a local .flv file,failed.But loacl .mp4 file is OK. And kxMovie can play the .flv file,the same file。
Here is the code.
_vcDLGPlayer.url = [[NSBundle mainBundle] pathForResource:@"339" ofType:@"flv"];
[_vcDLGPlayer open];
Is there something wrong whit my code?
log below:
platform initialization successful
2018-06-25 15:30:08.729441+0800 DLGPlayer[407:86589] [MC] Lazy loading NSBundle MobileCoreServices.framework
2018-06-25 15:30:08.729903+0800 DLGPlayer[407:86589] [MC] Loaded MobileCoreServices.framework
2018-06-25 15:30:08.748490+0800 DLGPlayer[407:86589] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2018-06-25 15:30:08.803927+0800 DLGPlayer[407:86589] refreshPreferences: HangTracerEnabled: 0
2018-06-25 15:30:08.803956+0800 DLGPlayer[407:86589] refreshPreferences: HangTracerDuration: 500
2018-06-25 15:30:08.803967+0800 DLGPlayer[407:86589] refreshPreferences: ActivationLoggingEnabled: 0 ActivationLoggingTaskedOffByDA:0
2018-06-25 15:30:31.465856+0800 DLGPlayer[407:86589] Metal GPU Frame Capture Enabled
2018-06-25 15:30:31.466897+0800 DLGPlayer[407:86589] Metal API Validation Enabled
Input #0, flv, from '/var/containers/Bundle/Application/A5145BF5-6A8F-4B4F-AC3F-B43642E986C2/DLGPlayer.app/339.flv':
Duration: N/A, start: 0.000000, bitrate: N/A
[flv @ 0x10489b000] Packet mismatch 352 15 340
[flv @ 0x10489b000] Packet mismatch 2111492634 8975 7932380
2018-06-25 15:30:36.040882+0800 DLGPlayer[407:86967] read frame error: End of file
Hi
do you have any example in swift? Or can you please help me to migrate the example to swift?
Thank you so much
I'm comfused about something
When I create mutil player view in ios app I find only last view can play
I check other view the backwidth and backheight is zero
what happen???
I have a question. Does this player plays also local files (on iPad/iPhone) or only by http streaming? Thanks in response.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.