maknapp / vlckitswiftsample Goto Github PK
View Code? Open in Web Editor NEWSample MobileVLCKit project using Swift 4
Sample MobileVLCKit project using Swift 4
Is it possible to play .mkv file stored in App Directory?
楼主你好,我这边下载demo以后,执行pod install,但是停顿在Installing MobileVLCKit(2.2.2),你遇到这种情况吗?怎么解决呢?
i can play .ts file on your vlc kit but i can't play .mov, .avi.... it doesn't support these format? or there are any solution to play these format file?
I am unable to get full screen in portrait mode in VLCMediaPlayer.
Did you able to add custom controls to media player? I have added my custom controls. But not displaying. Please help me to find the solution. Please see my code http://stackoverflow.com/questions/41222518/custom-controls-are-not-displaying-in-mobilevlckit-media-player
After I recorded video using iPhone basic camera, I uploaded a file to my own web server. but I couldn't play video file in my application that I made.
However, After I exported a file which is same file that I mentioned above through Quick Player 7 Application in the mac and uploaded a file to my own web server, I could play video.
Here is some logs about original file
2017-04-04 14:09:43.310 RCS[17829:2151200] creating player instance with private library as options were given
[00007f8f47651e18] core libvlc debug: VLC media player - 2.2.2 Weatherwax
[00007f8f47651e18] core libvlc debug: Copyright © 1996-2016 the VideoLAN team
[00007f8f47651e18] core libvlc debug: revision 2.2.2-18-gf8b3bf0
[00007f8f47651e18] core libvlc debug: configured with /Users/fkuehne/Desktop/VLCKit/MobileVLCKit/ImportedSources/vlc/configure '--prefix=/Users/fkuehne/Desktop/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-Simulator/x86_64' '--host=x86_64-apple-darwin11' '--with-contrib=/Users/fkuehne/Desktop/VLCKit/MobileVLCKit/ImportedSources/vlc/contrib/x86_64-apple-darwin11-x86_64' '--enable-static' '--disable-debug' '--enable-dvbpsi' '--enable-avcodec' '--disable-macosx' '--disable-macosx-dialog-provider' '--disable-macosx-qtkit' '--disable-macosx-eyetv' '--disable-macosx-vlc-app' '--disable-macosx-avfoundation' '--disable-audioqueue' '--disable-shared' '--enable-macosx-quartztext' '--enable-mkv' '--enable-opus' '--disable-faad' '--disable-lua' '--disable-a52' '--enable-fribidi' '--disable-qt' '--disable-skins2' '--disable-vcd' '--disable-vlc' '--disable-vlm' '--disable-httpd' '--disable-nls' '--disable-glx' '--disable-sse' '--enable-neon' '--disable-notify' '--enable-live555' '--enable-realrtsp' '--enable-swscale' '--disable-projectm' '--enable-libass' '--enable-libxml2' '--disable-goom' '--disable-dvdread' '--disable-dvdnav' '--disable-bluray' '--disable-linsys' '--disable-libva' '--disable-gme' '--disable-tremor' '--enable-vorbis' '--disable-fluidsynth' '--disable-jack' '--disable-pulse' '--disable-mtp' '--enable-ogg' '--enable-speex' '--enable-theora' '--enable-flac' '--disable-screen' '--enable-freetype' '--enable-taglib' '--disable-mmx' '--disable-addonmanagermodules' '--disable-mad' 'host_alias=x86_64-apple-darwin11' 'CC=xcrun clang' 'CFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk -arch x86_64 -O3 -g -miphoneos-version-min=7.0' 'LDFLAGS=-L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/lib -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk -Wl-ios_version_min,7.0' 'CPPFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk -arch x86_64 -O3 -g -miphoneos-version-min=7.0' 'CPP=xcrun cc -E' 'CXX=xcrun clang++' 'CXXFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk -arch x86_64 -O3 -g -miphoneos-version-min=7.0 -stdlib=libstdc++' 'OBJC=xcrun clang' 'OBJCFLAGS=-fobjc-abi-version=2 -fobjc-legacy-dispatch ' 'CXXCPP=xcrun c++ -E'
[00007f8f47651e18] core libvlc debug: plug-ins loaded: 217 modules
[00007f8f47651e18] core libvlc debug: translation test: code is "C"
[00007f8f47651e18] core libvlc debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 FPU
[00007f8f47656818] core playlist debug: creating audio output
[00007f8f47650298] core audio output debug: looking for audio output module matching "any": 3 candidates
[00007f8f47650298] core audio output debug: using audio output module "audiounit_ios"
[00007f8f47656818] core playlist debug: keeping audio output
[00007f8f47650b48] core interface debug: looking for interface module matching "ios_dialog_provider,none": 1 candidates
[00007f8f47650b48] ios_dialog_provider interface debug: iOS dialog provider initialised
[00007f8f47650b48] core interface debug: using interface module "ios_dialog_provider"
[00007f8f47653878] core generic error: option marq-color does not exist
[00007f8f47653878] core generic error: option marq-opacity does not exist
[00007f8f47653878] core generic error: option marq-position does not exist
[00007f8f47653878] core generic error: option marq-refresh does not exist
[00007f8f47653878] core generic error: option marq-size does not exist
[00007f8f47653878] core generic error: option marq-timeout does not exist
[00007f8f47653878] core generic error: option marq-x does not exist
[00007f8f47653878] core generic error: option marq-y does not exist
[00007f8f47653878] core generic debug: creating audio output
[00007f8f476570e8] core audio output debug: looking for audio output module matching "any": 3 candidates
[00007f8f476570e8] core audio output debug: using audio output module "audiounit_ios"
[00007f8f47653878] core generic debug: keeping audio output
[00007f8f44953898] core input debug: Creating an input for 'http://211.114.156.83:15418/Volume/Homes/admin/Public/IMG_0156.MOV'
[00007f8f44953898] core input debug: using timeshift granularity of 50 MiB, in path '/tmp'
[00007f8f44953898] core input debug: http://211.114.156.83:15418/Volume/Homes/admin/Public/IMG_0156.MOV' gives access
http' demux ' path
211.114.156.83:15418/Volume/Homes/admin/Public/IMG_0156.MOV'
[00007f8f44953898] core input debug: specified demux any' [00007f8f44953898] core input debug: creating demux: access='http' demux='any' location='211.114.156.83:15418/Volume/Homes/admin/Public/IMG_0156.MOV' file='(null)' [00007f8f473a37c8] core demux debug: looking for access_demux module matching "http": 4 candidates [00007f8f473a37c8] core demux debug: no access_demux modules matched [00007f8f44953898] core input debug: creating access 'http' location='211.114.156.83:15418/Volume/Homes/admin/Public/IMG_0156.MOV', path='(null)' [00007f8f473a37c8] core access debug: looking for access module matching "http": 15 candidates [00007f8f473a37c8] http access debug: querying proxy for http://211.114.156.83:15418/Volume/Homes/admin/Public/IMG_0156.MOV [00007f8f473a37c8] http access debug: no proxy [00007f8f473a37c8] http access debug: http: server='211.114.156.83' port=15418 file='/Volume/Homes/admin/Public/IMG_0156.MOV' [00007f8f473a37c8] core access debug: net: connecting to 211.114.156.83 port 15418 [00007f8f473a37c8] core access debug: connection succeeded (socket = 21) ---- VLCMediaPlayerState [00007f8f473a37c8] http access debug: protocol 'HTTP' answer code 200 [00007f8f473a37c8] http access debug: this frame size=5279727 [00007f8f473a37c8] http access debug: Content-Type: video/quicktime [00007f8f473a37c8] core access debug: using access module "http" [00007f8f44951388] core stream debug: Using stream method for AStream* [00007f8f44951388] core stream debug: starting pre-buffering [00007f8f44951388] core stream debug: received first data after 0 ms [00007f8f44951388] core stream debug: pre-buffering done 1024 bytes in 0s - 34482 KiB/s [00007f8f4765b858] core stream debug: looking for stream_filter module matching "any": 9 candidates [00007f8f4765b858] core stream debug: no stream_filter modules matched [00007f8f4765b858] core stream debug: looking for stream_filter module matching "record": 9 candidates [00007f8f4765b858] core stream debug: using stream_filter module "record" [00007f8f44953898] core input debug: creating demux: access='http' demux='any' location='211.114.156.83:15418/Volume/Homes/admin/Public/IMG_0156.MOV' file='(null)' [00007f8f4765bb98] core demux debug: looking for demux module matching "any": 57 candidates [00007f8f4765bb98] mp4 demux warning: MP4 plugin discarded (not seekable) [00007f8f4765bb98] ts demux debug: TS module discarded (lost sync) [00007f8f4765bb98] mod demux debug: MOD validation failed (ext=) [00007f8f4765bb98] avformat demux debug: trying url: http://211.114.156.83:15418/Volume/Homes/admin/Public/IMG_0156.MOV [00007f8f4765bb98] avformat demux debug: CPU flags: 0x010053db [00007f8f4765bb98] avformat demux debug: detected format: mov,mp4,m4a,3gp,3g2,mj2 http://211.114.156.83:15418/Volume/Homes/admin/Public/IMG_0156.MOV [00007f8f44951388] core stream warning: AStreamSeekStream: can't seek [00007f8f4765bb98] avformat demux warning: we were not allowed to seek, or EOF [00007f8f44953898] core input debug: selecting program id=0 [00007f8f4765bb98] avformat demux debug: adding es: video codec = h264 (28) [00007f8f4765bb98] avformat demux debug: adding es: audio codec = mp4a (86018) [00007f8f4765bb98] avformat demux debug: AVFormat supported stream [00007f8f4765bb98] avformat demux debug: - format = mov,mp4,m4a,3gp,3g2,mj2 (QuickTime / MOV) [00007f8f4765bb98] avformat demux debug: - start time = -1 [00007f8f4765bb98] avformat demux debug: - duration = 2568333 [00007f8f4765bb98] core demux debug: using demux module "avformat" [00007f8f439390b8] core decoder debug: looking for decoder module matching "any": 32 candidates [00007f8f439390b8] avcodec decoder debug: CPU flags: 0x010053db [00007f8f439390b8] avcodec decoder debug: trying to use direct rendering [00007f8f439390b8] avcodec decoder debug: allowing 4 thread(s) for decoding [00007f8f439390b8] avcodec decoder debug: avcodec codec (H264 - MPEG-4 AVC (part 10)) started [00007f8f439390b8] avcodec decoder debug: using frame thread mode with 4 threads [00007f8f439390b8] core decoder debug: using decoder module "avcodec" [00007f8f438010b8] core decoder debug: looking for decoder module matching "any": 32 candidates [00007f8f438010b8] avcodec decoder debug: CPU flags: 0x010053db [00007f8f438010b8] avcodec decoder debug: avcodec codec (MPEG AAC Audio) started [00007f8f438010b8] core decoder debug: using decoder module "avcodec" [00007f8f476589b8] core demux meta debug: looking for meta reader module matching "any": 1 candidates [00007f8f476589b8] core demux meta debug: no meta reader modules matched [00007f8f44953898] core input debug:
http://211.114.156.83:15418/Volume/Homes/admin/Public/IMG_0156.MOV' successfully opened
[00007f8f44951388] core stream warning: AStreamSeekStream: can't seek
[00007f8f4765bb98] avformat demux warning: we were not allowed to seek, or EOF
[00007f8f44953898] core input debug: EOF reached
[00007f8f439390b8] core decoder debug: removing module "avcodec"
[00007f8f439390b8] avcodec decoder debug: ffmpeg codec (H264 - MPEG-4 AVC (part 10)) stopped
[00007f8f439390b8] core decoder debug: killing decoder fourcc h264', 0 PES in FIFO [00007f8f438010b8] core decoder debug: removing module "avcodec" [00007f8f438010b8] avcodec decoder debug: ffmpeg codec (MPEG AAC Audio) stopped [00007f8f438010b8] core decoder debug: killing decoder fourcc
mp4a', 0 PES in FIFO
[00007f8f4765bb98] core demux debug: removing module "avformat"
[00007f8f4765b858] core stream debug: removing module "record"
[00007f8f473a37c8] core access debug: removing module "http"
[00007f8f44953898] core input debug: Program doesn't contain anymore ES
is there any way to add a button(play,stop,pause..)???
please. i hope you to help me.... ^^
I can compile and run the sample, but when it runs in my iphone, I get these errors:
2016-06-24 14:57:35.600 vlckitSwiftSample[2217:2190427] creating player instance using shared library
[176c4dd4] core generic error: option marq-color does not exist
[176c4dd4] core generic error: option marq-opacity does not exist
[176c4dd4] core generic error: option marq-position does not exist
[176c4dd4] core generic error: option marq-refresh does not exist
[176c4dd4] core generic error: option marq-size does not exist
[176c4dd4] core generic error: option marq-timeout does not exist
[176c4dd4] core generic error: option marq-x does not exist
[176c4dd4] core generic error: option marq-y does not exist
Changed the stream address and get the same errors.
Can you help with this?
Thanks
Media player state stopped and error log is: Media player state stopped!
shader program 1: WARNING: Output of vertex shader 'TexCoord1' not read by fragment shader
WARNING: Output of vertex shader 'TexCoord2' not read by fragment shader
[000000011435a658] core vout display error: Failed to set on top
[00000001c01dc858] core input error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 1000 ms)
[00000001c01dc858] core input error: ES_OUT_RESET_PCR called
[00000001c01dc858] core input error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 1407 ms)
[00000001c01dc858] core input error: ES_OUT_RESET_PCR called
Hi there.
I got this error after running app.. this error shown and not able to see video...
Please help me in that
Thanks in advance
I can change basic protocol (http) to rtsp in vlc for pc. like this, how can i change protocol in vlc for mobile in swift? what i want to do is I want to send url using udp, so i have to change basic protocol(http) to rtp or rtsp...
please help me ...
Hi Mark,
I am trying to import MobileVLCKit to my project. I saw that your app vlckitSwiftSample works fine, but I dont know how to replicate it. I still cant find VLCPlayerDelegate on Xcode.
Steps I did:
If I copied your Other Link Flags to mine, I got error of "no such file or directory: 'MobileVLCKit'"
Can you please help brief me on how to manage to import the framework?
Thank you so much. I really appreciate your help.
Best regards,
Dao Nguyen Dang Khoa(Harry)
Please try to resolved the given following issue related with MobileVLCKit in xcode 9.2 , swift4.0 .
1.libvlc_MetadataCancel(creating player instance with private library as options were given)
2.playlist_preparser_Cancel
3.vlc_custom_create
Issue occur when try to play MobileVLCKit more than one time.
thank you for your project.. i really want to know that how to force rtsp over tcp...
thank you
i would like to know the time that video is finished..
how can i do that??
'VLCMediaPlayer' has no member 'repeatMode'
I'm currently setting as
mediaPlayer.repeatMode = VLCRepeatMode.repeatCurrentItem
Here are my codes.
`let stringUrl = "rtsp://192.168.1.1:8554/live"
let url = URL.init(string: stringUrl)
let media = VLCMedia(url: url!)
media.addOptions([
"network-caching": 0,
"rtsp-caching": 50,
"rtsp-tcp": 1,
"no-audio": 1
])
mediaPlayer.media = media
mediaPlayer.delegate = self
mediaPlayer.drawable = self.playerView
mediaPlayer.play()`
But video is not displaying and I can see error logs as below.
[h264 @ 0x128035e00] get_buffer() failed
[h264 @ 0x128035e00] thread_get_buffer() failed
[h264 @ 0x128035e00] decode_slice_header error
[h264 @ 0x128035e00] no frame!
[h264 @ 0x1280e8e00] get_buffer() failed
[h264 @ 0x1280e8e00] thread_get_buffer() failed
[h264 @ 0x1280e8e00] decode_slice_header error
[h264 @ 0x1280e8e00] no frame!
[h264 @ 0x1280e9400] get_buffer() failed
[h264 @ 0x1280e9400] thread_get_buffer() failed
[h264 @ 0x1280e9400] decode_slice_header error
[h264 @ 0x1280e9400] no frame!
Please help me how can I figure out this.
Thanks
Ivan
i am trying to play rtsp url which is sample url provided by wowza . but its not working. dam getting this
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x15e08b800] moov atom not found.
There is some delay while playing a live rtsp stream. Is there a way to set caching/buffering options in the player to reduce the latency?
You need to remove that dependency and update to libc++.tbd in XC10
Hi ,
i have successfully streaming the RTP Stream with VLC Kit.
I just want to know that how we can store the RTP Stream to iOS device.?
Please guide us on the same.
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.