Page 1 of 1

VlcKit 3 can't play hls stream wich was working with VlcKit 2.2.2

Posted: 06 Jul 2017 15:38
by ssaguiar
I am working in a app wich plays hsl streams (m3u8).
I was using VlcKit 2.2.2 and it works, but as Apple will not aprouve as it have support for AC3. Because of that I am trying to make VlcKit 3 works.
I downloaded the master from https://code.videolan.org/videolan/VLCKit and compiled it.
I have added the resulting framework to my project but now it doesn't play anymore the streams.
It starts and stops even before having any image on screen.

I instantiate the vlc as:

Code: Select all

var mediaPlayer = VLCMediaPlayer(options: ["--verbose=9", "network-caching=20000", "--drop-late-frames", "--skip-frames", "--file-caching=10000"]) . . . /****************************************************************** / The state of vlc media player was changed *******************************************************************/ func mediaPlayerStateChanged(_ aNotification: Notification!) { let mediaState = mediaPlayer!.state switch(mediaState) { case .buffering: //< Stream is buffering print("buffering...") toggleActivityIndicator(true) break case .error: //< Player has generated an error print("error...") utils.Vibrate() toggleActivityIndicator(false) break case .playing: //< Stream is playing print("playing...") toggleActivityIndicator(false) break case .ended: //< Stream has ended print("ended...") break case .stopped: //< Player has stopped print("stopped...") break case .opening: //< Stream is opening print("opening...") break case .paused: //< Stream is paused print("paused...") break } if (mediaPlayer?.isPlaying)! { toggleActivityIndicator(false) } }
And to start playing:

Code: Select all

self.url = URL(string: urlvideo!) let media = VLCMedia(url: self.url!) self.mediaPlayer?.media = media self.mediaPlayer?.delegate = self self.mediaPlayer?.drawable = self.MovieView self.mediaPlayer?.play()
As I said, this code works fine in version 2.2.2, but not in 3.

All I get is:

buffering...
playing...
stopped...

I also tested downloading the version 3, wich I got from nighties (http://nightlies.videolan.org/build/iOS/) and it also does the same.
I tested with my links and links from https://bitmovin.com/mpeg-dash-hls-exam ... e-streams/
I also tested the links using the example app wich cames with the vlckit (SimplePlayback).

Any help would be apreciated.

Thanks

Re: VlcKit 3 can't play hls stream wich was working with VlcKit 2.2.2

Posted: 25 Jul 2017 13:33
by Jean-Baptiste Kempf
Test with the last macOS build.

Re: VlcKit 3 can't play hls stream wich was working with VlcKit 2.2.2

Posted: 26 Jul 2017 21:20
by ssaguiar
It's the vlckit for ios (mobilevlckit), not macos.

Re: VlcKit 3 can't play hls stream wich was working with VlcKit 2.2.2

Posted: 27 Jul 2017 09:58
by Jean-Baptiste Kempf
I understand what I'm asking, though.

Re: VlcKit 3 can't play hls stream wich was working with VlcKit 2.2.2

Posted: 27 Jul 2017 14:52
by ssaguiar
Sorry, I don't.

Did you mean to use the latest MacOs to compile MobileVlcKit? If so, I am using latest one.
If you mean the MobileVlcKit compiled with latest MacOs from your servers, let me know the address, if possible.

Sorry be boring

Thanks