| |

VerySource

 Forgot password?
 Register
Search
View: 860|Reply: 1

It takes a long time to respond after receiving media data from the middle of the game? Urgent, difficult...please advis

[Copy link]

3

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-10-16 12:30: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

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-10-16 16:00:01
| Show all posts
It seems that the time is still using the complete streaming time "scale".
When receiving and writing, the scale should be actually adjusted.
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