sahin / mobileplayer-ios Goto Github PK
View Code? Open in Web Editor NEW:iphone: :movie_camera: A powerful and completely customizable media player for iOS
License: Other
:iphone: :movie_camera: A powerful and completely customizable media player for iOS
License: Other
Examples
http://www.jsoneditoronline.org/?id=cfbf6ce279dadbcd1eca6b070c006e27
please check template ve event_name
Youtube Style
Hulu Style
Netflix Style
Facebook Style
Super Minimalist
Slim
https://github.com/videojs/video.js/wiki/Plugins
Basic:
https://github.com/brightcove/videojs-overlay
https://github.com/brightcove/videojs-errors
https://github.com/mickey/videojs-ga
video-js-swf: Allows you to decode HLS videos with Flash within VideoJS.
videojs-youtube: Allows you to play YouTube videos within VideoJS.
Future:
videojs-vimeo: Allows you to play Vimeo videos within VideoJS.
videojs-dailymotion: Allows you to play Dailymotion videos within VideoJS.
videojs-soundcloud: Allows you to play soundcloud tracks within VideoJS.
videojs-wavesurfer: Adds a interactive waveform for audio and video files.
videojs-dashjs: Loads dash.js as a tech to support MPEG-DASH videos.
videojs-silverlight: Allows you to play WMV, WMA, MP4, MP3, WAV and FLAC medias through Silverlight within Video.js.
videojs-vlc: Allows you to play all media through VLC web plug-in within Video.js.
videojs-aurora: Allows you to play WAV, OGG, MP3, M4A, AAC and FLAC medias through Aurora.js within Video.js.
videojs-java: Allows you to play AIFF, AVI, GSM, MID, MPG, MP2, MOV, AU and WAV medias through Java within Video.js.
public enum State {
case Unknown, ...
}
public private(set) var state: State = .Unknown {
didSet(oldValue) {
previousState = oldValue
}
}
public private(set) var previousState: State = .Unknown
private func stateForLoadState(loadState: MPMovieLoadState, andPlaybackState playbackState: MPMoviePlaybackState) -> MobilePlayerViewController.State {
...
}
Skin Object:
http://support.jwplayer.com/customer/portal/articles/1412123-building-jw-player-skins
Json Load:
Order or Show/Hide
Controlbar:
Play/Pause
Time Slider
Total Time
Air Play
Full Screen
Seek Back Time (10 second)
Settings ( Action Sheet)
More ( Action Sheet) ...
Sound Control
Quality Control
{
"play": {
"file": "ewew",
"font": {
"style": "ds",
"color": "3232"
}
}
}
Top Dock Bar:
Title
Share ( Native Share)
More
Close
*** Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan 2]'
*** First throw call stack:
(
0 CoreFoundation 0x000000010eb27c65 exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000011151dbb7 objc_exception_throw + 45
2 CoreFoundation 0x000000010eb27b9d +[NSException raise:format:] + 205
3 QuartzCore 0x00000001122ca336 _ZN2CA5Layer12set_positionERKNS_4Vec2IdEEb + 152
4 QuartzCore 0x00000001122ca4a8 -[CALayer setPosition:] + 43
5 QuartzCore 0x00000001122cab67 -[CALayer setFrame:] + 720
6 UIKit 0x000000010f433fdd -[UIView(Geometry) setFrame:] + 356
7 MobilePlayer 0x000000010e912a5b TFFC12MobilePlayer20CustomTimeSliderView14layoutSubviewsFS0_FT_T_U2_FT_T + 235
8 MobilePlayer 0x000000010e9124e7 _TTRXFo__dT__XFdCb__dT + 39
9 UIKit 0x000000010f43f422 +[UIView(UIViewAnimationWithBlocks) _setupAnimationWithDuration:delay:view:options:factory:animations:start:animationStateGenerator:completion:] + 473
10 UIKit 0x000000010f43f6fd +[UIView(UIViewAnimationWithBlocks) animateWithDuration:animations:] + 63
11 MobilePlayer 0x000000010e910d48 TFC12MobilePlayer20CustomTimeSliderView14layoutSubviewsfS0_FT_T + 2120
12 MobilePlayer 0x000000010e90fe47 TFC12MobilePlayer20CustomTimeSliderView25refreshBufferPercentRatiofS0_FT11bufferRatioV12CoreGraphics7CGFloat13totalDurationS2__T + 679
13 MobilePlayer 0x000000010e929ae3 TFC12MobilePlayer26MobilePlayerViewController21updateBufferInterfacefS0_FT_T + 755
14 MobilePlayer 0x000000010e92a152 TToFC12MobilePlayer26MobilePlayerViewController21updateBufferInterfacefS0_FT_T + 34
15 Foundation 0x000000010ef62744 NSFireTimer + 83
16 CoreFoundation 0x000000010ea8f174 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION + 20
17 CoreFoundation 0x000000010ea8ed35 __CFRunLoopDoTimer + 1045
18 CoreFoundation 0x000000010ea50d3d __CFRunLoopRun + 1901
19 CoreFoundation 0x000000010ea50366 CFRunLoopRunSpecific + 470
20 GraphicsServices 0x0000000111dfba3e GSEventRunModal + 161
21 UIKit 0x000000010f3c6900 UIApplicationMain + 1282
22 MobilePlayerExample 0x000000010e846d47 main + 135
23 libdyld.dylib 0x00000001111cd145 start + 1
24 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
In viewDidLoad
of MobilePlayerViewController we are creating three timers but none of them are being invalidated on deinit
.
The following needs to be tested.
Tests should be written using Quick.
Migrate from subclassing MPMoviePlayerViewController to using an AVPlayerLayer as a sublayer.
// TODO
We need to pick a license or write one, and then add the license file to the repository.
And fully document them.
We currently have post-roll and pause-roll support, so there just needs to be a way to present a view controller before a video plays. Video should automatically start when the pre-roll view controller is dismissed.
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.