Here is some information regarding pedestrians and traffic.
3542. Right-of-way of pedestrians in crosswalks.
(a) General rule.--When traffic-control signals are not in place or not in operation, the driver of a vehicle shall yield the right-of-way to a pedestrian crossing the roadway within any marked crosswalk or within any unmarked crosswalk at an intersection.
The word "within" the crosswalk is important in this section. A pedestrian standing on the edge of the crosswalk waiting to cross, has to wait for the traffic to pass or a driver gives you a courtesy to let you cross. Cars do not have to stop if you are waiting to cross, to let you cross.
(b) Exercise of care by pedestrian.-- No pedestrian shall suddenly leave a curb or other place of safety and walk or run into the path of a vehicle which is so close as to constitute a hazard.
This is a common violation made by pedestrians. You cannot enter crosswalk expecting traffic to stop for you. You must make sure there is no traffic close enough to you that could create an issue up to and including a crash with you or another vehicle.