Viblast / ios-player-sdk

Viblast Player iOS SDK - native video playback of MPEG-DASH and HLS for live streaming. Extendable with P2P delivery through Viblast PDN.
http://viblast.com/player/
Other
91 stars 17 forks source link

Can I change CDN path after init? #1

Closed khunshan closed 8 years ago

khunshan commented 8 years ago

I am using this to alloc and init player

self.player = [[VBPlayer alloc] initWithCDN:xxx enabledPDN:NO licenseKey:nil];

However, can I just init and set CDN later like something [self.player setCDN:xxx]

ivermolaev commented 8 years ago

Hi there, The CDN is a constitutive part of the player so it must be provided in its initialization method. Having a mutator will mean that you'll be able to swap it while playing i.e., to stop and start the process of loading the playback again. For that purpose you can just reinitialize the player with the new CDN.