| |

VerySource

 Forgot password?
 Register
Search
View: 1510|Reply: 7

How to start playing from the middle is too difficult...

[Copy link]

3

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-10-17 11:00:01
| Show all posts |Read mode
My A machine
    TWMFNetWrite.OnStreamSample(wStreamNum: WORD; cnsSampleTime, cnsSampleDuration: int64;
  dwFlags: DWORD; pSample: INSSBuffer; pvContext: pointer) to transmit each streaming media data to machine B.
  After receiving the B machine, use the following sentence to write,
    m_pWriterAdvanced.WriteStreamSample(wStreamNum, cnsSampleTime, 0, cnsSampleDuration, dwFlags, pSample);
  The problem is: if you start to receive data from the beginning, it will be broadcasted quickly when writing on the B machine.
  It is related to the parameter cnsSampleTime. The longer the playback time, the longer it will be. It seems like you usually watch online on-demand, and you will wait a long time by dragging the progress bar. How to speed up, please expert advice, I have thought about it for a week,
  Almost unemployed... Thank you
Reply

Use magic Report

0

Threads

5

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-10-17 11:15:01
| Show all posts
Strong attention
Reply

Use magic Report

0

Threads

12

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-10-17 13:45:01
| Show all posts
If it is live broadcast, there is no way, if it is on demand, send Seek command to the server
Reply

Use magic Report

0

Threads

5

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-10-17 14:45:01
| Show all posts
hamnhamn3Boss, can you tell me more specifically? There is information there
Reply

Use magic Report

0

Threads

12

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-10-17 15:00:02
| Show all posts
If it is the rtsp protocol, you can send the play command with position to the streaming server
Reply

Use magic Report

0

Threads

5

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-10-17 15:15:01
| Show all posts
For HTTP, mine is on-demand, so I need to start playing from a certain point in time, for example, from the 5th minute and then on
Reply

Use magic Report

3

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-10-17 17:15:01
| Show all posts
The pplive qq live broadcast is not a live broadcast. The data will be played as soon as the buffer is full, regardless of where it is currently placed.
And I have to wait a long time after my BUFFER is full
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 Invalid IP Address

Post time: 2020-10-17 22:30:02
| Show all posts
How did it work? I also encountered a similar problem, and I hope the host will talk about how to fix it
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list