Git Product home page Git Product logo

Comments (10)

Earyongan avatar Earyongan commented on June 30, 2024 1
2023-11-25 02:13:19.373  7436-7480  CCodec                  io.github.thibaultbee.srtplayer      D  setup formats output: AMessage(what = 0x00000000) = {
int32_t android._color-format = 2135033992
int32_t android._video-scaling = 1
int32_t rotation-degrees = 0
int32_t color-standard = 1
int32_t color-range = 2
int32_t color-transfer = 3
int32_t sar-height = 1
int32_t sar-width = 1
Rect crop(0, 0, 1279, 719)
int32_t width = 1280
int32_t height = 720
int32_t max-height = 720
int32_t max-width = 1280
string mime = "video/raw"
int32_t android._dataspace = 260
int32_t color-format = 2130708361
}

And the screen show black screen

from srtplayer.

Earyongan avatar Earyongan commented on June 30, 2024 1

It working fine when I testing with ffplay

from srtplayer.

Earyongan avatar Earyongan commented on June 30, 2024 1

I already test with older commit and increase the latenc, but the player show only black screen.

from srtplayer.

Earyongan avatar Earyongan commented on June 30, 2024

is it correct to set like this?

val url = "srt://live.cloudflare.com:778";
val passphrase = ""
var mediaId = "";

val mediaItem = MediaItem.Builder()
    .setMediaId(mediaId)
    .setUri(url)
    /**
     * From SRT socket option: "The password must be minimum 10 and maximum
     * 79 characters long."
     */
    .setCustomCacheKey(passphrase)
    .build()

from srtplayer.

ThibaultBee avatar ThibaultBee commented on June 30, 2024

Hello there,

Your URL looks like a contribution URL (from camera to server) and not a delivery (from server to player). It would be weird that Cloudflare uses SRT for delivery. If it is a contribution URL, it don't understand what you are trying to achieve. Contact cloudflare support.

I suppose setMediaId is your streamid.
See

srt://ip.of.my.computer:9998?streamid=mystream

Finally, you should keep your id and passphrase secret.

from srtplayer.

Earyongan avatar Earyongan commented on June 30, 2024
    "srt": {
      "url": "srt://live.cloudflare.com:778",
      "streamId": "...",
      "passphrase": "..."
    },
    "srtPlayback": {
      "url": "srt://live.cloudflare.com:778",
      "streamId": "...",
      "passphrase": "..."
    },
This is the response from cloudflare, and I want to playback with srtplayback, is it possible? I use ffmpeg to test and it working.

from srtplayer.

ThibaultBee avatar ThibaultBee commented on June 30, 2024

As I said, see

srt://ip.of.my.computer:9998?streamid=mystream

val url = "srt://live.cloudflare.com:778?streamid=mystream";
val passphrase = "mypassphrase"

val mediaItem = MediaItem.Builder()
    .setUri(url)
    /**
     * From SRT socket option: "The password must be minimum 10 and maximum
     * 79 characters long."
     */
    .setCustomCacheKey(passphrase)
    .build()

I think this should be okay.

from srtplayer.

ThibaultBee avatar ThibaultBee commented on June 30, 2024

Nice. You did connect.
The stream has been decoded.

I am sorry, I don't want to spend much time on the maintenance. Here are a few things that could help you:

  • Could you try to test with an older commit?
  • Could you try to increase latency?

from srtplayer.

umairsajid0017 avatar umairsajid0017 commented on June 30, 2024

Yes Same problem, FFplay is playing but This media player is not

from srtplayer.

ThibaultBee avatar ThibaultBee commented on June 30, 2024

Hi,

Did you fix the issue? If yes, how?

from srtplayer.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.