Code Monkey home page Code Monkey logo

vgplayer's People

Contributors

balitax avatar johndpope avatar readmecritic avatar veinguo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vgplayer's Issues

Auto Re-play when video reached end.

Hello ,

I like this lib very much and simple to use. But how can I replay same video when it reaches to end. I mean I want to play video in infinite loop (until user stops the video).

Changing timeout value for VGPlayer

Hi
We are using VGPlayer in our application but some of our users constantly report they cannot see the video.
When we investigate their log files it seems that VGPlayer says "request timed out"
We also encountered the same problem, while we have poor internet connection.

But we couldnt find where to change the timeout parameter.
Can you point us to the right direction?
Thanks

iOS 11 Not playing in background

Hi a have a problem when a try to play a Video and a change the application on the background mode
I put the in the code but doesn't work :
self.player.backgroundMode = .proceed
this only happen in the iOS. 11 in the others version work fine

Video Format Support

Which of formats are now available for streaming or play locally i.e. mov, mpeg etc?
I saw your demo it is outstanding but i only see link with mp4 files.

video play

sometimes this video has no sound ,but drag the progress ,the sound has again.

embed in cell of tableView

when embeded in cell of tableView, after entering fullscreen and exit from fullscreen, the player don't add to cell and imbeded in main screen.

Paste board doesn't work.

I am using "PHFComposeBarView" a third party liberary in my chat app, but after integrating this in my app. my compose bar doesn't responding paste options. Only compose bar didn't works fine but in other screens in textview or textfield paste board working.
Please suggest me how would I fix this.

Disable certain pan gestures

It would be nice to have the possibility to control whether you want the user to change the volume and brightness of the screen with a pan gesture or not.

Disallow fullscreen

It would be nice to have the possibility to allow or disallow the automatic fullscreen mode.

hittest extension issue

what is the specific use of hit test in uibutton extension. in VGPlayer classes. Because it creates some issue in my project can i remove this extension. and video not playing automatically in ios9 or lower versions.

Lot of cancellation

I have a lot of cancellation. And sometimes part of video doesn't have a sound. Can this be a reason of sound issue?
Task .<1> finished with error - code: -999
Task <2F32469D-BFF1-47EE-AAC5-890CB30729BF>.<1> finished with error - code: -999
Task .<1> HTTP load failed (error code: -999 [1:89])
Task .<1> finished with error - code: -999
startPlayerBuffering
Task <4D377D81-8267-4DCC-88F7-543214EC517F>.<8> finished with error - code: -1001
Task .<1> finished with error - code: -999
Task .<1> finished with error - code: -999

Cache manager

@VeinGuo I'm going to implement offline video feature in app. I found that the library VGPlayer caches the video automatically. So here are some questions about video caching in this library.

  1. Is there any way to find the cache file path for the specific url in VGPlayer?
  2. Is there any option to enable/disable caching for the video in the library?
  3. I'm going to give the user an option to download the video. To make this logic compatible with your cache manager, I think it's good to download the video directly to the cache directory. Does your cache manager simply saves the video after download is completed? What happens if user close the app before the cache manager completes downloading?
  4. I'm looking for the solution to manually download the specific video file to the cache rather than cache manager automatically does. Is it possible?

It would be helpful for me if you explain about how your cache manager is working.
Any response is appreciated.

Thanks!

Will you add feature "Lock screen"?

I think many users need button "Lock screen" to lock orientation for watching movie, to keep orientation compatible with them.
Will you think about this problem?

How to Use without pod file

In my project i don't want to install pod file, can you please suggest me how to use this video player in my project. I used by my self but getting error like VGPlayer and SnapKit framework not found.

sometimes player no sound

03:22:11.389 ERROR: 849: AudioQueue: request to trim 2112 + 0 = 2112 frames from buffer containing 1024 frames

but drag the progress ,the sound has again

Scrubbing not working

Hi,
I have assigned one of the video HLS URL. it does play/pause and full screen button also working but I am not able to scrub. Seems like the radio button is disabled as its not taking up the touches. But it works for other sample urls which were already there in the project. What could be wrong.

thanks.

Error in originalURL

I always get an error in originalURL "fatal error: unexpectedly found nil while unwrapping an Optional value" I debug code many times. I pass URL value to replaceVideo function but it didn't play my video. application crashes and gives me an error that I mentioned previously.
I attached screenshot so you can understand my problem better and give me appropriate solution.
screen shot 2017-07-15 at 9 10 32 pm

Add back Button to ads View

Hey, I'm trying to add another button in top corner right end so it can also be used for the back button. I tried to insert it and add constraints but the button is not showing up. I attached changing in your code so you know what I changed or what I need to do to work it.
Thanks

screen shot 2017-08-03 at 5 02 37 pm

screen shot 2017-08-03 at 5 02 57 pm

screen shot 2017-08-03 at 5 03 05 pm

Watermark on video player or video

Hey, I want a watermark on left bottom side on player or video. Is there any possibility so I can add watermark on left bottom side on the player?

Disk cache and memory cache

@VeinGuo

Hello, I'm writing here in order to let you know that I'm experiencing some problems with video playing in iOS 9. (iOS 9.3.5 actually)
When I choose to play, it just shows black screen. No spinning circle. When I select play button, nothing happens.
In debug window, I found the following logcat. Not sure if it was from this library.

Communications error: <OS_xpc_error: <error: 0x1075c7b40> { count = 1, contents =
"XPCErrorDescription" => <string: 0x1075c7ef0> { length = 22, contents = "Connection interrupted" }

}>

And sometimes the video has started but stopped in the middle. For example, it stopped at 00:11. It's supposed to show spinning circle if it's buffering but it doesn't show.
The issue happened on my iPad which has installed iOS 9.3.5. I've tried on iOS 9.3 simulator and found the same issue. It happens barely on simulator than iPad.

So there are two issues

  • Video does not start at all with black screen
  • Video started but stops in the middle.

I'm wondering if this is related with cache. Here are some questions.

  • What is the difference between following methods?
    VGPlayerCacheManager.shared.cleanAllCache()
    VGPlayerCacheManager.shared.cleanOldFiles
    I'm sorry for this question but I don't have got deep understanding about cache management in iOS. I guess these methods are related with memory cache and disk cache but I don't know exactly.

If video playing issue is related with cache management, what should I do to properly manage caches?

I appreciate your patience for reading my report. Please let me know if you have got some explanations.

Thanks!

Error play video

The videos play fine in all the simulators and at least on iPhone 6/7/7+ but never plays on the iPhone 5

Media Caching

I see that media caching might be on the roadmap. I'm curious what approach you might have in mind, as I might be able to contribute with a pull request.

have a link error

link:
https://wuka.oss-cn-shenzhen.aliyuncs.com/circle_video/67d5f4f738ebbe35f47569ac9b4a7a8.mp4
buffer State buffering
2018-02-13 00:04:31.260713+0800 wuka[3186:127111] [framework] CUICatalog: Invalid asset name supplied: ''
/Users/MacBook/Library/Developer/CoreSimulator/Devices/14ADD2FA-F156-4A64-8E39-43CAFB844500/data/Containers/Data/Application/E6C13512-13B1-4160-AA1E-BF3BC57DFFDB/tmp/vgplayerCache/67d5f4f738ebbe35f47569ac9b4a7a8/67d5f4f738ebbe35f47569ac9b4a7a8.mp4
buffer State stop
VGPlayer Log --------------------------
error: Optional(Error Domain=AVFoundationErrorDomain Code=-11829 "Cannot Open" UserInfo={NSLocalizedFailureReason=This media may be damaged., NSLocalizedDescription=Cannot Open, NSUnderlyingError=0x604000647ad0 {Error Domain=NSOSStatusErrorDomain Code=-12848 "(null)"}})
playerItemErrorLogEvent: nil
extendedLogData: nil
extendedLogDataStringEncoding nil

2018-02-13 00:04:31.420317+0800 wuka[3186:128761] Task .<1> finished with error - code: -999

Cache without playing

Hi, Please explain to me the way to download video directly to the cache without playing with VGPlayer. Problem is you don't use comments so it's pretty hard to understand your code. Could you add any explaining about how the cache is managed under the hood and how to manage cached videos directly not only "cleanAllCache()".

HLS support

Does it have HLS support?

Can we have this on the roadmap for feature implementations?

customization player

is there any way I can customize this player as in, adding logo, showing subtitles etc. Kindly let me know. thinking to use it in our current app.

Thanks,
Amir

Autoplay Video

How to autoplay video when playing video in tableview?

What kind of URL to play?

Hi VeinGuo, Thanks for this wonderful library. I just wonder what kind of url i can pass into the view? cause i tried the one in dropbox and seems like it is not working, So i am unsure what happen if i get from Azure storage for example. Would that still be ok? I am still new to this stuffs so i am not too sure what to ask. If my words are not really understandable, i will explain more.

FullScreen not possible

Hi! I can't get the player to full screen. Any ideas? The example app is working, but once copied your exampel code 1:1 into my application it just not going into orientation:landscaperight. Any ideas?

[Bug] - UI + performance

I used your lib in my project and it has some bugs:

  • When lock orientation from control center, I select "Fullscreen" -> player full screen normal -> select not fullscreen -> layout player is not correct. This bug appear
  • Time duration and total duration are not correct when time duration is larger than 60 minutes.
  • Performance: When streaming video, memory usage keeps increasing, not reduce, or less when change video, or dismiss. I test on iPad mini 3, RAM 1G, app will crash because of out of memory, about 45 min - 60m watching.
    Please check above issues :) I beleave you can fix them quickly and VGPlayer will be a perfect library.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.