Crash when opening stream

iOS, iPad, iPhone, tvOS specific usage questions
nmodin
New Cone
New Cone
Posts: 5
Joined: 06 Mar 2015 20:58

Crash when opening stream

Postby nmodin » 06 Mar 2015 21:31

Hi guys,

I'm having some issues streaming vide from tvheadend and was hoping you can give me some clues on what is wrong.

I'm developing an iOS app and use the vlc-x-callback: URI schema to open the stream in VLC, but I just get a pop-up error message like this:

"Your input can't be opened
VLC is unable to open the MRL
http//cloud.dmug.eu:9981/stream/channelid/5?ticket.
Check the log for details"

Now this isn't the complete URL though as the full URL has more after ticket like this:

Code: Select all

url=<USERNAME>:<PASSWORD>@http://<IP:<PORT>/stream/channelid/5?ticket=E251A95E158C782064D82FA4C620050BAF7742FC
This is the full URL I use from my app code to open VLC:

Code: Select all

vlc-x-callback://x-callback-url/stream?url=<USERNAME>:<PASSWROD>@http://<IP>:<PORT>/stream/channelid/5?ticket=E251A95E158C782064D82FA4C620050BAF7742FC
(the actual URL of course have username/pwd/server/port instead of the placeholders)

I'm thinking that VLC might have some issue with URLs that have a equals sign in the URL (based on that the error message doesn't show anything after the equals sign and that the x-callbak specs do have an
equals sign if an optional option is set). Can anyone confirm if this is the case, or if the error message just chopped off the remainder of the URL ? I've also tried to open this URL from within the VLC application with the same result.

If it is just chopped of, where can I find the logs mentioned ? I've opened the device in Xcode but there are no crash logs reported by VLC.

The URL opens up fine in other media players (ace player for instance) so I'm quite sure the URL is correct. This is am MKV stream from an installation of
of Tvheadend.

Let me know if you need more info in order to figure out what I'm doing wrong.


Cheers,
Niklas

nmodin
New Cone
New Cone
Posts: 5
Joined: 06 Mar 2015 20:58

Re: Crash when opening stream

Postby nmodin » 06 Mar 2015 23:22

Lets call of the bug-search party ! The admin of the tvheadend server had given me the wrong credentials (for some extremely odd reason ace player didn't need them) so
I'm all good here now !

ps.

The streaming works way better than aceplayer so well done code monkeys !! :D

nmodin
New Cone
New Cone
Posts: 5
Joined: 06 Mar 2015 20:58

Re: Crash when opening stream

Postby nmodin » 07 Mar 2015 18:32

Hi,

Need to open this one up again.

We are using tvheadends with tickets for the streams. This mean you do not need to authenticate with 'username:password@' before the URL, however when I enter a URL with a ticket VLC on
iOS a pop-up asking for credentials is shown. Both from within the app and also when using a x-callback to open a url from outside the app.

Has anyone else tried VLC with Tvheadend using tickets (instead of basic authentication) for the streams ?
I.e a url on the format http:/<HOST>:<PORT>/stream/channelid/<CHANNEL_ID>?ticket=0C58F52C8852.....


Niklas

fkuehne
Developer
Developer
Posts: 7264
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: Crash when opening stream

Postby fkuehne » 08 Mar 2015 16:01

This appears like a bug in tvheadends then. VLC will ask for the username/password only if it gets a 403 on connection or if being asked by the server to do so.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net


Return to “VLC for iOS, iPadOS and Apple TV”

Who is online

Users browsing this forum: No registered users and 14 guests