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

This forum is about all development around libVLC.
ssaguiar
Blank Cone
Blank Cone
Posts: 28
Joined: 06 May 2009 22:35

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

Postby ssaguiar » 06 Jul 2017 15:38

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

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

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

Postby Jean-Baptiste Kempf » 25 Jul 2017 13:33

Test with the last macOS build.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

ssaguiar
Blank Cone
Blank Cone
Posts: 28
Joined: 06 May 2009 22:35

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

Postby ssaguiar » 26 Jul 2017 21:20

It's the vlckit for ios (mobilevlckit), not macos.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

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

Postby Jean-Baptiste Kempf » 27 Jul 2017 09:58

I understand what I'm asking, though.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

ssaguiar
Blank Cone
Blank Cone
Posts: 28
Joined: 06 May 2009 22:35

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

Postby ssaguiar » 27 Jul 2017 14:52

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


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 7 guests