Closed jmimohsin closed 5 years ago
I don't think there's such a thing as a ".php video file". The link you've provided does not work for me either. Please provide a working link to some test content if you want us to investigate further.
Hi,
Another one url is http://smumcdnems03.cdnsrv.jio.com/jiotv.live.cdn.jio.com/Ten_1/Ten_1.m3u8?jct=6xn8fjTQUCFOBO3GxeCrKQ&pxe=1548900873&st=EoMVarxgha7pTVhpmCYXcg
which have
Ten_1_250.m3u8
Ten_1_400.m3u8
Ten_1_600.m3u8
and then internal link http://smumcdnems03.cdnsrv.jio.com/jiotv.live.cdn.jio.com/Ten_1/Ten_1_600.m3u8?jct=6xn8fjTQUCFOBO3GxeCrKQ&pxe=1548900873&st=EoMVarxgha7pTVhpmCYXcg
have AES Key, like below:-
Ten_1_600-1544463368000.ts
Ten_1_600-1544463376000.ts
Ten_1_600-1544463382000.ts
Ten_1_600-1544463388000.ts
Ten_1_600-1544463392000.ts
Ten_1_600-1544463400000.ts
Ten_1_600-1544463404000.ts
Ten_1_600-1544463412000.ts
Ten_1_600-1544463418000.ts
Ten_1_600-1544463424000.ts
Ten_1_600-1544463430000.ts
Ten_1_600-1544463436000.ts
Ten_1_600-1544463442000.ts
Ten_1_600-1544463448000.ts
Ten_1_600-1544463454000.ts
Ten_1_600-1544463460000.ts
Ten_1_600-1544463466000.ts
Ten_1_600-1544463472000.ts
Ten_1_600-1544463478000.ts
Ten_1_600-1544463484000.ts
Ten_1_600-1544463490000.ts
Ten_1_600-1544463496000.ts
Ten_1_600-1544463502000.ts
Ten_1_600-1544463508000.ts
Ten_1_600-1544463514000.ts
Ten_1_600-1544463520000.ts
Ten_1_600-1544463526000.ts
Ten_1_600-1544463532000.ts
Ten_1_600-1544463538000.ts
Ten_1_600-1544463544000.ts
Ten_1_600-1544463550000.ts
Ten_1_600-1544463556000.ts
Ten_1_600-1544463562000.ts
Ten_1_600-1544463568000.ts
Ten_1_600-1544463574000.ts
Ten_1_600-1544463580000.ts
Ten_1_600-1544463586000.ts
Ten_1_600-1544463592000.ts
Ten_1_600-1544463598000.ts
Ten_1_600-1544463604000.ts
Ten_1_600-1544463610000.ts
Ten_1_600-1544463614000.ts
Ten_1_600-1544463622000.ts
Ten_1_600-1544463628000.ts
Ten_1_600-1544463634000.ts
Ten_1_600-1544463640000.ts
Ten_1_600-1544463646000.ts
Ten_1_600-1544463652000.ts
Ten_1_600-1544463658000.ts
Ten_1_600-1544463664000.ts
Those streams give an HTTP 451 response for me, probably because they're geo-restricted or require some form of authentication. That aside, these are HLS streams. They should just work if you build an HlsMediaSource
and give it to the player.
You need to make sure that block of code is building the correct type of source is being built, which is HlsMediaSource
, at least for the second case.
The code you've provided infers the type from the uri
and overrideExtension
. Most likely you're not providing an overrideExtension
, and the uri
has an unconventional file extension which is causing the wrong source to be built. For HLS streams we expect the extension to be m3u8
, which it's not for the first url you've provided (php
) but is for the second. In cases where an unconventional file extension is used, you'll need to provide `overrideExtension="m3u8" as a hint for that code to build the correct source.
yes I just passing blank like this:-
buildMediaSource(Uri.parse(url), "", agent)
So is the correct source being built or not? If it's not, you need to fix it somehow in your application code so that the correct source is built.
Note: In the completely general case we're aware that getting this right in application code may be tricky. Having ExoPlayer always detect the content type automatically is tracked by https://github.com/google/ExoPlayer/issues/3165, but is not seen as high priority, so we're unlikely to get around to implementing this any time soon.
DefaultHttpDataSourceFactory httpDataSourceFactory = new DefaultHttpDataSourceFactory(
userAgent,
null,
DefaultHttpDataSource.DEFAULT_CONNECT_TIMEOUT_MILLIS,
DefaultHttpDataSource.DEFAULT_READ_TIMEOUT_MILLIS,
true /* allowCrossProtocolRedirects */
);
dataSourceFactory = new DefaultDataSourceFactory(
this,
null,
httpDataSourceFactory
);
For php type url LoopingMediaSource is working but for this one http://smumcdnems03.cdnsrv.jio.com/jiotv.live.cdn.jio.com/Ten_1/Ten_1.m3u8?jct=6xn8fjTQUCFOBO3GxeCrKQ&pxe=1548900873&st=EoMVarxgha7pTVhpmCYXcg
Nothing work till now.
That link gives me a http 451 status code. There is nothing we can do to help here, since we're not being provided with streams that are accessible to us (they need to be accessible from the UK without authentication).
Given lack of better information, there's nothing we can do to help here. I suspect this is most likely a duplicate of #3165. Closing based on that assumption.
Hi,
Checked mostly all issues and stack overflow answers but still not getting any solution which provide a simple code example and can help to run HLS url with AES-128 method like above example has
Just let me know a simple code which can help it. I am searching it from a month approx. Please help.
Thanks.
params for key are ?jct=6xn8fjTQUCFOBO3GxeCrKQ&pxe=1548900873&st=EoMVarxgha7pTVhpmCYXcg
The link still gives me a 451 response code. If you're not going to provide working media for us to test with, we're not going to be able to help you.
Can you please just let me know what I have to use additional for AES-128 method. I don't have other url right now. I have shared url and data already which I am getting.
As per my previous response, you don't have to do anything additional:
They should just work if you build an HlsMediaSource and give it to the player.
Hi,
I would like to play url like http://13.233.200.191/jio/m3u8.php?c=Six_HD&q=400&e=.m3u8
But this is not working in latest version or 2.8 version. Is it possible to play in Exoplayer?
Thanks in advance.