same here,
I am experiencing allot of lag and voice to video sync problems with simple mp4 streaming from the web (mr and mrs smith) on a macbook pro and on a real Apple TV, when i play them from safari or AVPlayer they are performing well,
the link i am trying to play:
http://streams.videolan.org/streams/mp4 ... 64_aac.mp4
swift code:
Code: Select all
// bridging header:
#ifndef BridgeHeader_h
#define BridgeHeader_h
#endif /* BridgeHeader_h */
#import <TVVLCKit/TVVLCKit.h>
// player class:
class TVVLCKitPlayer: UIViewController
{
var movieURL :String = ""
let vlcMediaPlayer = VLCMediaPlayer()
var appDelegate: AppDelegate!
override func viewDidLoad()
{
appDelegate = UIApplication.sharedApplication().delegate as! AppDelegate
}
override func viewDidAppear(animated: Bool)
{
super.viewDidAppear(animated)
vlcMediaPlayer.drawable = appDelegate.window
}
func playVideo()
{
vlcMediaPlayer.media = VLCMedia(URL: NSURL(string: movieURL))
vlcMediaPlayer.play()
}
}
// call the player in the app:
...
let movieURL = "http://streams.videolan.org/streams/mp4/Mr_MrsSmith-h264_aac.mp4"
let vlcPlayer: TVVLCKitPlayer = TVVLCKitPlayer()
[appDelegate.window?.rootViewController?.presentViewController(vlcPlayer, animated: false, completion: nil)]
vlcPlayer.movieURL = movieURL as! String
vlcPlayer.playVideo()
hardware:
MacBook Pro (Retina, 13-inch, Early 2015)
2.7 GHz Intel Core i5
8 GB 1867 MHz DDR3
Intel Iris Graphics 6100 1536 MB
128 GB Flash Storage
osx: 10.11.4
Apple TV Hardware: 64G, Wired Network connection
TVOS: tried 9.1 and 9.2 (Simulator) and 9.2 (Real Apple TV)
xcode: 7.3 (7D175)
TVVLCKit build: self compiled from last checkin 2015 (Dec 28 2015) (use as linked framework, 700M file size)
Network: 100M wifi, stable
there is nothing running in the background not on the mac and not on the Apple TV
directions anyone?